diff options
| author | Eric Johansson (neku) <neku@pomf.se> | 2015-01-03 20:07:08 +0100 |
|---|---|---|
| committer | Eric Johansson (neku) <neku@pomf.se> | 2015-01-03 20:07:08 +0100 |
| commit | c359aa20cd0876e1e497aca1ff19e4c54287b6c2 (patch) | |
| tree | 40e60a63b617845e8298de3a2a612d112f6cbb90 /moe/panel/index.php | |
| parent | e7037cae0b1b8e2b231b6f88b627e5bcf6b3c485 (diff) | |
redirect to mod panel if user is mod
Diffstat (limited to 'moe/panel/index.php')
| -rw-r--r-- | moe/panel/index.php | 5 |
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> |
