⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 webkill.asp

📁 蓝芒3.0A最新所有功能完整破解版
💻 ASP
字号:
<!--#include file="passinc.asp" -->

<%
if isadmin() = false then
	response.redirect "noadmin.asp"
end if
%>

<%
dim ei
set ei = server.createobject("easymail.WebKill")
'-----------------------------------------
ei.Load

allnum = ei.count


mode = trim(request("mode"))

if mode <> "" and Request.ServerVariables("REQUEST_METHOD") = "POST" then
	ei.RemoveAll

	i = 0
	if mode = "save" then
		do while i < allnum + 1
			if trim(request("kill" & i)) <> "" then
				ei.Add trim(request("kill" & i))
			end if

		    i = i + 1
		loop
	elseif mode = "add" then
		do while i < allnum + 1
			if trim(request("kill" & i)) <> "" then
				ei.Add trim(request("kill" & i))
			end if

		    i = i + 1
		loop
	elseif mode = "del" then
		do while i < allnum + 1
			if trim(request("check" & i)) = "" and trim(request("kill" & i)) <> "" then
				ei.Add trim(request("kill" & i))
			end if

		    i = i + 1
		loop
	end if

	ei.Save


	if trim(request("mode")) <> "add" then
		set ei = nothing
		response.redirect "ok.asp?" & getGRSN() & "&gourl=webkill.asp"
	end if
end if

allnum = ei.count
%>

<HTML>
<HEAD>
<title>Corp.Email</title>
<LINK href="images\hwem.css" rel=stylesheet>
</HEAD>


<SCRIPT LANGUAGE=javascript>
<!--
function del() {
	if (ischeck() == true)
	{
		f1.mode.value = "del";
		f1.submit();
	}
}

function add() {
	f1.mode.value = "add";
	f1.submit();
}

function save() {
	f1.mode.value = "save";
	f1.submit();
}

function ischeck() {
	var i = 0;
	var theObj;

	for(; i<<%=allnum %>; i++)
	{
		theObj = eval("f1.check" + i);

		if (theObj != null)
			if (theObj.checked == true)
				return true;
	}

	return false;
}
//-->
</SCRIPT>


<BODY>
<br>
<FORM ACTION="webkill.asp" METHOD="POST" NAME="f1">
<input type="hidden" name="mode">
<table width="90%" border="0" align="center" cellspacing="0" bgcolor="#EFF7FF">
    <tr>
      <td colspan="2" align="right" bgcolor="#ffffff">
	<br>
	<input type="button" value=" Add " onclick="javascript:add()" class="Bsbttn">&nbsp;
	<input type="button" value="Delete" onclick="javascript:del()" class="Bsbttn">&nbsp;
	<input type="button" value=" Save " onclick="javascript:save()" class="Bsbttn">&nbsp;
	<input type="button" value="Cancel" onclick="javascript:location.href='right.asp?<%=getGRSN() %>';" class="Bsbttn">
	<br>&nbsp;
	</td>
    </tr>
	<tr bgcolor="#dbeaf5">
      <td colspan="2" height="28" style="border-bottom:1px #8CA5B5 solid; border-top:1px #8CA5B5 solid; border-left:1px #8CA5B5 solid; border-right:1px #8CA5B5 solid;">
        <div align="center"><font class="s" color="#104A7B"><b>Settings for Web Login Denial (Please enter IP address)</b></font></div>
      </td>
    </tr>
<%
i = 0

do while i < allnum
	response.write "<tr><td width='9%' align='center' height='25' style='border-bottom:1px #8CA5B5 solid;'><input type='checkbox' name='check" & i & "'></td><td width='91%' style='border-bottom:1px #8CA5B5 solid;'><input name='kill" & i & "' type='text' value='" & ei.Get(i) & "' size='70' maxlength='64' class='textbox'></td></tr>"
	i = i + 1
loop

if request("mode") <> "" then
	response.write "<tr><td width='9%' align='center' height='25' style='border-bottom:1px #8CA5B5 solid;'><input type='checkbox' name='check" & i & "'></td><td width='91%' style='border-bottom:1px #8CA5B5 solid;'><input name='kill" & i & "' type='text' size='70' maxlength='32' class='textbox'></td></tr>"
end if
%>
    <tr>
      <td colspan="2" align="right" bgcolor="#ffffff">
	<br>
	<input type="button" value=" Add " onclick="javascript:add()" class="Bsbttn">&nbsp;
	<input type="button" value="Delete" onclick="javascript:del()" class="Bsbttn">&nbsp;
	<input type="button" value=" Save " onclick="javascript:save()" class="Bsbttn">&nbsp;
	<input type="button" value="Cancel" onclick="javascript:location.href='right.asp?<%=getGRSN() %>';" class="Bsbttn">
      </td>
    </tr>
  </table>
<br><br><br>
  <div align="center">
    <table width="90%" border="0" align="center" cellspacing="0" bgcolor="#EFF7FF" style='border-top:1px #8CA5B5 solid;'>
      <tr>
        <td colspan="2" height="10">
        </td>
      </tr>
      <tr>
        <td width="8%" valign="top"><font color="#FF3333">&nbsp;*Note: </font></td>
        <td width="92%">You may enter IP address or range of IP addresses (eg.: 61.121.*) for access denial of WebMail (note: if "*" is entered, all IPs are denied for WebMail except for administrator accounts).
        <br>Supports asterisks (<font color="#FF3333">*</font>: content of any length. <font color="#FF3333">?</font>: any character.)
        </td>
      </tr>
      <tr>
        <td colspan="2" height="10">
        </td>
      </tr>
    </table>
  </div>
  </FORM>
<br>
</BODY>
</HTML>

<%
set ei = nothing
%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -