As a side effect of the previous commit (r1568), we can use login.php
for logout. This means: - change logout URL to login.php in menu.conf and users_main.tpl - delete logout.php and users/logout.php git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1569 a1433add-5e2c-0410-b055-b7f2511e0802pull/2/head
parent
fbc18ff993
commit
b871b47709
@ -1,32 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* Postfix Admin
|
||||
*
|
||||
* LICENSE
|
||||
* This source file is subject to the GPL license that is bundled with
|
||||
* this package in the file LICENSE.TXT.
|
||||
*
|
||||
* Further details on the project are available at http://postfixadmin.sf.net
|
||||
*
|
||||
* @version $Id$
|
||||
* @license GNU GPL v2 or later.
|
||||
*
|
||||
* File: logout.php
|
||||
* De-authenticates a user.
|
||||
* Template File: -none-
|
||||
*
|
||||
* Template Variables: -none-
|
||||
*
|
||||
* Form POST \ GET Variables: -none-
|
||||
*/
|
||||
|
||||
require_once('common.php');
|
||||
|
||||
session_unset ();
|
||||
session_destroy ();
|
||||
|
||||
header ("Location: login.php");
|
||||
exit;
|
||||
|
||||
/* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */
|
||||
?>
|
@ -1,33 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* Postfix Admin
|
||||
*
|
||||
* LICENSE
|
||||
* This source file is subject to the GPL license that is bundled with
|
||||
* this package in the file LICENSE.TXT.
|
||||
*
|
||||
* Further details on the project are available at http://postfixadmin.sf.net
|
||||
*
|
||||
* @version $Id$
|
||||
* @license GNU GPL v2 or later.
|
||||
*
|
||||
* File: logout.php
|
||||
* De-authenticates a user.
|
||||
*
|
||||
* Template File: -none-
|
||||
*
|
||||
* Template Variables: -none-
|
||||
*
|
||||
* Form POST \ GET Variables: -none-
|
||||
*/
|
||||
|
||||
require_once('../common.php');
|
||||
|
||||
session_unset ();
|
||||
session_destroy ();
|
||||
|
||||
header ("Location: login.php");
|
||||
exit;
|
||||
|
||||
/* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */
|
||||
?>
|
Loading…
Reference in New Issue