backport redirect after deconnection
authorx2002bobillot <x2002bobillot@839d8a87-29fc-0310-9880-83ba4fa771e5>
Thu, 12 Jan 2006 15:51:25 +0000 (15:51 +0000)
committerx2002bobillot <x2002bobillot@839d8a87-29fc-0310-9880-83ba4fa771e5>
Thu, 12 Jan 2006 15:51:25 +0000 (15:51 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@211 839d8a87-29fc-0310-9880-83ba4fa771e5

htdocs/deconnexion.php

index 3ad0063..c6d65fd 100644 (file)
@@ -44,9 +44,12 @@ if (isset($_SESSION['log'])) {
 
 XorgSession::destroy();
 
-new_skinned_page('deconnexion.tpl', AUTH_PUBLIC);
-
-$page->run();
+if (Get::has('redirect')) {
+    redirect(rawurldecode(Get::get('redirect')));
+} else {
+    new_skinned_page('deconnexion.tpl', AUTH_PUBLIC);
+    $page->run();
+}
 
 // vim:set et sws=4 sts=4 sw=4:
 ?>