$xFrameOptions = isset($xoopsConfig['xFrameOptions']) ? $xoopsConfig['xFrameOptions'] : 'sameorigin'; $xoops->events()->triggerEvent('core.include.common.xframeoption'); if (!headers_sent() && !empty($xFrameOptions)) { header('X-Frame-Options: ' . $xFrameOptions); } /** * Check Bad Ip Addressed against database and block bad ones, requires configs loaded */ $xoops->security()->checkBadips(); /** * Load Language settings and defines */ $xoops->loadLocale(); //For legacy $xoops->setConfig('language', XoopsLocale::getLegacyLanguage()); date_default_timezone_set(XoopsLocale::getTimezone()); setlocale(LC_ALL, XoopsLocale::getLocale()); /** * User Sessions */ $member_handler = $xoops->getHandlerMember(); $xoops->session()->sessionStart(); /** * Gather some info about the logged in user */ if ($xoops->session()->has('xoopsUserId')) { $uid = $xoops->session()->get('xoopsUserId'); $xoops->user = $member_handler->getUser($uid); if ($xoops->user instanceof \XoopsUser) { if ((int) $xoops->user->getVar('last_login') + 60 * 5 < time()) { $user_handler = $xoops->getHandlerUser();