diff options
| author | root | 2014-04-14 08:35:13 +0200 |
|---|---|---|
| committer | root | 2014-04-14 08:35:13 +0200 |
| commit | 12734da8826299ffd24c0a15f6dbf205892d7221 (patch) | |
| tree | 3b894dd30e332df23a564ce44e42ce164c8abd78 /www/auth.php | |
| parent | 7b9d516cd3bcdb8eaa5f1eb533d71010061c681b (diff) | |
| download | jungegemeinde-12734da8826299ffd24c0a15f6dbf205892d7221.tar.gz | |
Pushed to v3
Diffstat (limited to 'www/auth.php')
| -rw-r--r-- | www/auth.php | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/www/auth.php b/www/auth.php index a63e5ea..4851f7b 100644 --- a/www/auth.php +++ b/www/auth.php @@ -1,8 +1,7 @@ <?php - session_start(); +//session_start(); - if (!isset($_SESSION['login']) || !$_SESSION['login']) { - header('Location: login.php'); - exit; - } -?> +if ((!isset($_SESSION['login']) || !$_SESSION['login']) && $_GET["task"] != "login" && $_GET["task"] != "password_recover") { + header("Refresh: 0; ".$scheme.$_SERVER["HTTP_HOST"]."/login"); + exit; +} |
