Browse Source

add protection

andre 4 năm trước cách đây
mục cha
commit
cfc2ab88e6
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      admin.php

+ 2 - 1
admin.php

@@ -37,7 +37,8 @@ if(isset($_GET['description'])) {
 }
 $stats = true;
 
-if (!(new token)->isAdmin($token)) {
+$tok = new token;
+if (!$tok->isAdmin($token)) {
     echo "admin access denied</div></body></html>";
     exit;
 }