mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
fix admin panel: now only admin can get access to the admin panel
This commit is contained in:
@@ -20,6 +20,9 @@
|
||||
session_start();
|
||||
include("GameEngine/Database.php");
|
||||
include("GameEngine/Admin/database.php");
|
||||
|
||||
if($session->access < ADMIN)
|
||||
die("Access Denied: You are not Admin!");
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
|
||||
Reference in New Issue
Block a user