Music switch and image switch/do not scratch switch operation file admin/dontimg. asp

Source: Internet
Author: User
Music switch and image switch/do not scratch switch operation file admin/dontimg. asp
<%
Option Explicit
Dim room, user, dd, ai, chatdata, sendid, dispstr, dispstr2
User = request. form ("user ")
Dd = request. form ("dd ")
Ai = request. form ("ai ")
Chatdata = application ("chatdata ")
Sendid = finduser (user)
Select case dd
Case "0"
If ai = "on" then
Dispstr = right ("0" & time, 8) & ", system, 0," & user & ", ff0000, 0, you successfully opened the image and Midi"
Dispstr2 = "parent. midisw = true ;"
Else
Dispstr = right ("0" & time, 8) & ", system, 0," & user & ", ff0000, 0, you have successfully disabled images and Midi"
Dispstr2 = "parent. midisw = false ;"
End if
Case "1" 'Do not scratch
If ai = "on" then
If (chatdata (sendid, 4) mod 2) = 1 then' is enabled
Dispstr = right ("0" & time, 8) & ", system, 0," & user & ", ff0000, 0, do not scratch the switch is on"
Else
Chatdata (sendid, 4) = chatdata (sendid, 4) + 1
Application. lock
Application ("chatdata") = chatdata
Application. unlock
Dispstr = right ("0" & time, 8) & ", system, 0," & user & ", ff0000, 0, the Do Not scratch function is successfully enabled"
End if
Else
If (chatdata (sendid, 4) mod 2) = 0 then' has been disabled
Dispstr = right ("0" & time, 8) & ", system, 0," & user & ", ff0000, 0"
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.