index.php 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. <?php
  2. define('EmpireCMSAdmin','1');
  3. define('EmpireCMSAPage','login');
  4. define('EmpireCMSNFPage','1');
  5. require("../class/connect.php");
  6. require("../class/functions.php");
  7. //风格
  8. $loginadminstyleid=EcmsReturnAdminStyle();
  9. //变量处理
  10. $empirecmskey1='';
  11. $empirecmskey2='';
  12. $empirecmskey3='';
  13. $empirecmskey4='';
  14. $empirecmskey5='';
  15. if($_POST['empirecmskey1']&&$_POST['empirecmskey2']&&$_POST['empirecmskey3']&&$_POST['empirecmskey4']&&$_POST['empirecmskey5'])
  16. {
  17. $empirecmskey1=RepPostVar($_POST['empirecmskey1']);
  18. $empirecmskey2=RepPostVar($_POST['empirecmskey2']);
  19. $empirecmskey3=RepPostVar($_POST['empirecmskey3']);
  20. $empirecmskey4=RepPostVar($_POST['empirecmskey4']);
  21. $empirecmskey5=RepPostVar($_POST['empirecmskey5']);
  22. $ecertkeyrndstr=$empirecmskey1.'#!#'.$empirecmskey2.'#!#'.$empirecmskey3.'#!#'.$empirecmskey4.'#!#'.$empirecmskey5;
  23. esetcookie('ecertkeyrnds',$ecertkeyrndstr,0);
  24. }
  25. elseif(getcvar('ecertkeyrnds'))
  26. {
  27. $certr=explode('#!#',getcvar('ecertkeyrnds'));
  28. $empirecmskey1=RepPostVar($certr[0]);
  29. $empirecmskey2=RepPostVar($certr[1]);
  30. $empirecmskey3=RepPostVar($certr[2]);
  31. $empirecmskey4=RepPostVar($certr[3]);
  32. $empirecmskey5=RepPostVar($certr[4]);
  33. }
  34. else
  35. {}
  36. ?>
  37. <html>
  38. <head>
  39. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  40. <title>帝国CMS - 稳定可靠、安全省心</title>
  41. <link rel="stylesheet" href="loginimg/css.css" type="text/css">
  42. <base onmouseover="window.status='帝国CMS - 稳定可靠、安全省心';return true">
  43. <script>
  44. if(self!=top)
  45. {
  46. parent.location.href='index.php';
  47. }
  48. function CheckLogin(obj){
  49. if(obj.username.value=='')
  50. {
  51. alert('请输入用户名');
  52. obj.username.focus();
  53. return false;
  54. }
  55. if(obj.password.value=='')
  56. {
  57. alert('请输入登录密码');
  58. obj.password.focus();
  59. return false;
  60. }
  61. if(obj.loginauth!=null)
  62. {
  63. if(obj.loginauth.value=='')
  64. {
  65. alert('请输入认证码');
  66. obj.loginauth.focus();
  67. return false;
  68. }
  69. }
  70. if(obj.key!=null)
  71. {
  72. if(obj.key.value=='')
  73. {
  74. alert('请输入验证码');
  75. obj.key.focus();
  76. return false;
  77. }
  78. }
  79. return true;
  80. }
  81. function edoshowkey(showid,vname){
  82. document.getElementById(showid).innerHTML='<img src="ShowKey.php?v='+vname+'&t='+Math.random()+'" name="'+vname+'KeyImg" id="'+vname+'KeyImg" align="bottom" onclick=edoshowkey("'+showid+'","'+vname+'") title="看不清楚,点击刷新">';
  83. }
  84. </script>
  85. </head>
  86. <body text="383636" bgcolor="#FFFFFF" onload="document.login.username.focus();">
  87. <table width="98" border="0" cellspacing="0" cellpadding="0" align="center">
  88. <tr>
  89. <td height="60">&nbsp;</td>
  90. </tr>
  91. </table>
  92. <table width="524" border="0" cellspacing="0" cellpadding="0" align="center" height="320">
  93. <form name="login" id="login" method="post" action="ecmsadmin.php" onsubmit="return CheckLogin(document.login);" autocomplete="off">
  94. <input type="hidden" name="enews" value="login">
  95. <input name="eposttime" type="hidden" id="eposttime" value="0">
  96. <tr>
  97. <td width="61" rowspan="3" valign="top"> <TABLE WIDTH=61 height="100%" BORDER=0 CELLPADDING=0 CELLSPACING=0>
  98. <TR>
  99. <TD height="63"> <IMG SRC="loginimg/login_r1_c1_01.jpg" WIDTH=61 HEIGHT=63></TD>
  100. </TR>
  101. <TR>
  102. <TD height="163" background="loginimg/login_r1_c1_02.jpg">&nbsp; </TD>
  103. </TR>
  104. <TR>
  105. <TD height="100%" background="loginimg/login_r1_c1_003.jpg">&nbsp;</TD>
  106. </TR>
  107. <TR>
  108. <TD height="23"> <IMG SRC="loginimg/login_r1_c1_03.jpg" WIDTH=61 HEIGHT=23></TD>
  109. </TR>
  110. </TABLE></td>
  111. <td colspan="3"><img src="loginimg/login_r1_c2.gif" width="463" height="65"></td>
  112. </tr>
  113. <tr>
  114. <td width="241" valign="top" bgcolor="#FFFFFF"><img src="loginimg/login_r2_c2.gif" width="241" height="104"></td>
  115. <td width="157" rowspan="2" valign="top" bgcolor="#FFFFFF">
  116. <table width="157" height="100%" border="0" cellpadding="0" cellspacing="0">
  117. <tr>
  118. <td> <br><br>
  119. <img src="loginimg/login_r2_c3.gif" width="157" height="184"></td>
  120. </tr>
  121. <tr>
  122. <td height="100%" valign="bottom"> <div align="right"><a href="../../" target="_blank"><img src="loginimg/homepage.gif" width="79" height="21" border="0"></a>&nbsp;<a href="http://bbs.phome.net" target="_blank"><img src="loginimg/empirebbs.gif" width="69" height="21" border="0"></a></div></td>
  123. </tr>
  124. </table> </td>
  125. <td width="65" rowspan="2" valign="top">
  126. <table width="65" height="100%" border="0" cellpadding="0" cellspacing="0">
  127. <tr>
  128. <td height="184" background="loginimg/login_r2_c4.gif">&nbsp;</td>
  129. </tr>
  130. <tr>
  131. <td height="100%" background="loginimg/login_r2_c4_002.jpg">&nbsp;</td>
  132. </tr>
  133. </table>
  134. </td>
  135. </tr>
  136. <tr>
  137. <td height="80"> <table width="230" height="100%" border="0" align="right" cellpadding="0" cellspacing="0">
  138. <tr>
  139. <td width="50" height="27">用户名: </td>
  140. <td colspan="2"> <input name="username" type="text" class="b-form2" size="22">
  141. </td>
  142. </tr>
  143. <tr>
  144. <td height="27">密&nbsp; &nbsp;码: </td>
  145. <td colspan="2"> <input name="password" type="password" class="b-form2" size="22">
  146. </td>
  147. </tr>
  148. <?php
  149. if($ecms_config['esafe']['loginauth'])
  150. {
  151. ?>
  152. <tr>
  153. <td height="27">认证码: </td>
  154. <td colspan="2"><input name="loginauth" type="password" id="loginauth" class="b-form2" size="22"></td>
  155. </tr>
  156. <?php
  157. }
  158. ?>
  159. <tr>
  160. <td height="27">提&nbsp; &nbsp;问: </td>
  161. <td colspan="2"><select name="equestion" id="equestion" onchange="if(this.options[this.selectedIndex].value==0){showanswer.style.display='none';}else{showanswer.style.display='';}">
  162. <option value="0">无安全提问</option>
  163. <option value="1">母亲的名字</option>
  164. <option value="2">爷爷的名字</option>
  165. <option value="3">父亲出生的城市</option>
  166. <option value="4">您其中一位老师的名字</option>
  167. <option value="5">您个人计算机的型号</option>
  168. <option value="6">您最喜欢的餐馆名称</option>
  169. <option value="7">驾驶执照的最后四位数字</option>
  170. </select></td>
  171. </tr>
  172. <tr id="showanswer">
  173. <td height="27">答&nbsp; &nbsp;案: </td>
  174. <td colspan="2"><input name="eanswer" type="text" id="eanswer" class="b-form2" size="22"></td>
  175. </tr>
  176. <?php
  177. if(empty($public_r['adminloginkey']))
  178. {
  179. ?>
  180. <tr>
  181. <td height="27">验证码: </td>
  182. <td width="83"> <input name="key" type="text" class="b-form2" size="9">
  183. </td>
  184. <td width="97" id="checkkeyshowkey"><a href="#EmpireCMS" onclick="edoshowkey('checkkeyshowkey','checkkey');" title="点击显示验证码">点击显示</a></td>
  185. </tr>
  186. <?php
  187. }
  188. ?>
  189. <tr>
  190. <td height="27">窗&nbsp; &nbsp;口: </td>
  191. <td colspan="2"><input type="radio" name="adminwindow" value="0" checked>
  192. 正常
  193. <input type="radio" name="adminwindow" value="1">
  194. 全屏</td>
  195. </tr>
  196. <tr>
  197. <td height="27">&nbsp;</td>
  198. <td colspan="2" valign="bottom"> <input name="imageField" type="image" src="loginimg/login2.gif" width="69" height="21" border="0">
  199. </td>
  200. </tr>
  201. </table></td>
  202. </tr>
  203. <tr>
  204. <td colspan="4"><table width="100%" border="0" cellpadding="0" cellspacing="0" background="loginimg/login_r4_c1.gif">
  205. <tr>
  206. <td width="111" height="32">&nbsp;</td>
  207. <td width="111" valign="top">&nbsp;</td>
  208. <td width="302"><input name="empirecmskey1" type="hidden" id="empirecmskey1" value="<?php echo $empirecmskey1;?>">
  209. <input name="empirecmskey2" type="hidden" id="empirecmskey2" value="<?php echo $empirecmskey2;?>">
  210. <input name="empirecmskey3" type="hidden" id="empirecmskey3" value="<?php echo $empirecmskey3;?>">
  211. <input name="empirecmskey4" type="hidden" id="empirecmskey4" value="<?php echo $empirecmskey4;?>">
  212. <input name="empirecmskey5" type="hidden" id="empirecmskey5" value="<?php echo $empirecmskey5;?>"></td>
  213. </tr>
  214. </table></td>
  215. </tr>
  216. <tr>
  217. <td height="39" colspan="4" valign="top" bgcolor="ECECEC">
  218. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  219. <tr>
  220. <td width="19%"><div align="center"></div></td>
  221. <td width="73%" height="30">Powered by <a href="http://www.phome.net" target="_blank"><strong>EmpireCMS</strong></a>
  222. <font color="#FF9900"><strong>7.5</strong></font> &copy; 2002-2018 <a href="http://www.digod.com" target="_blank">EmpireSoft</a>
  223. Inc.</td>
  224. <td width="8%">&nbsp;</td>
  225. </tr>
  226. </table></td>
  227. </tr>
  228. </form>
  229. </table>
  230. <table width="100%" border="0" cellspacing="1" cellpadding="3">
  231. <tr>
  232. <td height="90"><div align="center"><a href="http://ebak.phome.net" target="_blank" title="EmpireBak+phpMyAdmin+高安全"><img src="loginimg/ebakbanner.gif" width="523" style="border:1px solid #63CDEF;"></a></div></td>
  233. </tr>
  234. </table>
  235. <script>
  236. if(document.login.equestion.value==0)
  237. {
  238. showanswer.style.display='none';
  239. }
  240. </script>
  241. </body>
  242. </html>