mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-19 19:22:14 +02:00
login.php, common.php:
- when login.php is requested, logout the current admin/user https://sourceforge.net/p/postfixadmin/bugs/284/ git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1568 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
parent
288ba0e143
commit
fbc18ff993
@ -21,6 +21,13 @@ if(!defined('POSTFIXADMIN')) { # already defined if called from setup.php
|
|||||||
|
|
||||||
if (!defined('POSTFIXADMIN_CLI')) {
|
if (!defined('POSTFIXADMIN_CLI')) {
|
||||||
session_start();
|
session_start();
|
||||||
|
|
||||||
|
if (defined('POSTFIXADMIN_LOGOUT')) {
|
||||||
|
session_unset();
|
||||||
|
session_destroy();
|
||||||
|
session_start();
|
||||||
|
}
|
||||||
|
|
||||||
if(empty($_SESSION['flash'])) {
|
if(empty($_SESSION['flash'])) {
|
||||||
$_SESSION['flash'] = array();
|
$_SESSION['flash'] = array();
|
||||||
}
|
}
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
* lang
|
* lang
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
define('POSTFIXADMIN_LOGOUT', 1);
|
||||||
require_once('common.php');
|
require_once('common.php');
|
||||||
|
|
||||||
if($CONF['configured'] !== true) {
|
if($CONF['configured'] !== true) {
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
$rel_path = '../';
|
$rel_path = '../';
|
||||||
|
define('POSTFIXADMIN_LOGOUT', 1);
|
||||||
require_once("../common.php");
|
require_once("../common.php");
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user