**
代码未测试,可能存在错误无法运行。
**
修改一:
<%=onload%>
改为
<?php echo $onload?>
修改二:
If request("action")="loginadmin" Then
If request("admin")=admin And request("password")=password Then
session("loginadmin")="admin"
response.redirect "./"
Else
Response.Write "<SCRIPT>alert('您无权登录本系统!');window.navigate('./')</SCRIPT>"
response.End
End If
End If
改为
if($_REQUEST['action']!="loginadmin"){
if($_REQUEST['action']==$admin&&$_REQUEST['password']==$password){
setcookie("loginadmin","admin",time()+3600);
header('Location: ./');
}
else
{
echo "<SCRIPT>alert('您无权登录本系统!');window.navigate('./')</SCRIPT>";
die();
}
}