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-b7f2511e0802
pull/2/head
Christian Boltz 11 years ago
parent fbc18ff993
commit b871b47709

@ -24,14 +24,14 @@ url_backup = backup.php
# viewlog
url_viewlog = viewlog.php
# logout
url_logout = logout.php
url_logout = login.php
# user-menu
url_user_main = main.php
url_user_edit_alias = edit-alias.php
url_user_vacation = vacation.php
url_user_password = password.php
url_user_logout = logout.php
url_user_logout = login.php
tr_header = <tr class="header">

@ -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: */
?>

@ -15,7 +15,7 @@
<td>{$PALANG.pUsersMain_password}</td>
</tr>
<tr>
<td nowrap="nowrap"><a target="_top" href="logout.php">{$PALANG.pMenu_logout}</a></td>
<td nowrap="nowrap"><a target="_top" href="{#url_user_logout#}">{$PALANG.pMenu_logout}</a></td>
<td>{$PALANG.pMain_logout}</td>
</tr>
</table>

@ -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…
Cancel
Save