diff options
Diffstat (limited to 'www/index.php')
| -rw-r--r-- | www/index.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/www/index.php b/www/index.php index 99c1c85..b05b565 100644 --- a/www/index.php +++ b/www/index.php @@ -5,6 +5,12 @@ session_start(); echo $_GET[name]; echo $_GET[folder]; +if($_SESSION["login"] && $_GET["name"] != $_SESSION["username"]){ + header("Refresh: 0; /$_SESSION[username]"); + exit; +} + + echo "<br><br>Currently loged in as: "; echo $_SESSION["username"]; |
