From f94d05ecb3c4360549c2eac0bdf08a7b5bafec84 Mon Sep 17 00:00:00 2001 From: "Pierre Habouzit (MadCoder" Date: Sat, 7 May 2005 13:21:04 +0000 Subject: [PATCH] closes #298 git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-627 --- ChangeLog | 7 ++++--- htdocs/exit.php | 5 ++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7def6a9..6ac7b19 100644 --- a/ChangeLog +++ b/ChangeLog @@ -17,10 +17,11 @@ New : Bug/Wish : * Admin : - - #300: notify hotliners for validation comments. -Car + - #298: On su exit, go back to SU page on the given account. -MC + - #300: Notify hotliners for validation comments. -Car * Misc : - - #290: date display with no preceding 0. -Car + - #290: Date display with no preceding 0. -Car * Profile : - #299: Be more specific wrt given name for women. -MC @@ -28,7 +29,7 @@ Bug/Wish : Fixes (from 0.9.5 branch) : * Search : - - #304: next/prev links were missing if #pages was 2. -MC + - #304: Next/Prev links were missing if #pages was 2. -MC ================================================================================ VERSION 0.9.5 07 Apr 2004 diff --git a/htdocs/exit.php b/htdocs/exit.php index d43819a..a7adc4c 100644 --- a/htdocs/exit.php +++ b/htdocs/exit.php @@ -23,12 +23,15 @@ require_once("xorg.inc.php"); new_skinned_page('index.tpl',AUTH_MDP); if (Session::has('suid')) { + $a4l = Session::get('forlife'); $suid = Session::getMixed('suid'); $log = Session::getMixed('log'); $log->log("suid_stop", Session::get('forlife') . " by " . $suid['forlife']); $_SESSION = $suid; Session::kill('suid'); + header('Location: '.$globals->baseurl.'/admin/utilisateurs.php?login='.$a4l); +} else { + header("Location: login.php"); } -header("Location: login.php"); ?> -- 2.1.4