global $tp; $ret = ""; $custom_query = explode('+', $parm); global $use_imagecode, $sec_img; $use_imagecode = ($pref['logcode'] && extension_loaded('gd')); if($use_imagecode) { include_once(e_HANDLER.'secure_img_handler.php'); $sec_img = new secure_image; $fs_sec_code_img = ''.LAN_SEC_IMAGE.'
'.$sec_img->r_image().' '; } switch($custom_query[0]) { case "login": case "login noprofile": @include_once(e_PLUGIN."login_menu/languages/".e_LANGUAGE.".php"); @include_once(e_PLUGIN."login_menu/languages/English.php"); if (USER == TRUE){ $ret .= "
"; if(ADMIN == TRUE){ $ret .= ""; } $ret .= ($custom_query[0] != "login noprofile") ? "":""; $ret .= " "; $ret .= "
".LOGIN_MENU_L5."  ".USERNAME.",  ".LOGIN_MENU_L8."".LOGIN_MENU_L11."".LOGIN_MENU_L13."".LOGIN_MENU_L12."
"; } else { if(!$use_imagecode) { $ret .= "
\n \n \n \n "; if($pref['user_reg']) { $ret .= ""; } $ret .= "
".LOGIN_MENU_L1." ".LOGIN_MENU_L2." ".LOGIN_MENU_L6."".LOGIN_MENU_L3."
"; } else { $ret .= "
\n \n \n ".$fs_sec_code_img." \n "; if($pref['user_reg']) { $ret .= ""; } $ret .= "
".LOGIN_MENU_L1."
".LOGIN_MENU_L2."
".LOGIN_MENU_L6."".LOGIN_MENU_L3."
"; } } return $ret; break; case "search": if(!check_class($pref['search_restrict'])) { return ""; } $searchflat = TRUE; include_once(e_PLUGIN."search_menu/search_menu.php"); return ""; break; case "quote": $qotd_file = e_BASE."quote.txt"; if(!file_exists($qotd_file)) { $quote = "Quote file not found ($qotd_file)"; } else { $quotes = file(e_BASE."quote.txt"); $quote = $tp->toHTML($quotes[rand(0, count($quotes) -1 )], TRUE); } return $quote; break; case "language": require_once(e_HANDLER."file_class.php"); $fl = new e_file; $reject = array('.','..','/','CVS','thumbs.db','*._$'); $lanlist = $fl->get_dirs(e_LANGUAGEDIR); sort($lanlist); $action = (e_QUERY && !$_GET['elan']) ? e_SELF."?".e_QUERY : e_SELF; $lantext = "
\n"; $lantext .= ""; $lantext .= "
"; return $lantext; break; case "clock": $clock_flat = TRUE; include_once(e_PLUGIN."clock_menu/clock_menu.php"); return ""; break; case "welcomemessage": return $tp->parseTemplate("{WMESSAGE}"); break; }