Overview
Comment:Avertissement si _route.php est appelé alors qu'il ne devrait pas
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 9958230dccc4ca35b75aae62a744c9f961a8d0e3
User & Date: bohwaz on 2019-12-10 23:05:32
Other Links: manifest | tags
Context
2019-12-10
23:06
Mieux expliquer les droits des catégories check-in: 19441cd0d6 user: bohwaz tags: trunk
23:05
Avertissement si _route.php est appelé alors qu'il ne devrait pas check-in: 9958230dcc user: bohwaz tags: trunk
14:50
Supprimer le tag dans les sous-actions des fiches membre (bug visuel dans chrome) check-in: 80fc64962d user: bohwaz tags: trunk
Changes

Modified src/www/_route.php from [d068381921] to [fc31a0628c].

15
16
17
18
19
20
21




22
23
24
25
26
27
28
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32







+
+
+
+







if (($pos = strpos($uri, '?')) !== false)
{
	$uri = substr($uri, 0, $pos);
}

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';