1
0

/admin/ configuration

This commit is contained in:
2018-01-27 00:35:13 +01:00
parent acc6443b55
commit 88e04c4a87
3 changed files with 21 additions and 5 deletions

View File

@@ -6,7 +6,7 @@ require_once (__DIR__ . '/../extern/egh/ExtendedGitGraph.php');
$cmd = $OPTIONS['cmd'];
$secret = $OPTIONS['secret'];
if (isset($OPTIONS['suffix'])) $cmd = $OPTIONS['suffix'] . '::' . $cmd;
if (isset($OPTIONS['suffix']) && $OPTIONS['suffix'] !== '') $cmd = $OPTIONS['suffix'] . '::' . $cmd;
$cmd = strtolower($cmd);
if ($secret !== $CONFIG['ajax_secret']) die('Unauthorized.');