3_3_member_login.tpl.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. <?php if(!defined('IN_DISCUZ')) exit('Access Denied'); hookscriptoutput('login');
  2. 0
  3. || checktplrefresh('./template/default/member/login.htm', './template/default/common/seccheck.htm', 1524147175, '3', './data/template/3_3_member_login.tpl.php', './template/wfdsoft_jiaohu', 'member/login')
  4. ;?><?php include template('common/header'); $loginhash = 'L'.random(4);?><?php if(empty($_GET['infloat'])) { ?>
  5. <div id="ct" class="ptm wp w cl">
  6. <div class="nfl" id="main_succeed" style="display: none">
  7. <div class="f_c altw">
  8. <div class="alert_right">
  9. <p id="succeedmessage"></p>
  10. <p id="succeedlocation" class="alert_btnleft"></p>
  11. <p class="alert_btnleft"><a id="succeedmessage_href">如果您的浏览器没有自动跳转,请点击此链接</a></p>
  12. </div>
  13. </div>
  14. </div>
  15. <div class="mn" id="main_message">
  16. <div class="bm">
  17. <div class="bm_h bbs">
  18. <span class="y">
  19. <?php if(!empty($_G['setting']['pluginhooks']['logging_side_top'])) echo $_G['setting']['pluginhooks']['logging_side_top'];?>
  20. <a href="member.php?mod=<?php echo $_G['setting']['regname'];?>" class="xi2">没有帐号?<a href="member.php?mod=<?php echo $_G['setting']['regname'];?>"><?php echo $_G['setting']['reglinkname'];?></a></a>
  21. </span>
  22. <?php if(!$secchecklogin2) { ?>
  23. <h3 class="xs2">登录</h3>
  24. <?php } else { ?>
  25. <h3 class="xs2">请输入验证码后继续登录</h3>
  26. <?php } ?>
  27. </div>
  28. <div>
  29. <?php } ?>
  30. <div id="main_messaqge_<?php echo $loginhash;?>"<?php if($auth) { ?> style="width: auto"<?php } ?>>
  31. <div id="layer_login_<?php echo $loginhash;?>">
  32. <h3 class="flb">
  33. <em id="returnmessage_<?php echo $loginhash;?>">
  34. <?php if(!empty($_GET['infloat'])) { if(!empty($_GET['guestmessage'])) { ?>您需要先登录才能继续本操作<?php } elseif($auth) { ?>请补充下面的登录信息<?php } else { ?>用户登录<?php } } ?>
  35. </em>
  36. <span><?php if(!empty($_GET['infloat']) && !isset($_GET['frommessage'])) { ?><a href="javascript:;" class="flbc" onclick="hideWindow('<?php echo $_GET['handlekey'];?>', 0, 1);" title="关闭">关闭</a><?php } ?></span>
  37. </h3>
  38. <?php if(!empty($_G['setting']['pluginhooks']['logging_top'])) echo $_G['setting']['pluginhooks']['logging_top'];?>
  39. <form method="post" autocomplete="off" name="login" id="loginform_<?php echo $loginhash;?>" class="cl" onsubmit="<?php if($this->setting['pwdsafety']) { ?>pwmd5('password3_<?php echo $loginhash;?>');<?php } ?>pwdclear = 1;ajaxpost('loginform_<?php echo $loginhash;?>', 'returnmessage_<?php echo $loginhash;?>', 'returnmessage_<?php echo $loginhash;?>', 'onerror');return false;" action="member.php?mod=logging&amp;action=login&amp;loginsubmit=yes<?php if(!empty($_GET['handlekey'])) { ?>&amp;handlekey=<?php echo $_GET['handlekey'];?><?php } if(isset($_GET['frommessage'])) { ?>&amp;frommessage<?php } ?>&amp;loginhash=<?php echo $loginhash;?>">
  40. <div class="c cl">
  41. <input type="hidden" name="formhash" value="<?php echo FORMHASH;?>" />
  42. <input type="hidden" name="referer" value="<?php echo dreferer(); ?>" />
  43. <?php if($auth) { ?>
  44. <input type="hidden" name="auth" value="<?php echo $auth;?>" />
  45. <?php } if($invite) { ?>
  46. <div class="rfm">
  47. <table>
  48. <tr>
  49. <th>推荐人</th>
  50. <td><a href="home.php?mod=space&amp;uid=<?php echo $invite['uid'];?>" target="_blank"><?php echo $invite['username'];?></a></td>
  51. </tr>
  52. </table>
  53. </div>
  54. <?php } if(!$auth) { ?>
  55. <div class="rfm">
  56. <table>
  57. <tr>
  58. <th>
  59. <?php if($this->setting['autoidselect']) { ?><label for="username_<?php echo $loginhash;?>">帐号:</label><?php } else { ?>
  60. <span class="login_slct">
  61. <select name="loginfield" style="float: left;" width="45" id="loginfield_<?php echo $loginhash;?>">
  62. <option value="username">用户名</option>
  63. <?php if(getglobal('setting/uidlogin')) { ?>
  64. <option value="uid">UID</option>
  65. <?php } ?>
  66. <option value="email">Email</option>
  67. </select>
  68. </span>
  69. <?php } ?>
  70. </th>
  71. <td><input type="text" name="username" id="username_<?php echo $loginhash;?>" autocomplete="off" size="30" class="px p_fre" tabindex="1" value="<?php echo $username;?>" /></td>
  72. <td class="tipcol"><a href="member.php?mod=<?php echo $_G['setting']['regname'];?>"><?php echo $_G['setting']['reglinkname'];?></a></td>
  73. </tr>
  74. </table>
  75. </div>
  76. <div class="rfm">
  77. <table>
  78. <tr>
  79. <th><label for="password3_<?php echo $loginhash;?>">密码:</label></th>
  80. <td><input type="password" id="password3_<?php echo $loginhash;?>" name="password" onfocus="clearpwd()" size="30" class="px p_fre" tabindex="1" /></td>
  81. <td class="tipcol"><a href="javascript:;" onclick="display('layer_login_<?php echo $loginhash;?>');display('layer_lostpw_<?php echo $loginhash;?>');" title="找回密码">找回密码</a></td>
  82. </tr>
  83. </table>
  84. </div>
  85. <?php } if(empty($_GET['auth']) || $questionexist) { ?>
  86. <div class="rfm">
  87. <table>
  88. <tr>
  89. <th>安全提问:</th>
  90. <td><select id="loginquestionid_<?php echo $loginhash;?>" width="213" name="questionid"<?php if(!$questionexist) { ?> onchange="if($('loginquestionid_<?php echo $loginhash;?>').value > 0) {$('loginanswer_row_<?php echo $loginhash;?>').style.display='';} else {$('loginanswer_row_<?php echo $loginhash;?>').style.display='none';}"<?php } ?>>
  91. <option value="0"><?php if($questionexist) { ?>安全提问<?php } else { ?>安全提问(未设置请忽略)<?php } ?></option>
  92. <option value="1">母亲的名字</option>
  93. <option value="2">爷爷的名字</option>
  94. <option value="3">父亲出生的城市</option>
  95. <option value="4">您其中一位老师的名字</option>
  96. <option value="5">您个人计算机的型号</option>
  97. <option value="6">您最喜欢的餐馆名称</option>
  98. <option value="7">驾驶执照最后四位数字</option>
  99. </select></td>
  100. </tr>
  101. </table>
  102. </div>
  103. <div class="rfm" id="loginanswer_row_<?php echo $loginhash;?>" <?php if(!$questionexist) { ?> style="display:none"<?php } ?>>
  104. <table>
  105. <tr>
  106. <th>答案:</th>
  107. <td><input type="text" name="answer" id="loginanswer_<?php echo $loginhash;?>" autocomplete="off" size="30" class="px p_fre" tabindex="1" /></td>
  108. </tr>
  109. </table>
  110. </div>
  111. <?php } if($seccodecheck) { ?><?php
  112. $sectpl = <<<EOF
  113. <div class="rfm"><table><tr><th><sec>: </th><td><sec><br /><sec></td></tr></table></div>
  114. EOF;
  115. ?><?php $sechash = !isset($sechash) ? 'S'.($_G['inajax'] ? 'A' : '').$_G['sid'] : $sechash.random(3);
  116. $sectpl = str_replace("'", "\'", $sectpl);?><?php if($secqaacheck) { ?>
  117. <span id="secqaa_q<?php echo $sechash;?>"></span>
  118. <script type="text/javascript" reload="1">updatesecqaa('q<?php echo $sechash;?>', '<?php echo $sectpl;?>', '<?php echo $_G['basescript'];?>::<?php echo CURMODULE;?>');</script>
  119. <?php } if($seccodecheck) { ?>
  120. <span id="seccode_c<?php echo $sechash;?>"></span>
  121. <script type="text/javascript" reload="1">updateseccode('c<?php echo $sechash;?>', '<?php echo $sectpl;?>', '<?php echo $_G['basescript'];?>::<?php echo CURMODULE;?>');</script>
  122. <?php } } ?>
  123. <?php if(!empty($_G['setting']['pluginhooks']['logging_input'])) echo $_G['setting']['pluginhooks']['logging_input'];?>
  124. <div class="rfm <?php if(!empty($_GET['infloat'])) { ?> bw0<?php } ?>">
  125. <table>
  126. <tr>
  127. <th></th>
  128. <td><label for="cookietime_<?php echo $loginhash;?>"><input type="checkbox" class="pc" name="cookietime" id="cookietime_<?php echo $loginhash;?>" tabindex="1" value="2592000" <?php echo $cookietimecheck;?> />自动登录</label></td>
  129. </tr>
  130. </table>
  131. </div>
  132. <div class="rfm mbw bw0">
  133. <table width="100%">
  134. <tr>
  135. <th>&nbsp;</th>
  136. <td>
  137. <button class="pn pnc" type="submit" name="loginsubmit" value="true" tabindex="1"><strong>登录</strong></button>
  138. </td>
  139. <td>
  140. <?php if($this->setting['sitemessage']['login'] && empty($_GET['infloat'])) { ?><a href="javascript:;" id="custominfo_login_<?php echo $loginhash;?>" class="y">&nbsp;<img src="<?php echo IMGDIR;?>/info_small.gif" alt="帮助" class="vm" /></a><?php } if(!$this->setting['bbclosed'] && empty($_GET['infloat'])) { ?><a href="javascript:;" onclick="ajaxget('member.php?mod=clearcookies&formhash=<?php echo FORMHASH;?>', 'returnmessage_<?php echo $loginhash;?>', 'returnmessage_<?php echo $loginhash;?>');return false;" title="清除痕迹" class="y">清除痕迹</a><?php } ?>
  141. </td>
  142. </tr>
  143. </table>
  144. </div>
  145. <?php if(!empty($_G['setting']['pluginhooks']['logging_method'])) { ?>
  146. <div class="rfm bw0 <?php if(empty($_GET['infloat'])) { ?> mbw<?php } ?>">
  147. <hr class="l" />
  148. <table>
  149. <tr>
  150. <th>快捷登录:</th>
  151. <td><?php if(!empty($_G['setting']['pluginhooks']['logging_method'])) echo $_G['setting']['pluginhooks']['logging_method'];?></td>
  152. </tr>
  153. </table>
  154. </div>
  155. <?php } ?>
  156. </div>
  157. </form>
  158. </div>
  159. <?php if($_G['setting']['pwdsafety']) { ?>
  160. <script src="<?php echo $_G['setting']['jspath'];?>md5.js?<?php echo VERHASH;?>" type="text/javascript" reload="1"></script>
  161. <?php } ?>
  162. <div id="layer_lostpw_<?php echo $loginhash;?>" style="display: none;">
  163. <h3 class="flb">
  164. <em id="returnmessage3_<?php echo $loginhash;?>">找回密码</em>
  165. <span><?php if(!empty($_GET['infloat']) && !isset($_GET['frommessage'])) { ?><a href="javascript:;" class="flbc" onclick="hideWindow('login')" title="关闭">关闭</a><?php } ?></span>
  166. </h3>
  167. <form method="post" autocomplete="off" id="lostpwform_<?php echo $loginhash;?>" class="cl" onsubmit="ajaxpost('lostpwform_<?php echo $loginhash;?>', 'returnmessage3_<?php echo $loginhash;?>', 'returnmessage3_<?php echo $loginhash;?>', 'onerror');return false;" action="member.php?mod=lostpasswd&amp;lostpwsubmit=yes&amp;infloat=yes">
  168. <div class="c cl">
  169. <input type="hidden" name="formhash" value="<?php echo FORMHASH;?>" />
  170. <input type="hidden" name="handlekey" value="lostpwform" />
  171. <div class="rfm">
  172. <table>
  173. <tr>
  174. <th><span class="rq">*</span><label for="lostpw_email">Email:</label></th>
  175. <td><input type="text" name="email" id="lostpw_email" size="30" value="" tabindex="1" class="px p_fre" /></td>
  176. </tr>
  177. </table>
  178. </div>
  179. <div class="rfm">
  180. <table>
  181. <tr>
  182. <th><label for="lostpw_username">用户名:</label></th>
  183. <td><input type="text" name="username" id="lostpw_username" size="30" value="" tabindex="1" class="px p_fre" /></td>
  184. </tr>
  185. </table>
  186. </div>
  187. <div class="rfm mbw bw0">
  188. <table>
  189. <tr>
  190. <th></th>
  191. <td><button class="pn pnc" type="submit" name="lostpwsubmit" value="true" tabindex="100"><span>提交</span></button></td>
  192. </tr>
  193. </table>
  194. </div>
  195. </div>
  196. </form>
  197. </div>
  198. </div>
  199. <div id="layer_message_<?php echo $loginhash;?>"<?php if(empty($_GET['infloat'])) { ?> class="f_c blr nfl"<?php } ?> style="display: none;">
  200. <h3 class="flb" id="layer_header_<?php echo $loginhash;?>">
  201. <?php if(!empty($_GET['infloat']) && !isset($_GET['frommessage'])) { ?>
  202. <em>用户登录</em>
  203. <span><a href="javascript:;" class="flbc" onclick="hideWindow('login')" title="关闭">关闭</a></span>
  204. <?php } ?>
  205. </h3>
  206. <div class="c"><div class="alert_right">
  207. <div id="messageleft_<?php echo $loginhash;?>"></div>
  208. <p class="alert_btnleft" id="messageright_<?php echo $loginhash;?>"></p>
  209. </div>
  210. </div>
  211. <script type="text/javascript" reload="1">
  212. <?php if(!isset($_GET['viewlostpw'])) { ?>
  213. var pwdclear = 0;
  214. function initinput_login() {
  215. document.body.focus();
  216. <?php if(!$auth) { ?>
  217. if($('loginform_<?php echo $loginhash;?>')) {
  218. $('loginform_<?php echo $loginhash;?>').username.focus();
  219. }
  220. <?php if(!$this->setting['autoidselect']) { ?>
  221. simulateSelect('loginfield_<?php echo $loginhash;?>');
  222. <?php } } elseif($seccodecheck && !(empty($_GET['auth']) || $questionexist)) { ?>
  223. if($('loginform_<?php echo $loginhash;?>')) {
  224. safescript('seccodefocus', function() {$('loginform_<?php echo $loginhash;?>').seccodeverify.focus()}, 500, 10);
  225. }
  226. <?php } ?>
  227. }
  228. initinput_login();
  229. <?php if($this->setting['sitemessage']['login']) { ?>
  230. showPrompt('custominfo_login_<?php echo $loginhash;?>', 'mouseover', '<?php echo trim($this->setting['sitemessage']['login'][array_rand($this->setting['sitemessage']['login'])]); ?>', <?php echo $this->setting['sitemessage']['time'];?>);
  231. <?php } ?>
  232. function clearpwd() {
  233. if(pwdclear) {
  234. $('password3_<?php echo $loginhash;?>').value = '';
  235. }
  236. pwdclear = 0;
  237. }
  238. <?php } else { ?>
  239. display('layer_login_<?php echo $loginhash;?>');
  240. display('layer_lostpw_<?php echo $loginhash;?>');
  241. $('lostpw_email').focus();
  242. <?php } ?>
  243. </script><?php updatesession();?><?php if(empty($_GET['infloat'])) { ?>
  244. </div></div></div></div>
  245. </div>
  246. <?php } include template('common/footer'); ?>