From 88e04c4a87837d758027b9fd13b727d3cc8dc0be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Sat, 27 Jan 2018 00:35:13 +0100 Subject: [PATCH] /admin/ configuration --- www/pages/admin.php | 22 +++++++++++++++++++--- www/pages/api_updatecheck.php | 2 +- www/pages/su_ajax.php | 2 +- 3 files changed, 21 insertions(+), 5 deletions(-) diff --git a/www/pages/admin.php b/www/pages/admin.php index 109c586..3399339 100644 --- a/www/pages/admin.php +++ b/www/pages/admin.php @@ -57,6 +57,8 @@ Database::connect(); + +
AlephNote
@@ -68,14 +70,13 @@ Database::connect();

-
- Show - + +
Highscores
@@ -96,6 +97,21 @@ Database::connect();
+ + + + +
+
Configuration
+ +
+ + $value): ?> +
+ + +
+
diff --git a/www/pages/api_updatecheck.php b/www/pages/api_updatecheck.php index 4ebb532..a52311a 100644 --- a/www/pages/api_updatecheck.php +++ b/www/pages/api_updatecheck.php @@ -6,7 +6,7 @@ $name = $OPTIONS['name']; - $updatedata = listUpdateData(); + $updatedata = Programs::listUpdateData(); if (! array_key_exists($name, $updatedata)) httpError(404, 'Invalid Request - [Name] not found'); diff --git a/www/pages/su_ajax.php b/www/pages/su_ajax.php index f08af7b..4fba709 100644 --- a/www/pages/su_ajax.php +++ b/www/pages/su_ajax.php @@ -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.');