mirror of
https://github.com/Mibew/mibew.git
synced 2025-02-07 00:14:40 +03:00
Restrict access to login-related pages for authenticated operators
This commit is contained in:
parent
01dba643ba
commit
8597446abc
@ -18,6 +18,11 @@
|
||||
require_once('../libs/common.php');
|
||||
require_once('../libs/operator.php');
|
||||
|
||||
if (check_login(false)) {
|
||||
header("Location: $mibewroot/operator/");
|
||||
exit;
|
||||
}
|
||||
|
||||
$errors = array();
|
||||
$page = array('formisRemember' => true, 'version' => $version);
|
||||
|
||||
|
@ -19,6 +19,11 @@ require_once('../libs/common.php');
|
||||
require_once('../libs/operator.php');
|
||||
require_once('../libs/settings.php');
|
||||
|
||||
if (check_login(false)) {
|
||||
header("Location: $mibewroot/operator/");
|
||||
exit;
|
||||
}
|
||||
|
||||
$errors = array();
|
||||
$page = array('version' => $version, 'showform' => true);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user