diff --git a/htdocs/fin.php b/htdocs/fin.php index b769234..8b1c8b9 100644 --- a/htdocs/fin.php +++ b/htdocs/fin.php @@ -15,7 +15,7 @@ function delrules() update_statut($_SESSION['login'], "0"); } -session_unset(EVOAUTH_PHPSESSION); +session_unset("EVOAUTH_PHPSESSION"); session_destroy(); ?> @@ -23,6 +23,7 @@ session_destroy(); + diff --git a/htdocs/index.php b/htdocs/index.php index b52cb41..f2b744b 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -6,11 +6,10 @@ session_name("EVOAUTH_PHPSESSION"); session_start(); // destruction de la session -session_unset(EVOAUTH_PHPSESSION); +session_unset("EVOAUTH_PHPSESSION"); session_destroy(); -$Access = system("/usr/bin/sudo /usr/local/share/evoauth/Evoauth.pl --A ".$_SESSION['ip']." > /dev/null"); +$Access = system("/usr/bin/sudo /usr/local/share/evoauth/Evoauth.pl -A ".$_SESSION['ip']." > /dev/null"); ?>