Merge commit 'origin/platal-0.10.0'
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 25 Jan 2009 21:15:31 +0000 (22:15 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 25 Jan 2009 21:15:31 +0000 (22:15 +0100)
Conflicts:

modules/platal.php

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
1  2 
include/notifs.inc.php
include/user.func.inc.php
modules/platal.php
modules/xnetevents/xnetevents.inc.php
modules/xnetgrp.php
modules/xnetlists.php

Simple merge
Simple merge
@@@ -439,11 -446,17 +439,13 @@@ Adresse de secours : " . Post::v('email
          }
  
          if ($level == 'forgetuid' || $level == 'forgetall') {
 -            setcookie('ORGuid', '', time() - 3600, '/', '', 0);
 -            Cookie::kill('ORGuid');
 -            setcookie('ORGdomain', '', time() - 3600, '/', '', 0);
 -            Cookie::kill('ORGdomain');
 +            Platal::session()->killLoginFormCookies();
          }
  
-         S::logger()->log('deconnexion', @$_SERVER['HTTP_REFERER']);
-         Platal::session()->destroy();
+         if (S::logged()) {
 -            $ref = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '';
 -            S::logger()->log('deconnexion', $ref);
++            S::logger()->log('deconnexion', @$_SERVER['HTTP_REFERER']);
++            Platal::session()->destroy();
+         }
 -        Platal::session()->destroy();
  
          if (Get::has('redirect')) {
              http_redirect(rawurldecode(Get::v('redirect')));
Simple merge
Simple merge
Simple merge