diff options
| author | Horus3 | 2014-03-11 21:46:19 +0100 |
|---|---|---|
| committer | Horus3 | 2014-03-11 21:46:19 +0100 |
| commit | 3961f4dfd618c6554b47364112bb88988a846993 (patch) | |
| tree | c351d1ebf9d1dcc86e915d577b7fcc84d19ba3e4 | |
| parent | a9d708cf9638686d81caf2cc9534a5d34dd63b7e (diff) | |
| download | files.iamfabulous.de-3961f4dfd618c6554b47364112bb88988a846993.tar.gz | |
func
| -rw-r--r-- | www/functions.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/www/functions.php b/www/functions.php index 091a1a1..d3892bb 100644 --- a/www/functions.php +++ b/www/functions.php @@ -94,6 +94,11 @@ function logout(){ function invite($db){ if($_SERVER['REQUEST_METHOD'] == 'POST') { + + if(!$_SESSION["login"]){ + header("Refresh: 0; /login"); + } + $name=$_SESSION["username"]; $safe_name = SQLite3::escapeString("$name"); |
