closes #298
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Sat, 7 May 2005 13:21:04 +0000 (13:21 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:28:53 +0000 (23:28 +0200)
git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-627

ChangeLog
htdocs/exit.php

index 7def6a9..6ac7b19 100644 (file)
--- 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
index d43819a..a7adc4c 100644 (file)
@@ -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");
 ?>