1
0

/admin/ configuration

This commit is contained in:
Mike Schwörer 2018-01-27 00:35:13 +01:00
parent acc6443b55
commit 88e04c4a87
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF
3 changed files with 21 additions and 5 deletions

View File

@ -57,6 +57,8 @@ Database::connect();
</div> </div>
<!------------------------------------------>
<div class="boxedcontent"> <div class="boxedcontent">
<div class="bc_header">AlephNote</div> <div class="bc_header">AlephNote</div>
@ -68,14 +70,13 @@ Database::connect();
</div> </div>
<br/> <br/>
<div id="an_ajax_target"></div> <div id="an_ajax_target"></div>
<br/>
<a class="button" href="javascript:startAjaxReplace('#an_ajax_target', '/su_ajax/alephNoteTable?secret=<?php echo $CONFIG['ajax_secret'] ?>')">Show</a> <a class="button" href="javascript:startAjaxReplace('#an_ajax_target', '/su_ajax/alephNoteTable?secret=<?php echo $CONFIG['ajax_secret'] ?>')">Show</a>
</div> </div>
</div> </div>
<!------------------------------------------>
<div class="boxedcontent"> <div class="boxedcontent">
<div class="bc_header">Highscores</div> <div class="bc_header">Highscores</div>
@ -96,6 +97,21 @@ Database::connect();
</div> </div>
</div>
<!------------------------------------------>
<div class="boxedcontent">
<div class="bc_header">Configuration</div>
<div class="bc_data keyvaluelist kvl_200">
<?php foreach ($CONFIG as $key => $value): ?>
<div><span><?php echo $key; ?></span> <span><?php echo var_export($value, true); ?></span></div>
<?php endforeach; ?>
</div>
</div> </div>
</div> </div>

View File

@ -6,7 +6,7 @@
$name = $OPTIONS['name']; $name = $OPTIONS['name'];
$updatedata = listUpdateData(); $updatedata = Programs::listUpdateData();
if (! array_key_exists($name, $updatedata)) httpError(404, 'Invalid Request - [Name] not found'); if (! array_key_exists($name, $updatedata)) httpError(404, 'Invalid Request - [Name] not found');

View File

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