diff options
| author | root | 2014-02-17 20:37:28 +0100 |
|---|---|---|
| committer | root | 2014-02-17 20:37:28 +0100 |
| commit | c9a809f723581e655d4224b15255badf1f7f3ec8 (patch) | |
| tree | 1dfaa4974e01e4882d6efbe8bde0cadc36d102f3 /www/index.php | |
| parent | 5b9069e5d3f77f0148e1c867a14f9e1d44c229d4 (diff) | |
| download | files.iamfabulous.de-c9a809f723581e655d4224b15255badf1f7f3ec8.tar.gz | |
added session to index
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"]; |
