admin.php allowed to see intro panel to non-loggedin users! (not really harmful, it just looked as if it was)
This commit is contained in:
parent
64e3040cd3
commit
cacf56f276
@ -57,6 +57,14 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* check if user is loggedin */
|
||||||
|
|
||||||
|
if (!user_loggedin()) {
|
||||||
|
utils_redirect("login.php");
|
||||||
|
die();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$action = isset($_GET['action'])? $_GET['action'] : 'default';
|
$action = isset($_GET['action'])? $_GET['action'] : 'default';
|
||||||
if (!$fp_admin)
|
if (!$fp_admin)
|
||||||
return;
|
return;
|
||||||
@ -71,12 +79,6 @@
|
|||||||
$smarty->assign('panel_url', $panel_url);
|
$smarty->assign('panel_url', $panel_url);
|
||||||
$smarty->assign('action_url', $action_url);
|
$smarty->assign('action_url', $action_url);
|
||||||
|
|
||||||
/* check if user is loggedin */
|
|
||||||
|
|
||||||
if (!user_loggedin()) {
|
|
||||||
utils_redirect("login.php");
|
|
||||||
die();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!empty($_POST))
|
if (!empty($_POST))
|
||||||
check_admin_referer("admin_{$panel}_{$action}");
|
check_admin_referer("admin_{$panel}_{$action}");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user