fix su_ajax
This commit is contained in:
parent
9e489009eb
commit
cfd7509db1
@ -1,7 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once (__DIR__ . '/../internals/base.php');
|
require_once (__DIR__ . '/../internals/base.php');
|
||||||
require_once (__DIR__ . '/../extern/egh/ExtendedGitGraph.php');
|
|
||||||
|
|
||||||
$cmd = $OPTIONS['cmd'];
|
$cmd = $OPTIONS['cmd'];
|
||||||
$secret = $OPTIONS['secret'];
|
$secret = $OPTIONS['secret'];
|
||||||
@ -11,11 +10,18 @@ $cmd = strtolower($cmd);
|
|||||||
|
|
||||||
if ($secret !== $CONFIG['ajax_secret']) die('Unauthorized.');
|
if ($secret !== $CONFIG['ajax_secret']) die('Unauthorized.');
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
if ($cmd === 'egh::status') { include (__DIR__ . '/../ajax/egh_status.php'); exit; }
|
if ($cmd === 'egh::status') { include (__DIR__ . '/../ajax/egh_status.php'); exit; }
|
||||||
if ($cmd === 'egh::refresh') { include (__DIR__ . '/../ajax/egh_refresh.php'); exit; }
|
if ($cmd === 'egh::refresh') { include (__DIR__ . '/../ajax/egh_refresh.php'); exit; }
|
||||||
if ($cmd === 'egh::redraw') { include (__DIR__ . '/../ajax/egh_redraw.php'); exit; }
|
if ($cmd === 'egh::redraw') { include (__DIR__ . '/../ajax/egh_redraw.php'); exit; }
|
||||||
|
|
||||||
if ($cmd === 'alephnotetable') { include (__DIR__ . '/../ajax/an_activeusers.php'); exit; }
|
if ($cmd === 'alephnotetable') { include (__DIR__ . '/../ajax/an_activeusers.php'); exit; }
|
||||||
if ($cmd === 'updateslog') { include (__DIR__ . '/../ajax/ul_entries.php'); exit; }
|
if ($cmd === 'updateslog') { include (__DIR__ . '/../ajax/ul_entries.php'); exit; }
|
||||||
|
}
|
||||||
|
catch (exception $e)
|
||||||
|
{
|
||||||
|
echo $e->getMessage();
|
||||||
|
}
|
||||||
|
|
||||||
die('Wrong command.');
|
die('Wrong command.');
|
Loading…
Reference in New Issue
Block a user