global $tp; $ret = ""; $custom_query = explode('+', $parm); 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 .= "".LOGIN_MENU_L5." ".USERNAME." .:. "; if(ADMIN == TRUE){ $ret .= "".LOGIN_MENU_L11." .:. "; } $ret .= ($custom_query[0] != "login noprofile") ? "".LOGIN_MENU_L13."\n.:. ":""; $ret .= "".LOGIN_MENU_L12." .:. ".LOGIN_MENU_L8." .:."; } else { $ret .= "
"; } return $ret; break; case "search": if(!USER && $pref['search_restrict'] == 1) { 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 = ""; 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; }