index.php
8.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
<?php
define('EmpireCMSAdmin','1');
define('EmpireCMSAPage','login');
define('EmpireCMSNFPage','1');
require("../class/connect.php");
require("../class/functions.php");
//風格
$loginadminstyleid=EcmsReturnAdminStyle();
//變量處理
$empirecmskey1='';
$empirecmskey2='';
$empirecmskey3='';
$empirecmskey4='';
$empirecmskey5='';
if($_POST['empirecmskey1']&&$_POST['empirecmskey2']&&$_POST['empirecmskey3']&&$_POST['empirecmskey4']&&$_POST['empirecmskey5'])
{
$empirecmskey1=RepPostVar($_POST['empirecmskey1']);
$empirecmskey2=RepPostVar($_POST['empirecmskey2']);
$empirecmskey3=RepPostVar($_POST['empirecmskey3']);
$empirecmskey4=RepPostVar($_POST['empirecmskey4']);
$empirecmskey5=RepPostVar($_POST['empirecmskey5']);
$ecertkeyrndstr=$empirecmskey1.'#!#'.$empirecmskey2.'#!#'.$empirecmskey3.'#!#'.$empirecmskey4.'#!#'.$empirecmskey5;
esetcookie('ecertkeyrnds',$ecertkeyrndstr,0);
}
elseif(getcvar('ecertkeyrnds'))
{
$certr=explode('#!#',getcvar('ecertkeyrnds'));
$empirecmskey1=RepPostVar($certr[0]);
$empirecmskey2=RepPostVar($certr[1]);
$empirecmskey3=RepPostVar($certr[2]);
$empirecmskey4=RepPostVar($certr[3]);
$empirecmskey5=RepPostVar($certr[4]);
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Renew網站管理系統</title>
<link rel="stylesheet" href="loginimg/css.css" type="text/css">
<script>
if(self!=top)
{
parent.location.href='index.php';
}
function CheckLogin(obj){
if(obj.username.value=='')
{
alert('請輸入用戶名');
obj.username.focus();
return false;
}
if(obj.password.value=='')
{
alert('請輸入登錄密碼');
obj.password.focus();
return false;
}
if(obj.loginauth!=null)
{
if(obj.loginauth.value=='')
{
alert('請輸入認證碼');
obj.loginauth.focus();
return false;
}
}
if(obj.key!=null)
{
if(obj.key.value=='')
{
alert('請輸入驗證碼');
obj.key.focus();
return false;
}
}
return true;
}
</script>
</head>
<body text="383636" bgcolor="#FFFFFF" onload="document.login.username.focus();">
<table width="98" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td height="60"> </td>
</tr>
</table>
<table width="524" border="0" cellspacing="0" cellpadding="0" align="center" height="320">
<form name="login" id="login" method="post" action="ecmsadmin.php" onsubmit="return CheckLogin(document.login);">
<input type="hidden" name="enews" value="login">
<tr>
<td width="61" rowspan="3" valign="top"> <TABLE WIDTH=61 height="100%" BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD height="63"> <IMG SRC="loginimg/login_r1_c1_01.jpg" WIDTH=61 HEIGHT=63></TD>
</TR>
<TR>
<TD height="163" background="loginimg/login_r1_c1_02.jpg"> </TD>
</TR>
<TR>
<TD height="100%" background="loginimg/login_r1_c1_003.jpg"> </TD>
</TR>
<TR>
<TD height="23"> <IMG SRC="loginimg/login_r1_c1_03.jpg" WIDTH=61 HEIGHT=23></TD>
</TR>
</TABLE></td>
<td colspan="3"><img src="loginimg/login_r1_c2.gif" width="463" height="65"></td>
</tr>
<tr>
<td width="241" valign="top" bgcolor="#FFFFFF"><img src="loginimg/login_r2_c2.gif" width="241" height="104"></td>
<td width="157" rowspan="2" valign="top" bgcolor="#FFFFFF">
<table width="157" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td> <br><br>
<img src="loginimg/login_r2_c3.gif" width="157" height="184"></td>
</tr>
<tr>
<td height="100%" valign="bottom"></td>
</tr>
</table> </td>
<td width="65" rowspan="2" valign="top">
<table width="65" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="184" background="loginimg/login_r2_c4.gif"> </td>
</tr>
<tr>
<td height="100%" background="loginimg/login_r2_c4_002.jpg"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="80"> <table width="230" height="100%" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td width="50" height="27">用戶名: </td>
<td colspan="2"> <input name="username" type="text" class="b-form2" size="24">
</td>
</tr>
<tr>
<td height="27">密 碼: </td>
<td colspan="2"> <input name="password" type="password" class="b-form2" size="24">
</td>
</tr>
<?php
if($ecms_config['esafe']['loginauth'])
{
?>
<tr>
<td height="27">認證碼: </td>
<td colspan="2"><input name="loginauth" type="password" id="loginauth" class="b-form2" size="24"></td>
</tr>
<?php
}
?>
<tr>
<td height="27">提 問: </td>
<td colspan="2"><select name="equestion" id="equestion" onchange="if(this.options[this.selectedIndex].value==0){showanswer.style.display='none';}else{showanswer.style.display='';}">
<option value="0">無安全提問</option>
<option value="1">母親的名字</option>
<option value="2">爺爺的名字</option>
<option value="3">父親出生的城市</option>
<option value="4">您其中一位老師的名字</option>
<option value="5">您個人計算機的型號</option>
<option value="6">您最喜歡的餐館名稱</option>
<option value="7">駕駛執照的最後四位數字</option>
</select></td>
</tr>
<tr id="showanswer">
<td height="27">答 案: </td>
<td colspan="2"><input name="eanswer" type="text" id="eanswer" class="b-form2" size="24"></td>
</tr>
<?php
if(empty($public_r['adminloginkey']))
{
?>
<tr>
<td height="27">驗證碼: </td>
<td width="83"> <input name="key" type="text" class="b-form2" size="9">
</td>
<td width="97"><img src="ShowKey.php" name="KeyImg" id="KeyImg" align="bottom" onclick="KeyImg.src='ShowKey.php?'+Math.random()" title="看不清楚,點擊刷新"></td>
</tr>
<?php
}
?>
<tr>
<td height="27">窗 口: </td>
<td colspan="2"><input type="radio" name="adminwindow" value="0" checked>
正常
<input type="radio" name="adminwindow" value="1">
全屏</td>
</tr>
<tr>
<td height="27"> </td>
<td colspan="2" valign="bottom"> <input name="imageField" type="image" src="loginimg/login2.gif" width="69" height="21" border="0">
</td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="4"><table width="100%" border="0" cellpadding="0" cellspacing="0" background="loginimg/login_r4_c1.gif">
<tr>
<td width="111" height="32"> </td>
<td width="111" valign="top"> </td>
<td width="302"><input name="empirecmskey1" type="hidden" id="empirecmskey1" value="<?php echo $empirecmskey1;?>">
<input name="empirecmskey2" type="hidden" id="empirecmskey2" value="<?php echo $empirecmskey2;?>">
<input name="empirecmskey3" type="hidden" id="empirecmskey3" value="<?php echo $empirecmskey3;?>">
<input name="empirecmskey4" type="hidden" id="empirecmskey4" value="<?php echo $empirecmskey4;?>">
<input name="empirecmskey5" type="hidden" id="empirecmskey5" value="<?php echo $empirecmskey5;?>"></td>
</tr>
</table></td>
</tr>
<tr>
<td height="39" colspan="4" valign="top" bgcolor="ECECEC">
</td>
</tr>
</form>
</table>
<script>
if(document.login.equestion.value==0)
{
showanswer.style.display='none';
}
</script>
</body>
</html>