"; // $LOGIN_TABLE_PASSWORD = ""; // if (!USER && e107::getSession()->is('challenge') && varset($pref['password_CHAP'],0)) // { // $LOGIN_TABLE_PASSWORD .= "\n\n"; // } // if ($use_imagecode) // { // $LOGIN_TABLE_SECIMG_LAN = LAN_LOGIN_13; // $LOGIN_TABLE_SECIMG_HIDDEN = ""; // $LOGIN_TABLE_SECIMG_SECIMG = $sec_img->r_image(); // $LOGIN_TABLE_SECIMG_TEXTBOC = ""; // } // $LOGIN_TABLE_AUTOLOGIN = ""; // $LOGIN_TABLE_AUTOLOGIN_LAN = LAN_LOGIN_8; // $LOGIN_TABLE_SUBMIT = ""; if (!isset($LOGIN_TABLE) || !$LOGIN_TABLE) { if (file_exists(THEME.'templates/login_template.php')) //v2.x path { require_once(THEME.'templates/login_template.php'); } elseif (file_exists(THEME.'login_template.php')) { require_once(THEME.'login_template.php'); } else { require_once(e_CORE."templates/login_template.php"); } } $sc = e107::getScBatch('login'); if((deftrue('BOOTSTRAP')) && isset($LOGIN_TEMPLATE['page'])) { $LOGIN_TABLE_HEADER = $LOGIN_TEMPLATE['page']['header']; $LOGIN_TABLE = "
".$LOGIN_TEMPLATE['page']['body']."
"; $LOGIN_TABLE_FOOTER = $LOGIN_TEMPLATE['page']['footer']; } $text = $tp->parseTemplate($LOGIN_TABLE,true, $sc); // $text = preg_replace("/\{(.*?)\}/e", 'varset($\1,"\1")', $LOGIN_TABLE); if(getperms('0')) { echo "
You are currently logged in.
"; } // echo preg_replace("/\{(.*?)\}/e", 'varset($\1,"\1")', $LOGIN_TABLE_HEADER); $login_message = SITENAME; // $login_message = LAN_LOGIN_3." | ".SITENAME; echo LOGINMESSAGE; echo $tp->parseTemplate($LOGIN_TABLE_HEADER, $sc); $ns->tablerender($login_message, $text, 'login_page'); echo $tp->parseTemplate($LOGIN_TABLE_FOOTER, $sc); // echo preg_replace("/\{([^ ]*?)\}/e", 'varset($\1,"\1")', $LOGIN_TABLE_FOOTER); } require_once(FOOTERF); exit; //echo ""; // $sql->db_Close(); ?>