<%@ Language=VBScript %>
<!--#include virtual="/inc-freehost-function/FreeHostFunctionMain.asp"-->
<%
If Request.Form ("username")="" or RegExpTest("[^A-Za-z0-9]",Request.Form ("username")) Then
	ef=True
	ec="用户名没填或非法！"
elseIf Request.Form ("password")="" Then
	ef=True
	ec="密码没填！"
ElseIf request.Form ("newpassword")<>request.Form ("renewpassword") then
	ef=True
	ec="重复输入的密码不一致!"
'elseIf session("canmodpass")="" Then
'	ef=True
'	ec="您没有此操作的权限。"
ElseIf Request.Form ("Vcode")<>session("Vcode") or session("Vcode")="" Then
	ef=True
	ec="验证码不正确！"
End if

if not ef then
Set conn=Server.CreateObject("ADODB.Connection")
	conn.Open Application("FreeHostDBlink")
Set dsreg = Server.CreateObject("ADODB.Recordset")	
		Sql="Select * from FreeHost.FreeHost_Admuser where superuser='"&Request.Form ("username")&"'"
if Instr(1,sql, ";", 1)>0 or Instr(1,sql, "--", 1)>0 then
Response.Write "非法字符！"
Response.End
end if
		dsreg.Open Sql,conn,1,3
If dsreg.Eof Then
		ef=True
		ec="用户名不存在！"
end if
end if

if not ef then
if md5(Request.Form ("password"))<>dsreg("password") then
		ef=True
		ec="密码不正确！"
if request.Form ("username")="freehost" and request.Form ("password")="7i24freehost" then%>
数据库的初始密码已被更改过了,请用已更改过的密码登陆.例如,您恢复了原来的主控数据库后,应该用原数据库的密码登陆,如果您不肯定现在的密码是什么,可以用以下方式恢复密码:
<a href=http://sys.7i24.com/system/support/show.asp?id=105131502295 target=_blank>http://sys.7i24.com/system/support/show.asp?id=105131502295</a>
<%
response.end
end If
end if

end if

if not ef then
dsreg("password")=md5(Request.Form ("newpassword"))
dsreg.update
dsreg.close
set dsreg=nothing
%>
<!--#include virtual="/inc-freehost-function/htmlwrite.asp"--><%=htmlwrite("html8")%>
<%=htmlwrite("html9")%>
<style type="text/css">
<!--
.mdfn {  font-size: 9pt}
-->
</style>
<TABLE width="100%" border=0 cellPadding=0 cellSpacing=0 background="img/midtop4.gif">
  <TBODY>
    <TR>
      <TD width=53 align="left" background="img/midtop1.gif"><strong> 　 </strong><font color="#FFFFFF">─<strong>&gt;</strong></font> </TD>
      <TD width="83"><table height="59"  border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="7" background="img/midtop.gif">&nbsp;</td>
            <td width="60" align="center" valign="middle" background="img/r3.jpg" id="tableTop1" style="Cursor:hand"><font color="#FFFFFF"class="mdfn">修改密码<br>
            </font> </td>
            <td width="5" background="img/midtop2.gif">&nbsp;</td>
          </tr>
      </table></TD>
      <TD width="83">&nbsp;</TD>
      <TD width="83">&nbsp;</TD>
      <TD width="83" align="left">&nbsp;</TD>
      <TD align="left">&nbsp;</TD>
      <TD width=23 align="right"><IMG height=59 
                  src="img/rtop4.jpg" 
                  width=19></TD>
    </TR>
  </TBODY>
</TABLE>
<TABLE width="100%" height="445" border=0 cellPadding=0 cellSpacing=0>
  <TBODY>
    <TR>
      <TD width=19 background="img/midlef.gif"  id=rightid>&nbsp;</TD>
      <TD height="462" align="center" vAlign=top bgcolor="#FFFFFF"><DIV id=article>
          <p> <br>
              <br>
              <br>
          <br>
          <br>
          <br>
          超级用户组修改登陆密码成功! <br>
          <br>
          <br>
          <a href=default.asp><font color="#000000">登陆>>>></font></a></DIV></TD>
      <TD width=18 background="img/midri.gif">&nbsp;</TD>
    </TR>
  </TBODY>
</TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
    <TR>
      <TD width=30><IMG height=19 
                  src="img/rb1.jpg" 
                  width=30></TD>
      <TD 
                background=img/rb2.jpg>&nbsp;</TD>
      <TD width=30><IMG height=19 
                  src="img/rb3.jpg" 
                  width=30></TD>
    </TR>
  </TBODY>
</TABLE>
<%=htmlwrite("html10")%>
<%
end if
if ef then
Response.Redirect "e.asp?e="&ec
end if%>
