TIME, ':ip' => USER_IP, ':ip_type' => USER_IP_TYPE, ':user_id' => fusion_get_userdata('user_id') ] ); } \PHPFusion\Admins::getInstance()->setAdmin(); \PHPFusion\Admins::getInstance()->setAdminBreadcrumbs(); ob_start(); @list($title) = dbarraynum(dbquery("SELECT admin_title FROM ".DB_ADMIN." WHERE admin_link=:base_url", [':base_url' => FUSION_SELF])); \PHPFusion\OutputHandler::setTitle($GLOBALS['locale']['global_123'].$GLOBALS['locale']['global_201'].($title ? $title.$GLOBALS['locale']['global_201'] : "")); // If the user is not logged in as admin then don't parse the administration page // otherwise it could result in bypass of the admin password and one could do // changes to the system settings without even being logged into Admin Panel. // After relogin the user can simply click back in browser and their input will // still be there so nothing is lost if (!check_admin_pass('')) { // If not admin, also must check if user_id is exist due to session time out. $user_id = fusion_get_userdata('user_id'); if (empty($user_id)) { redirect(BASEDIR."index.php"); } require_once __DIR__.'/footer.php'; exit; }