|
|
@@ -13,8 +13,6 @@ require_once 'db.php';
|
|
|
require_once 'token.php';
|
|
|
require_once 'stats.php';
|
|
|
|
|
|
-print_r($_GET);
|
|
|
-
|
|
|
if(!isset($_GET['token'])){
|
|
|
echo "<form action='admin.php'><input type='text' id='token' name='token'><input type='submit' valeu='send token'></form></div></body></html>";
|
|
|
exit;
|
|
|
@@ -26,12 +24,10 @@ if(isset($_GET['token'])) {
|
|
|
$token = substr(trim($_GET['token']),0,25);
|
|
|
}
|
|
|
if(isset($_GET['action'])) {
|
|
|
- $action = substr(trim($_GET['action']),0,9);
|
|
|
+ $action = substr(trim($_GET['action']),0,12);
|
|
|
}
|
|
|
$stats = true;
|
|
|
|
|
|
-print_r([$token,$action,$ip]);
|
|
|
-
|
|
|
if (!(new token)->isAdmin($token)) {
|
|
|
echo "admin access denied</div></body></html>";
|
|
|
exit;
|