forked from science-ation/science-ation
- Fix a typo and make the location of user_login not relative.
This commit is contained in:
parent
689369d460
commit
4aa73784bb
@ -31,18 +31,18 @@
|
|||||||
if(isset($_SESSION['users_type'])) {
|
if(isset($_SESSION['users_type'])) {
|
||||||
$type = $_SESSION['users_type'];
|
$type = $_SESSION['users_type'];
|
||||||
} else {
|
} else {
|
||||||
header("location: index.php?notice=auth_requird");
|
header("location: {$config['SFIABDIRECTORY']}/index.php?notice=auth_required");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Make sure the user is logged in, but don't check passwd expiry */
|
/* Make sure the user is logged in, but don't check passwd expiry */
|
||||||
if(!isset($_SESSION['users_type'])) {
|
if(!isset($_SESSION['users_type'])) {
|
||||||
header("location: user_login.php?type=$type¬ice=auth_required");
|
header("location: {$config['SFIABDIRECTORY']}/user_login.php?type=$type¬ice=auth_required");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($_SESSION['users_type'] != $type) {
|
if($_SESSION['users_type'] != $type) {
|
||||||
header("location: user_login.php?type=$type¬ice=auth_required");
|
header("location: {$config['SFIABDIRECTORY']}/user_login.php?type=$type¬ice=auth_required");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user