summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/pages/logout.php')
-rw-r--r--frontend/pages/logout.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/frontend/pages/logout.php b/frontend/pages/logout.php
index 6eccd3d..71f8c11 100644
--- a/frontend/pages/logout.php
+++ b/frontend/pages/logout.php
@@ -1,12 +1,11 @@
<?php
-function init_logout() {
- global $S, $conf, $request;
+function init_logout(&$S) {
if (isset($S['session'])) {
$S['session']->delete();
}
- setcookie($conf['cookiename'], '', 1, $S['cookie_dir'], '', false, true);
- if (isset($request['go'])) {
- header('Location: '.url($request['go']));
+ setcookie($S['conf']['cookiename'], '', 1, $S['cookie_dir'], '', false, true);
+ if (isset($_REQUEST['go'])) {
+ header('Location: '.url($_REQUEST['go']));
}
}
function body_logout() {