From 557659d354c0ff8d1d893bb73bb49715685f8af0 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 10 Mar 2014 21:12:28 +0100 Subject: for username and logout --- www/functions.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/www/functions.php b/www/functions.php index d0d848e..0a50294 100644 --- a/www/functions.php +++ b/www/functions.php @@ -1,9 +1,9 @@ -/* --LOGIN-- */ - require_once("select_function.php"); +/* --LOGIN-- */ + function login($db){ if($_SERVER['REQUEST_METHOD'] == 'POST') { @@ -59,16 +59,16 @@ function login($db){ if($_SESSION["login"]){ header("Refresh: 0; /"); } else { - foreach ($_GET as $argument => $value) { +/* foreach ($_GET as $argument => $value) { if(preg_match("/success/",$argument)) $logout="Log out was succesfull!"; } if($logout){ - echo $logout; + header("Refresh: 0; login?reason=logout&username=" . $unsafe_username); } -/* echo "