自己加了一下。打开数据库,添加一批成员,密码全为32c1cec3ee82d87a,userpower设置个特定的值,比如99,在data目录创建一个gettemp.asp文件。
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file = "config.asp"-->
<!--#include file = "function.asp"-->
<!--#include file = "cmd.asp"-->
<%
Response.Expires = WebCachTime
Response.ContentType = "text/xml"
Response.Charset="utf-8"
Call DataBegin()
sql = "select * from [user] where UserPower = 99 and UserStatus<>0"
oRs.Open sql,oConn,1,1
If Not(oRs.Bof And oRs.Eof) Then
Response.Write(oRs("UserEmail"))
End If
oRs.Close()
Set oRs = Nothing
Call DataEnd()
%>
function TempUser()
{
new Ajax().get("data/gettemp.asp",function(s){
var tempstr = s.responseText;
if(tempstr=="")
{
alert("客服全忙,请稍等。");
}
else{
Other.SetCookie("stremail",tempstr);
Other.SetCookie("strpass","temp");
Other.SetCookie("saveemail","1");
Other.SetCookie("savepass","1");
Other.SetCookie("autologin","1");
IntWebIM();
}
});
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="styles/webim.css" type="text/css" rel="stylesheet" media="all">
<script type="text/javascript" src="js/webimhelper.js?v=102"></script>
<script type="text/javascript" src="js/webim.js?v=102"></script>
<title>QGYWebIM Test</title>
</head>
<body style="padding-bottom:1000px" onload="TempUser()">
</body>
</html>