From c359aa20cd0876e1e497aca1ff19e4c54287b6c2 Mon Sep 17 00:00:00 2001 From: "Eric Johansson (neku)" Date: Sat, 3 Jan 2015 20:07:08 +0100 Subject: redirect to mod panel if user is mod --- moe/panel/index.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'moe/panel/index.php') diff --git a/moe/panel/index.php b/moe/panel/index.php index fea40e8..8b959bf 100644 --- a/moe/panel/index.php +++ b/moe/panel/index.php @@ -39,6 +39,9 @@ if(!isset($_SESSION['id'])){ header('Location: ../login/'); } + if($_SESSION['id'] == '1'){ + header('Location: ../mod/'); + } echo 'Hi '.$_SESSION['email'];?> Are you being cayoot today? @@ -112,4 +115,4 @@ xmlhttp.send(); - \ No newline at end of file + -- cgit v1.2.3