summaryrefslogtreecommitdiff
path: root/www/functions.php
diff options
context:
space:
mode:
authorroot2014-03-10 20:58:31 +0100
committerroot2014-03-10 20:58:31 +0100
commit59c4147bbec43622c0cc696fbb3dfe6a67f5d4b6 (patch)
tree271ab400ad38683895acfb79e01267c95170b884 /www/functions.php
parentd8c0d3f8c5229147809d543fb59b1968e9824b59 (diff)
downloadfiles.iamfabulous.de-59c4147bbec43622c0cc696fbb3dfe6a67f5d4b6.tar.gz
stuff
Diffstat (limited to 'www/functions.php')
-rw-r--r--www/functions.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/www/functions.php b/www/functions.php
index 46b3149..d0d848e 100644
--- a/www/functions.php
+++ b/www/functions.php
@@ -41,16 +41,16 @@ function login($db){
COMMIT;
")){
- $_SESSION["login"] = true;
- $_SESSION["username"] = "$unsafe_username";
+ $_SESSION["login"] = true;
+ $_SESSION["username"] = "$unsafe_username";
- header("Refresh: 0; /");
+ header("Refresh: 0; /");
} else {
- header("Refresh: 0; login?reason=database");
+ header("Refresh: 0; login?reason=database&username=" . $unsafe_username);
}
} else {
- header("Refresh: 0; login?reason=failure");
+ header("Refresh: 0; login?reason=failure&username=" . $unsafe_username);
}
} else {