From 40dfa7d5c0dc8e4cb2c95e403b6b4b2c4bf70644 Mon Sep 17 00:00:00 2001 From: Matthijs Kuiper Date: Sat, 4 Feb 2017 16:05:45 +0100 Subject: Original UTStats beta 4.2.8 --- html/admin.php | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100755 html/admin.php (limited to 'html/admin.php') diff --git a/html/admin.php b/html/admin.php new file mode 100755 index 0000000..74eb5b7 --- /dev/null +++ b/html/admin.php @@ -0,0 +1,60 @@ + + + UTStats Administration +'; + +IF (empty($import_adminkey)) { + echo'Error: + No key set in config.php + '; + include("includes/footer.php"); + return; +} + + +IF (!empty($adminkey) and $adminkey != $import_adminkey) { + echo'Error: + Keys do not match + '; + $adminkey = ''; +} + +IF (empty($adminkey)) { + echo' + Enter Admin key: +
+ + + Remember the key +
+ '; + include("includes/footer.php"); + return; +} + + +echo' +
'; + +$action = str_replace(array('.', '/', '<', ':'), array(), $action); +$fn = "pages/admin/$action.php"; +if (!file_exists($fn) or !is_file($fn)) die('bla'); +require($fn); + +include('includes/footer.php'); + +?> -- cgit