From 1df8d3644b1daa2ed24e274c8f7f5312b165b2d4 Mon Sep 17 00:00:00 2001 From: e107steved Date: Fri, 16 May 2008 19:09:01 +0000 Subject: [PATCH] Add query string to CUSTOM=LOGIN --- e107_files/shortcode/custom.sc | 50 ++++++++++++++++++---------------- 1 file changed, 27 insertions(+), 23 deletions(-) diff --git a/e107_files/shortcode/custom.sc b/e107_files/shortcode/custom.sc index 579b3048a..1cc8e3f9f 100644 --- a/e107_files/shortcode/custom.sc +++ b/e107_files/shortcode/custom.sc @@ -3,31 +3,35 @@ $ret = ""; $custom_query = explode('+', $parm); switch($custom_query[0]) { - case "login": - case "login noprofile": - include_lan(e_PLUGIN."login_menu/languages/".e_LANGUAGE.".php"); + case "login": + case "login noprofile": + include_lan(e_PLUGIN."login_menu/languages/".e_LANGUAGE.".php"); - $sep = (defined("LOGINC_SEP")) ? LOGINC_SEP : ".:."; + $sep = (defined("LOGINC_SEP")) ? LOGINC_SEP : ".:."; - if (USER == TRUE){ - $ret .= "".LOGIN_MENU_L5." ".USERNAME."   ".$sep." "; - if(ADMIN == TRUE){ - $ret .= "".LOGIN_MENU_L11." ".$sep." "; - } - $ret .= ($custom_query[0] != "login noprofile") ? "".LOGIN_MENU_L13."\n".$sep." ":""; - $ret .= "".LOGIN_MENU_L12." ".$sep." ".LOGIN_MENU_L8." ".$sep.""; - } else { - $ret .= "
\n
\n".LOGIN_MENU_L1."  \n".LOGIN_MENU_L2."  \n"; - $ret .= ($pref['user_tracking'] == "cookie") ? "".LOGIN_MENU_L6."  \n" : ""; - $ret .= ""; - if($pref['user_reg']) - { - $ret .= "  "; - } - $ret .= "
\n
"; - } - return $ret; - break; + if (USER == TRUE) + { + $ret .= "".LOGIN_MENU_L5." ".USERNAME."   ".$sep." "; + if(ADMIN == TRUE) + { + $ret .= "".LOGIN_MENU_L11." ".$sep." "; + } + $ret .= ($custom_query[0] != "login noprofile") ? "".LOGIN_MENU_L13."\n".$sep." ":""; + $ret .= "".LOGIN_MENU_L12." ".$sep." ".LOGIN_MENU_L8." ".$sep.""; + } + else + { + $ret .= "
\n
\n".LOGIN_MENU_L1."  \n".LOGIN_MENU_L2."  \n"; + $ret .= ($pref['user_tracking'] == "cookie") ? "".LOGIN_MENU_L6."  \n" : ""; + $ret .= ""; + if($pref['user_reg']) + { + $ret .= "  "; + } + $ret .= "
\n
"; + } + return $ret; + break; case "search": if(!check_class($pref['search_restrict']))