mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-23 11:37:14 +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();
|
session_start();
|
||||||
include("GameEngine/Database.php");
|
include("GameEngine/Database.php");
|
||||||
include("GameEngine/Admin/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">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
Reference in New Issue
Block a user