<%@ Language=VBScript %>
<%
if Application("dblinker")=true then
response.write "请您检查数据库连接，<font color=red>改正后请您重启IIS</font>。<br><br>出错信息为："&Application("errdec")&"<br><br>"
If InStr(Application("errdec"),"不存在或拒绝访问") Then
response.write "原因：无法连接您的SQL数据库，请您检查数据库是否已启动，如果您的数所据库已启动，请检查您的数据库的1433端口是否被您改过造成了出错。"
End If
If InStr(Application("errdec"),"法打开登录") Then
response.write "原因：您的数据库没有正确还原，请您参考以下文章正确还原FreeHost数据库：<a href='http://sys.7i24.com/system/support/show.asp?id=106151742419'>http://sys.7i24.com/system/support/show.asp?id=106151742419</a>"
response.end
End if
If InStr(Application("errdec"),"登录失败") Then
response.write "原因："&Server.Mappath("/Global.asa")&" 中的数据库连接密码不正确，请您用记事本打开这个文件，按里面的说明改正确密码。如果您的Freehost数据库尚未还原，请参考以下文件正确还原数据库：<a href='http://sys.7i24.com/system/support/show.asp?id=106151742419'>http://sys.7i24.com/system/support/show.asp?id=106151742419</a>"
End If
response.end
end If
if Application("updateer")=true then
response.write "请您先运行update目录中的asp文件升级，运行完后请您重启IIS。"
response.end
end If
if Application("admuserer")=true then
response.write "您修改了默认的Freehost管理员帐号造成了出错，请您先恢复数据库中的管理员帐号，然后请您重启IIS就会恢复正常。"
response.end
end if
%>
<HTML><HEAD><TITLE>管理员登陆</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<style type="text/css">
<!--
p9,body,td,p,br {  font-size: 11pt}
.inp {  height: 20px;width:100px}
.inp2 {  height: 20px;width:50px}
.style1 {color: #FFFFFF}
-->
</style>
</HEAD>
<BODY text=#000000 bgColor=#6386de leftmargin="0" topmargin="0" bottommargin="0" rightmargin="0" marginwidth="0" marginheight="0">
<%if Request.Cookies("url")<>"" And Request.Cookies("savename")="y" And Request.Cookies("usernamecook")<>"" And Request.Cookies("password")<>"" then%>
<form name="formADM" method="post" action="<%=Request.Cookies("url")%>" ID="Form1">
<input name="username" type="hidden" value="<%=Request.Cookies("usernamecook")%>">
<input name="password" type="hidden" value="<%=Request.Cookies("password")%>">
<input name="savename" type="hidden" id="savename" value="y">
正在自动登陆回原区...........
</form>
<script language="JavaScript">
document.formADM.submit();
</script>
<%end if%>

<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
  <TBODY>
  <TR>
    <TD>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" bgColor=#002c9c 
        border=0><TBODY>
        <TR>
          <TD vAlign=bottom width=260 height=50><a href="/"><IMG 
            src="img/defaultlogo.gif" width=370 height=78 border="0"></a></TD>
          <TD vAlign=bottom width=230 height=70>&nbsp;</TD>
          <TD align=middle width=260 height=50>
            </TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD height=2></TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" 
      background="img/defaulttop.gif" border=0>
        <TBODY>
        <TR vAlign=top>
          <TD width=160 height=22>&nbsp;</TD>
          <TD height=21>&nbsp; </TD>
          <TD width=160 height=21>&nbsp; </TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" bgColor=#3a79d8 
        border=0><TBODY>
        <TR>
          <TD width=340>
            <P><IMG height=352 
            src="img/defaultleft.gif" width=308></P>
            <P>&nbsp;</P>
            <P>&nbsp;</P></TD>
          <TD vAlign=top>
            <P><BR>
<%if Application("firstuse")=true then%>
<font color="#FFFFFF">如果您是首次访问主控网站<br>
默认的管理员帐号是freehost密码默认是7i24freehost<br></font>
<%end if%>			
			<BR></P>
            <TABLE cellSpacing=0 cellPadding=0 width="69%" border=0>
              <TBODY>
              <TR>
                <TD><IMG height=50 
                  src="img/loginimg.gif" 
              width=162></TD>
              </TR></TBODY></TABLE>
            <TABLE cellSpacing=0 cellPadding=0 width=300 border=0>
              <TBODY>
              <TR>
                <TD width=14 height=10><IMG height=10 
                  src="img/default1.gif" width=14></TD>
                <TD background="img/default2.gif"></TD>
                <TD width=14><IMG height=10 
                  src="img/default3.gif" width=14></TD></TR>
              <TR>
                <TD background="img/default4.gif"></TD>
                <TD bgColor=#c3d3fd>
<br>

                  <TABLE width="100%">
                    <FORM name=AdmForm action=login.asp method=post>
                    <TR>
                      <TD align=right><FONT color=#000000><B>管理员帐号:</B></FONT></TD>
                      <TD><INPUT 
                        name=username class="inp" id="username" size=15 maxLength=40> </TD></TR>
                    <TR>
                      <TD align=right><FONT color=#000000><B>管理员密码:</B></FONT></TD>
                      <TD><INPUT name=password type=password class="inp" id="password" size=15 maxLength=40>
                      </TD>
                    </TR>
                    <TR>
                      <TD align=right><FONT color=#000000><B>输入验证码:</B></FONT></TD>
                      <TD><INPUT name=vcode class="inp2" size=4 maxLength=4>
                        <img src="/style/info/vcode.asp" width="40" height="10"> </TD>
                    </TR>
                    <TR>
                      <TD align="right"><b>保存　密码</b><FONT color=#000000><B>:</B></FONT>
                        <CENTER>
                        </CENTER></TD>
                      <TD><input name="savename" type="checkbox" id="savename" value="y">
                      只对当前IP有效</TD>
                    </TR>
                    <TR align="center">
                      <TD colSpan=2><hr noshade size=1>
                        <input type=submit value=" 登 录 " name=submit>
&nbsp;
<input type=reset value=" 重 输 " name=Reset></TD>
                    </TR>
                    </FORM>
					</TABLE>
                  <br>
</TD>
                <TD 
background="img/default5.gif"></TD></TR>
              <TR>
                <TD height=10><IMG height=10 
                  src="img/default6.gif" width=14></TD>
                <TD background="img/default7.gif" 
                height=10></TD>
              <TD><IMG height=10 
                  src="img/default8.gif" 
              width=14></TD></TR></TBODY></TABLE><BR>              
              <a href="http://sys.7i24.com/system/support/show.asp?id=105131504470" target="_blank" class="style1">管理员目录必须限制指定的IP段才能访问，才能保障安全！</a><BR></TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD bgColor=#002c9c 
height=1></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" bgColor=#6386de border=0>
  <TBODY>
  <TR>
    <TD vAlign=top align=middle height=78></TD>
  </TR></TBODY></TABLE>
  </BODY></HTML>