summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Johansson (neku) <neku@pomf.se>2015-01-03 20:07:08 +0100
committerEric Johansson (neku) <neku@pomf.se>2015-01-03 20:07:08 +0100
commitc359aa20cd0876e1e497aca1ff19e4c54287b6c2 (patch)
tree40e60a63b617845e8298de3a2a612d112f6cbb90
parente7037cae0b1b8e2b231b6f88b627e5bcf6b3c485 (diff)
redirect to mod panel if user is mod
-rw-r--r--moe/panel/index.php5
1 files changed, 4 insertions, 1 deletions
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'];?></h1>
<span class="byline">Are you being cayoot today?</span>
</header>
@@ -112,4 +115,4 @@ xmlhttp.send();
</div>
</body>
-</html> \ No newline at end of file
+</html>