Overview
Comment: | Possibilité pour un plugin d'avoir des pages publiques |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | stable |
Files: | files | file ages | folders |
SHA1: |
8966241529efda360c3852ba6620b95a |
User & Date: | bohwaz on 2020-05-01 13:35:07 |
Other Links: | manifest | tags |
Context
2020-05-01
| ||
13:58 | Mise à jour de version check-in: dd26a101b7 user: bohwaz tags: trunk, stable, 0.9.6 | |
13:35 | Possibilité pour un plugin d'avoir des pages publiques check-in: 8966241529 user: bohwaz tags: trunk, stable | |
2020-04-22
| ||
02:05 | Fonctions dépréciées dans PHP 7.3 check-in: 2d91e51455 user: bohwaz tags: trunk, stable | |
Changes
Modified src/www/_route.php from [fc31a0628c] to [d864c66523].
︙ | ︙ | |||
20 21 22 23 24 25 26 27 28 29 30 31 32 33 | if (file_exists(__DIR__ . $uri)) { if (PHP_SAPI != 'cli') { die('Erreur de configuration du serveur web: cette URL ne devrait pas être traitée par Garradin'); } return false; } elseif (preg_match('!/admin/plugin/(.+?)/(.*)!', $uri, $match)) { $_GET['_p'] = $match[1]; $_GET['_u'] = $match[2]; require __DIR__ . '/admin/plugin.php'; } | > > > > > > | 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | if (file_exists(__DIR__ . $uri)) { if (PHP_SAPI != 'cli') { die('Erreur de configuration du serveur web: cette URL ne devrait pas être traitée par Garradin'); } return false; } elseif (preg_match('!/p/(.+?)/(.*)!', $uri, $match)) { $_GET['_p'] = $match[1]; $_GET['_u'] = $match[2]; require __DIR__ . '/plugin.php'; } elseif (preg_match('!/admin/plugin/(.+?)/(.*)!', $uri, $match)) { $_GET['_p'] = $match[1]; $_GET['_u'] = $match[2]; require __DIR__ . '/admin/plugin.php'; } |
︙ | ︙ |