2018-01-27 00:28:32 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require_once (__DIR__ . '/../internals/base.php');
|
|
|
|
require_once (__DIR__ . '/../extern/egh/ExtendedGitGraph.php');
|
|
|
|
|
|
|
|
$cmd = $OPTIONS['cmd'];
|
|
|
|
$secret = $OPTIONS['secret'];
|
|
|
|
|
2018-01-27 00:35:13 +01:00
|
|
|
if (isset($OPTIONS['suffix']) && $OPTIONS['suffix'] !== '') $cmd = $OPTIONS['suffix'] . '::' . $cmd;
|
2018-01-27 00:28:32 +01:00
|
|
|
$cmd = strtolower($cmd);
|
|
|
|
|
|
|
|
if ($secret !== $CONFIG['ajax_secret']) die('Unauthorized.');
|
|
|
|
|
|
|
|
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::redraw') { include (__DIR__ . '/../ajax/egh_redraw.php'); exit; }
|
|
|
|
|
|
|
|
if ($cmd === 'alephnotetable') { include (__DIR__ . '/../ajax/an_activeusers.php'); exit; }
|
2018-02-03 15:44:40 +01:00
|
|
|
if ($cmd === 'updateslog') { include (__DIR__ . '/../ajax/ul_entries.php'); exit; }
|
2018-01-27 00:28:32 +01:00
|
|
|
|
|
|
|
die('Wrong command.');
|