Admin/admin. asp

Source: Internet
Author: User
Admin/admin. asp
<%
User = request. form ("user ")
Adbut = request. form ("kaction ")
Whoto = request. form ("hdish ")
%> <Meta http-equiv = "refresh" content = "4; URL =.../refresh. asp? User = <% = user %> ">
<%
Chatdata = application ("chatdata ")
Chatcomm = application ("chatcomm ")
Chatpoin = application ("chatpoin ")
Sendid = finduser (user)
If sendid <51 and chatdata (sendid, 1) = Request. ServerVariables ("remote_addr") then
If session ("admlevel") = "9" then
Reciid = finduser (whoto)
Select case adbut
Case "sip"
If reciid <51 then
Dispstr = right ("0" & time, 8) & ", system, 0," & user & ", ff0000, 0, the IP address of "& whoto &" is "& chatdata (whotoid, 1)
Else
Dispstr = right ("0" & time, 8) & ", system, 0," & user & ", ff0000, 0," & whoto & "not in this chat room"
End if
%> <Script language = 'javascript '>
Parent. comm = new Array ('<% = dispstr %> ');
Parent. writecomm (); </script> <%
Case "kip"
If reciid <51 and sendid <> reciid then
Kicklist = application ("kicklist ")
If instr (kicklist, ", '" & chatdata (reciid, 1) & "'") <1 then
Kicklist = kicklist & ", '" & chatdata (reciid, 1 )&"'"
Chatpoin = chatpoin + 1 mod 50
Chatcomm (chatpoin) = "'" & right ("0" & time, 8) & ", system, 0, everyone, ff0000, 0, "& whoto &" The IP address is kicked out of the chat room by the administrator '"
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.