5 // Routeur pour l'utilisation avec le serveur web intégré à PHP
10 $uri = $_SERVER['REQUEST_URI'];
12 if (($pos = strpos($uri, '?')) !== false)
14 $uri = substr($uri, 0, $pos);
17 if (file_exists(__DIR__
. $uri))
21 elseif (preg_match('!/admin/plugin/(.+)/(.*)!', $uri, $match))
23 $_GET['_p'] = $match[1];
24 $_GET['_u'] = $match[2];
25 require __DIR__
. '/admin/plugin.php';
29 require __DIR__
. '/index.php';