commit | 3636291700fe448968f4bcc59bfb40478b4ba6eb | [log] [tgz] |
---|---|---|
author | Adrià Vilanova Martínez <me@avm99963.com> | Sun Nov 20 01:30:13 2022 +0100 |
committer | Adrià Vilanova Martínez <me@avm99963.com> | Sun Nov 20 01:30:13 2022 +0100 |
tree | 2679abacfe2726581c9ad34dd62df6b6ad42ece5 | |
parent | 30e6495bda37fb31fcc7a91e08afab86fed807fa [diff] [blame] |
Protect admin pages Change-Id: I09e77bf11424c7dbad22f925f2563138a5f9c563
diff --git a/admin/createtable.php b/admin/createtable.php index 971499b..07ad979 100644 --- a/admin/createtable.php +++ b/admin/createtable.php
@@ -1,6 +1,11 @@ <?php require '../credentials.php'; require '../php/utils.php'; + + $credentials = new Credentials(); + if ($credentials->adminToken != ($_GET["token"] ?? "")) { + exit(); + } $dbname = $_GET['dbname']; $mortsname = $dbname . "_morts";