En vous promenant sur Beamreactor, nous stockons votre IP 48h pour des raisons de sécurité.

Lecteur Markdown

gallery Documentation › GALLERY_DOCUMENTATION_EN

GALLERY_DOCUMENTATION_EN

Feature: Gallery #

Filesystem-based image gallery. Browses image directories, generates thumbnails on the fly and displays images full-size. Protected against path traversal.

---

Installation and Configuration #

Via FTP: Upload the `gallery/` directory into `/plugins/`.

Via package manager: Select `gallery` from the available plugins list.

Paths:

  • Main plugin: `/plugins/gallery/gallery.php`
  • Configuration: `/plugins/gallery/conf/gallery.conf.inc.php`
  • Locales: `/plugins/gallery/locale/`

Configuration parameter:

| Variable | Description |

|---|---|

| `$cfg[32]['gthumb']` | Thumbnail dimensions (in global configuration) |

Gallery structure: directories inside the data directory (`$cfg[6]`).

Private protection: placing a `.lock` file in a directory makes it inaccessible to non-administrators.

---

Usage #

  • List of available directories with preview
  • Thumbnail grid with pagination
  • Click on a thumbnail → full-size image

Security #

  • `.` and `..` stripped from paths
  • Directory traversal prevention
  • Private galleries via `.lock` file

---

Hooks and Entry Points #

?obj=gallery.php                           — Gallery list
?obj=gallery.php&path=GALLERY_NAME         — Gallery contents
?obj=gallery.php&path=NAME&page=N          — Page N
?obj=gallery.php&path=NAME&picture=FILE    — Display an image

---

Dependencies #

  • PHP GD library — thumbnail generation
  • Read access to the data directory (`$cfg[6]`)
de en fr