[ Index ] |
|
Code source de e107 0.7.8 |
1 <?php 2 /* 3 + ----------------------------------------------------------------------------+ 4 | e107 website system 5 | 6 | ©Steve Dunstan 2001-2002 7 | http://e107.org 8 | jalist@e107.org 9 | 10 | Released under the terms and conditions of the 11 | GNU General Public License (http://gnu.org). 12 | 13 | $Source: /cvsroot/e107/e107_0.7/e107_plugins/login_menu/login_menu_shortcodes.php,v $ 14 | $Revision: 1.10 $ 15 | $Date: 2006/11/18 22:40:54 $ 16 | $Author: mcfly_e107 $ 17 +----------------------------------------------------------------------------+ 18 */ 19 if (!defined('e107_INIT')) { exit; } 20 global $tp; 21 $login_menu_shortcodes = $tp -> e_sc -> parse_scbatch(__FILE__); 22 23 /* 24 SC_BEGIN LM_USERNAME_INPUT 25 return "<input class='tbox login user' type='text' name='username' size='15' value='' maxlength='30' />\n"; 26 SC_END 27 28 SC_BEGIN LM_PASSWORD_INPUT 29 return "<input class='tbox login pass' type='password' name='userpass' size='15' value='' maxlength='20' />\n\n"; 30 SC_END 31 32 SC_BEGIN LM_IMAGECODE 33 global $use_imagecode, $sec_img; 34 if($use_imagecode) 35 { 36 return '<input type="hidden" name="rand_num" value="'.$sec_img->random_number.'" /> 37 '.$sec_img->r_image().' 38 <br /><input class="tbox login verify" type="text" name="code_verify" size="15" maxlength="20" /><br />'; 39 } 40 SC_END 41 42 SC_BEGIN LM_LOGINBUTTON 43 return "<input class='button' type='submit' name='userlogin' value='".LOGIN_MENU_L28."' />"; 44 SC_END 45 46 SC_BEGIN LM_REMEMBERME 47 global $pref; 48 if($parm == "hidden"){ 49 return "<input type='hidden' name='autologin' value='1' />"; 50 } 51 if($pref['user_tracking'] != "session") 52 { 53 return "<input type='checkbox' name='autologin' value='1' checked='checked' />".LOGIN_MENU_L6; 54 } 55 SC_END 56 57 SC_BEGIN LM_SIGNUP_LINK 58 global $pref; 59 if ($pref['user_reg']) 60 { 61 if (!$pref['auth_method'] || $pref['auth_method'] == 'e107') 62 { 63 return "<a class='login_menu_link signup' href='".e_SIGNUP."' title=\"".LOGIN_MENU_L3."\">".LOGIN_MENU_L3."</a>"; 64 } 65 } 66 return ""; 67 SC_END 68 69 SC_BEGIN LM_FPW_LINK 70 global $pref; 71 if ($pref['user_reg']) 72 { 73 if (!$pref['auth_method'] || $pref['auth_method'] == 'e107') 74 { 75 return "<a class='login_menu_link fpw' href='".e_BASE."fpw.php' title=\"".LOGIN_MENU_L4."\">".LOGIN_MENU_L4."</a>"; 76 } 77 } 78 return ""; 79 SC_END 80 81 SC_BEGIN LM_RESEND_LINK 82 global $pref; 83 if(isset($pref['user_reg_veri']) && $pref['user_reg_veri'] == 1){ 84 if (!$pref['auth_method'] || $pref['auth_method'] == 'e107' ) 85 { 86 return "<a class='login_menu_link resend' href='".e_SIGNUP."?resend' title=\"".LOGIN_MENU_L40."\">".LOGIN_MENU_L40."</a>"; 87 } 88 } 89 return ""; 90 SC_END 91 92 SC_BEGIN LM_MAINTENANCE 93 global $pref; 94 if(ADMIN == TRUE){ 95 return ($pref['maintainance_flag'] == 1 ? '<div style="text-align:center"><strong>'.LOGIN_MENU_L10.'</strong></div><br />' : '' ); 96 } 97 SC_END 98 99 SC_BEGIN LM_ADMINLINK_BULLET 100 global $bullet; 101 if(ADMIN==TRUE && $bullet !='bullet'){ 102 return $bullet; 103 } 104 SC_END 105 106 SC_BEGIN LM_ADMINLINK 107 global $ADMIN_DIRECTORY, $eplug_admin; 108 109 //die(e_PAGE); 110 111 if(ADMIN == TRUE) { 112 if (strpos(e_SELF, $ADMIN_DIRECTORY) !== FALSE || $eplug_admin == true || substr(e_PAGE, 0, 6) == 'admin_') 113 { 114 return '<a class="login_menu_link" href="'.e_BASE.'index.php">'.LOGIN_MENU_L39.'</a>'; 115 } 116 else 117 { 118 return '<a class="login_menu_link" href="'.e_ADMIN_ABS.'admin.php">'.LOGIN_MENU_L11.'</a>'; 119 } 120 } 121 SC_END 122 123 124 125 SC_BEGIN LM_BULLET 126 global $bullet; 127 return $bullet; 128 129 SC_END 130 131 SC_BEGIN LM_USERSETTINGS 132 $text = ($parm) ? $parm : LOGIN_MENU_L12; 133 return '<a class="login_menu_link" href="'.e_HTTP.'usersettings.php">'.$text.'</a>'; 134 SC_END 135 136 SC_BEGIN LM_PROFILE 137 $text = ($parm) ? $parm : LOGIN_MENU_L13; 138 return '<a class="login_menu_link" href="'.e_HTTP.'user.php?id.'.USERID.'">'.$text.'</a>'; 139 SC_END 140 141 SC_BEGIN LM_LOGOUT 142 $text = ($parm) ? $parm : LOGIN_MENU_L8; 143 return '<a class="login_menu_link" href="'.e_HTTP.'index.php?logout">'.$text.'</a>'; 144 SC_END 145 146 SC_BEGIN LM_MESSAGE 147 global $tp; 148 if($parm == "popup"){ 149 $srch = array("<br />","'"); 150 $rep = array("\\n","\'"); 151 return "<script type='text/javascript'> 152 alert('".$tp->toJS(LOGINMESSAGE)."'); 153 </script>"; 154 }else{ 155 return LOGINMESSAGE; 156 } 157 SC_END 158 159 */ 160 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Apr 1 01:23:32 2007 | par Balluche grâce à PHPXref 0.7 |