diff options
Diffstat (limited to 'www')
| -rw-r--r-- | www/files.php | 20 | ||||
| -rw-r--r-- | www/index.php | 6 |
2 files changed, 6 insertions, 20 deletions
diff --git a/www/files.php b/www/files.php deleted file mode 100644 index 76c6b72..0000000 --- a/www/files.php +++ /dev/null @@ -1,20 +0,0 @@ -<? - -#print_r($_GET); -#$ar =array($_GET); -#echo "<br> "; -#echo $ar[0]; -#echo "<br> "; - -if(!isset($_GET)){ - header("Refresh: 0; /login"); -} - -foreach ($_GET as $name => $value) { //value leer? - echo 'Name: ' . $name . ' Value: ' . $value . '<br />'; -} - -echo "Ende"; - -#header("Refresh: 0; /login"); - 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"]; |
