handle_url_routing(""); } $locale = fusion_get_locale(); $info = []; ob_start(); if (!iMEMBER) { switch ($settings['login_method']) { case "2" : $placeholder = $locale['global_101c']; break; case "1" : $placeholder = $locale['global_101b']; break; default: $placeholder = $locale['global_101a']; } $user_name = isset($_POST['user_name']) ? form_sanitizer($_POST['user_name'], "", "user_name") : ""; $user_password = isset($_POST['user_pass']) ? form_sanitizer($_POST['user_pass'], "", "user_pass") : ""; $path = $settings['opening_page']; if (!defined('IN_PERMALINK')) { $path = BASEDIR.(!stristr($settings['opening_page'], '.php') ? $settings['opening_page'].'/index.php' : $settings['opening_page']); } $info = [ "open_form" => openform('loginpageform', 'POST', $path), "user_name" => form_text('user_name', "", $user_name, ['placeholder' => $placeholder, 'inline' => TRUE]), "user_pass" => form_text('user_pass', "", $user_password, ['placeholder' => $locale['global_102'], 'type' => 'password', 'inline' => TRUE]), "remember_me" => form_checkbox('remember_me', $locale['global_103'], ""), "login_button" => form_button('login', $locale['global_104'], $locale['global_104'], ['class' => 'btn-primary btn-block m-b-20']), "registration_link" => $settings['enable_registration'] ? "

".$locale['global_105']."

\n" : "", "forgot_password_link" => $locale['global_106'], "close_form" => closeform() ]; } require_once THEME."theme.php"; require_once INCLUDES."header_includes.php"; require_once INCLUDES."theme_functions_include.php"; require_once THEMES."templates/render_functions.php"; include THEMES."templates/global/maintenance.php"; header("Content-Type: text/html; charset=".$locale['charset'].""); echo "\n"; echo "\n"; echo "\n"; echo "".$settings['sitename']."\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; if ($settings['bootstrap'] || defined('BOOTSTRAP')) { echo "\n"; echo "\n"; echo "\n"; echo "\n"; if ($locale['text-direction'] == 'rtl') { echo "\n"; } } if ($settings['entypo'] || defined('ENTYPO')) { echo "\n"; } if ($settings['fontawesome'] || defined('FONTAWESOME')) { echo "\n"; } if (!defined('NO_DEFAULT_CSS')) { echo "\n"; } $theme_css = file_exists(THEME.'styles.min.css') ? THEME.'styles.min.css' : THEME.'styles.css'; echo "\n"; if ($settings['bootstrap'] == TRUE || defined('BOOTSTRAP')) { $user_theme = fusion_get_userdata('user_theme'); $theme_name = $user_theme !== 'Default' ? $user_theme : $settings['theme']; $theme_data = dbarray(dbquery("SELECT theme_file FROM ".DB_THEME." WHERE theme_name='".$theme_name."' AND theme_active='1'")); if (!empty($theme_data)) { echo "\n"; } } echo render_favicons(defined('THEME_ICON') ? THEME_ICON : IMAGES.'favicons/'); echo "\n"; echo "\n"; display_maintenance($info); echo \PHPFusion\OutputHandler::$pageFooterTags; $fusion_jquery_tags = PHPFusion\OutputHandler::$jqueryTags; if (!empty($fusion_jquery_tags)) { $minifier = new PHPFusion\Minify\JS($fusion_jquery_tags); echo "\n"; } if ($settings['bootstrap'] || defined('BOOTSTRAP')) { echo "\n"; } echo "\n"; echo ""; $output = ob_get_contents(); if (ob_get_length() !== FALSE) { ob_end_clean(); } $output = handle_output($output); echo $output; if ((ob_get_length() > 0)) { ob_end_flush(); }