ftimme
2012-11-14 aa78fde6a92f66b84d626e114d8b54a5fb6ece0c
interface/web/login/logout.php
@@ -52,12 +52,14 @@
      <input type="hidden" name="s_mod" value="login" />
      <input type="hidden" name="s_pg" value="index" />
       <div class="wf_actions buttons">
         <button class="positive iconstxt icoPositive" type="button" value="Yes, re-login as Admin" onClick="submitLoginForm(' . "'pageForm'" . ');"><span>Yes, re-login as Admin</span></button>
         <button class="negative iconstxt icoNegative" type="button" value="No, logout" onClick="loadContent('. "'login/logout.php?l=1'" . ');"><span>No, logout</span></button>
         <button class="positive iconstxt icoPositive" type="button" value="Yes, re-login as Admin" onclick="submitLoginForm(' . "'pageForm'" . ');"><span>Yes, re-login as Admin</span></button>
         <button class="negative iconstxt icoNegative" type="button" value="No, logout" onclick="loadContent('. "'login/logout.php?l=1'" . ');"><span>No, logout</span></button>
       </div>
   ';
   exit;
}
$app->plugin->raiseEvent('logout',true);
$_SESSION["s"]["user"] = null;
$_SESSION["s"]["module"] = null;
@@ -71,8 +73,11 @@
   if($conf["interface_logout_url"] != '') {
      echo('URL_REDIRECT:'.$conf["interface_logout_url"]);
   } else {
      echo('URL_REDIRECT:../index.php');
      echo('URL_REDIRECT:index.php');
   }
}
exit;
?>
// Destroy the session completely now
$_SESSION = array();
session_destroy();
session_write_close();
?>