From 3789b02dfd49a9fca902962f7e423564c6d80165 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Sat, 3 Feb 2018 15:44:40 +0100 Subject: [PATCH] updateslog --- www/ajax/ul_entries.php | 28 ++++++++++++++++++++++++ www/index.php | 1 + www/internals/updateslog.php | 40 +++++++++++++++++++++++++++++++++++ www/pages/admin.php | 20 +++++++++++++++++- www/pages/api_updatecheck.php | 5 ++++- www/pages/su_ajax.php | 1 + 6 files changed, 93 insertions(+), 2 deletions(-) create mode 100644 www/ajax/ul_entries.php create mode 100644 www/internals/updateslog.php diff --git a/www/ajax/ul_entries.php b/www/ajax/ul_entries.php new file mode 100644 index 0000000..7f35a4b --- /dev/null +++ b/www/ajax/ul_entries.php @@ -0,0 +1,28 @@ + +
+ + + + + + + + + + + + + + + + + +
IPVersionTimestamp
+
\ No newline at end of file diff --git a/www/index.php b/www/index.php index 0f36d84..1d2d1de 100644 --- a/www/index.php +++ b/www/index.php @@ -43,6 +43,7 @@ $URL_RULES = [ 'url' => ['api', 'webhook', '${target}'], 'target' => 'pages/api_webhook.php', 'options' => [ '_opt' => 'http', 'target' => '%URL%', 'secret' => '%GET%', ],], [ 'url' => ['admin'], 'target' => 'pages/admin.php', 'options' => [ '_opt' => 'password'], ], + [ 'url' => ['admin', 'updateslog', '${name}'], 'target' => 'pages/admin_ul-list.php', 'options' => [ '_opt' => 'password', 'name' => '%URL%'],], [ 'url' => ['admin', 'cmd', '?{cmd}'], 'target' => 'pages/admin_cmd.php', 'options' => [ '_opt' => 'password', 'cmd' => '%URL%'], ], [ 'url' => ['admin', 'egh', '?{cmd}'], 'target' => 'pages/su_ajax.php', 'options' => [ 'suffix' => 'egh', 'cmd' => '%URL%', 'secret' => '%GET%' ], ], diff --git a/www/internals/updateslog.php b/www/internals/updateslog.php new file mode 100644 index 0000000..1a30516 --- /dev/null +++ b/www/internals/updateslog.php @@ -0,0 +1,40 @@ + +
+
UpdatesLog
+ +
+ +
+
+
+
+ +
+
+
+
+ + +
Highscores
@@ -160,7 +178,7 @@ function dumpConsistency($c) { -
+
".$data['Version']."
".$data['Link']); \ No newline at end of file + UpdatesLog::insert($name, $data['version']); + + print($name."
".$data['version']."
".$data['url']); \ No newline at end of file diff --git a/www/pages/su_ajax.php b/www/pages/su_ajax.php index 4fba709..15ea7a4 100644 --- a/www/pages/su_ajax.php +++ b/www/pages/su_ajax.php @@ -16,5 +16,6 @@ if ($cmd === 'egh::refresh') { include (__DIR__ . '/../ajax/egh_refresh.php'); e if ($cmd === 'egh::redraw') { include (__DIR__ . '/../ajax/egh_redraw.php'); exit; } if ($cmd === 'alephnotetable') { include (__DIR__ . '/../ajax/an_activeusers.php'); exit; } +if ($cmd === 'updateslog') { include (__DIR__ . '/../ajax/ul_entries.php'); exit; } die('Wrong command.'); \ No newline at end of file