´ó¼Ò¾³£Ì½ÌÖʹÓÃasp£¬¶ø²»Ê¹ÓÃÆäËû×齨ÄÜ·ñʵÏÖÎļþµÄÉÏ´«£¬´Ó¶ø¿ª·¢³öÖ§³ÖÓʼþ¸½¼þµÄÓʼþϵͳ£¬´ð°¸ÊÇ¿ÉÒԵġ£
¡¡¡¡ÒÔÏÂÊÇ·¢ËÍÓʼþµÄÒ³Ãæ£¬ÓʼþµÄÕʺÅÊÇÔ±¹¤ºÅ£¬¼ÙÉèÊÇ5λµÄÊý×Ö£¬sendmail.aspµ±È»ÊÇÔںϷ¨µÇ½ºó²ÅÄܹ»¿´µ½µÄ
£¼html£¾
£¼head£¾
£¼meta http-equiv="Content-Type" content="text/html; charset=gb2312"£¾
£¼link rel="stylesheet" type="text/css" href="/css/FORUM.CSS"£¾
£¼style type=text/css£¾
£¼!--
input { font-size: 9pt; color: #0011dd; background-color: #e9e9f9; padding-top: 0px}
select { font-size: 9pt; color: #0011dd; background-color: #e9e9f9; padding-top: 0px}
textarea { font-size: 9pt; color: #0011dd; background-color: #e9e9f9; padding-top: 0px}
--£¾
£¼/style£¾
£¼title£¾Óʼþϵͳ£¼/title£¾£¼/head£¾
£¼body bgcolor="#FEF7ED"£¾
£¼script language="javascript"£¾
£¼%
if session("myid")="" or len(session("myid"))£¼£¾5 then
response.write "window.open('nolog.asp',target='_top');"
end if
%£¾
function check(theform)
{
if (theform.geterempl.value=='')
{
alert('ÇëÊäÈëÊÕ¼þÈË£¡');
theform.geterempl.focus();
return false;
}
if (theform.emailtitle.value=='')
{
alert('ÇëÊäÈëÖ÷Ìâ!');
theform.emailtitle.focus();
return false;
}
if (theform.emailtitle.value.length£¾200)
{
alert('Ö÷ÌâÇëÉÙÓÚ200×Ö½Ú');
theform.emailtitle.focus();
return false;
}
if (theform.body.value.length£¾15*1024)
{
alert('ÕýÎÄÇëÉÙÓÚ16K');
theform.body.focus();
return false;
}
if (theform.emailshowname.value.length£¾1024)
{
alert('Ç©ÃûÇëÉÙÓÚ1K');
theform.emailshowname.focus();
return false;
}
}
£¼/script£¾
£¼%
meth=request.querystring("meth")
if meth=1 then
geterempl=trim(request.querystring("geterempl"))
emailtitle=trim(request.querystring("emailtitle"))
elseif meth=2 then
mailid=trim(request.querystring("mailid"))
set conn=server.createobject("adodb.connection")
conn.open "DSN=;UID=;PWD="
dsnpath="DSN=;UID=;PWD="
set rs=server.createobject("adodb.recordset")
selectnew="select * from t_mail where ((geterempl like '%"&session("myid")&"%' or deleempl like '%"&session("myid")&"%' or receempl like '%"&session("myid")&"%')and (not deleverempl like '%"&session("myid")&"%')) and mailid='"&mailid&"' "
rs.open selectnew,dsnpath,3,3
if rs.bof or rs.eof then
%£¾
£¼script language="javascript"£¾
alert("ÄúûÓв鿴Õâ·âÓʼþµÄȨÏÞ£¡");
window.history.back();
£¼/script£¾
£¼%
response.end
else
body=rs("body")
emailtitle=rs("emailtitle")
rs.close
set rs=nothing
conn.close
set conn=nothing
end if
end if
%£¾
£¼Form name="upload_file" onSubmit="return check(this)" action="loadmail.asp" method=post enctype="multipart/form-data" £¾
£¼table width="100%" border="0" cellspacing="2" cellpadding="2"£¾
£¼tr£¾
£¼td width="11%"£¾
£¼div align="right"£¾·¢¼þÈË:£¼/div£¾
£¼/td£¾
£¼td width="89%"£¾
£¼input type="hidden" name="senderempl" value="£¼%=session("myid")%£¾"£¾
£¼%=session("myid")%£¾ £¼/td£¾
£¼/tr£¾
£¼tr£¾
£¼td width="11%"£¾
£¼div align="right"£¾ÊÕ¼þÈË:£¼/div£¾
£¼/td£¾
£¼td width="89%"£¾
£¼input type="text" name="geterempl" size="40" value="£¼%=geterempl%£¾"£¾
£¼input type="checkbox" name="emaillevel" value="1" style="background-color: #FEF7ED"£¾
½ô¼±Ðżþ £¼/td£¾
£¼/tr£¾
£¼tr£¾
£¼td width="11%" valign="top"£¾ £¼/td£¾
£¼td width="89%"£¾·¢ËͶà¸öÈ˵Äʱºò¿ÉÒÔʹÓÃ"£¼font color="#9999FF"£¾|£¼/font£¾"¸ô¿ª,ÀýÈç:£¼font color="#3399FF"£¾01234|01235|01236£¼/font£¾,µÚһλºÍ×îºóһλ²»ÐèÒª"£¼font color="#9999FF"£¾|£¼/font£¾"
£¼font color="#FF0000"£¾Ð¹¦ÄÜ£¼/font£¾£ºÄú¿ÉÒÔ°ÑÐÅÐÅÖ±½Ó·¢Ë͸øÄúÉ趨µÄ£¼a href="group.asp"£¾Ä³Óû§£¼/a£¾£¬·¢Ë͸ñʽΪ£ºgr:×éÐòºÅ£¬ÀýÈ磼font color="#0099FF"£¾gr:001£¼/font£¾£¼/td£¾
£¼/tr£¾
£¼tr£¾
£¼td width="11%"£¾
£¼div align="right"£¾£¼/div£¾
£¼/td£¾
£¼td width="89%"£¾
£¼input type="checkbox" name="receempl" value="1" style="background-color: #FEF7ED"£¾
±£´æÒ»·Ýµ½ÊղؼÐ[£¼font color="#3399FF"£¾Ñ¡¶¨´ËÏÔòÓʼþ·¢Ë͵½¶Ô·½ÓÊÏäµÄͬʱ·¢Ë͵½×Ô¼ºµÄÊղؼÐÀ/font£¾]£¼/td£¾
£¼/tr£¾
£¼tr£¾
£¼td width="11%" valign="top"£¾ £¼/td£¾
£¼td width="89%"£¾ £¼/td£¾
£¼/tr£¾
£¼tr£¾
£¼td width="11%" align="right"£¾ Ö÷Ìâ:£¼/td£¾
£¼td width="89%"£¾
£¼input type="text" name="emailtitle" size="60" value="£¼%=emailtitle%£¾"£¾
£¼/td£¾
£¼/tr£¾
£¼tr£¾
£¼td width="11%" valign="top"£¾
£¼div align="right"£¾ÕýÎÄ:£¼/div£¾
£¼/td£¾
£¼td width="89%"£¾
£¼TEXTAREA name=body rows=8 cols=60£¾£¼%=body%£¾£¼/TEXTAREA£¾
£¼/td£¾
£¼/tr£¾
£¼tr£¾
£¼td width="11%" valign="top"£¾
£¼div align="right"£¾Ç©Ãû:£¼/div£¾
£¼/td£¾
£¼td width="89%"£¾
£¼textarea name="emailshowname" cols="30" rows="6"£¾£¼%=application(session("myid")&"_name")%£¾£¼/textarea£¾
£¼/td£¾
£¼/tr£¾
£¼tr£¾
£¼td width="11%"£¾
£¼div align="right"£¾
£¼input type=hidden name="FileUploadStart"£¾
¸½¼þ1: £¼/div£¾
£¼/td£¾
£¼td width="89%"£¾
£¼input type="file" name="file_up" size="50"£¾
£¼/td£¾
£¼/tr£¾
£¼tr£¾
£¼td width="11%"£¾
£¼div align="right"£¾¸½¼þ2:£¼/div£¾
£¼/td£¾
£¼td width="89%"£¾
£¼input type="file" name="file_up1" size="50"£¾
£¼/td£¾
£¼/tr£¾
£¼tr£¾
£¼td width="11%"£¾
£¼div align="right"£¾¸½¼þ3:£¼/div£¾
£¼/td£¾
£¼td width="89%"£¾
£¼input type="file" name="file_up2" size="50"£¾
£¼input type=hidden name="FileUploadEnd"£¾
£¼/td£¾
£¼/tr£¾
£¼tr£¾
£¼td width="11%"£¾
£¼div align="right"£¾£¼/div£¾
£¼/td£¾
£¼td width="89%"£¾
£¼input type=submit value=È·¶¨ £¾
£¼/td£¾
£¼/tr£¾
£¼/table£¾
£¼/Form£¾
£¼/body£¾
£¼/html£¾
¡¡²»¹ýÕâ½ö½öÖ»Êǵõ½ÁË·¢ËÍÕßµÄipµØÖ·ºÍmacµØÖ·£¬¶øÇÒ½ûÖ¹Óû§×Ô¼º¸ü¸Ä×Ô¼ºipµØÖ·µÄ´úÂ룬ÒòΪÎÒÃǵÄϵͳÊÇÐèÒª¶Ô¸öÈËÐÞ¸ÄipµÄÐÐΪ½øÐнûÖ¹µÄ¡£
£¼%
strIP = Request.ServerVariables("REMOTE_ADDR")
Set net = Server.CreateObject("wscript.network")
Set sh = Server.CreateObject("wscript.shell")
sh.run "%comspec% /c nbtstat -A " & strIP & " £¾ c:\" & strIP & ".txt",0,true
Set sh = nothing
Set fso = createobject("scripting.filesystemobject")
Set ts = fso.opentextfile("c:\" & strIP & ".txt")
macaddress = null
Do While Not ts.AtEndOfStream
data = ucase(trim(ts.readline))
If instr(data,"MAC ADDRESS") Then
macaddress = trim(split(data,"=")(1))
Exit Do
End If
loop
ts.close
Set ts = nothing
fso.deletefile "c:\" & strIP & ".txt"
Set fso = nothing
GetMACAddress = macaddress
strMac = GetMACAddress
set conn=server.CreateObject("adodb.connection")
conn.open "DSN=;UID=;PWD="
dsnpath="DSN=;UID=;PWD="
set rs=server.CreateObject("adodb.recordset")
sele="select * from getmac where g_mac='"&strMac&"'"
rs.open sele,dsnpath
if rs.bof then
set conn=server.CreateObject("adodb.connection")
conn.open "DSN=;UID=;PWD="
dsnpath="DSN=;UID=;PWD="
set rs=server.CreateObject("adodb.recordset")
g_id=mid(strIP,9)
g_id=left(g_id,2)
'response.write g_id
if isnumeric(g_id) then
g_id=cint(g_id)
else
g_id=0
end if
sele="insert into getmac(g_ip,g_mac,g_id,g_ok) values('"&strIP&"','"&strMac&"',"&g_id&",0)"
rs.open sele,dsnpath
else
set conn=server.CreateObject("adodb.connection")
conn.open "DSN=;UID=;PWD="
dsnpath="DSN=;UID=;PWD="
set rs=server.CreateObject("adodb.recordset")
sele="select * from getmac where g_ip='"&trim(strIP)&"' and g_mac='"&trim(strMac)&"'"
rs.open sele,dsnpath
if rs.bof or rs.eof then
set rs1=server.CreateObject("adodb.recordset")
sele="insert into badrData=bin2str(binHeaderData)
lngFieldNameStart=Instr(strHeaderData,"name="&chr(34))+Len("name="&chr(34))
'response.write "
lngfieldnamestart:"&lngfieldnamestart
lngFieldNameEnd=Instr(lngFieldNameStart,strHeaderData,chr(34))
'response.write "
lngfieldnameEND:"&lngfieldnameEND
strFieldName=Mid(strHeaderData,lngFieldNameStart,lngFieldNameEnd-lngFieldNameStart)
'RESPOnSE.WRITE "£¼BR£¾STRFIELDNAME:" & STRfieldname
strFieldName=Trim(strFieldName)
strFieldName=Replace(strFieldName,vbcrlf,vbnullstring)
'ÅжÏÎļþÊý¾Ýʱºò¿ªÊ¼
If strComp(strFieldName,"FileUploadStart",1)=0 and sread=0 Then
'response.write "ÕÒµ½ÁËÎļþ¿ªÊ¼µÄµØ·½"
sread=1
'response.write "
" & INSTRB( DataStart + 1, binHTTPHeader, divider ) &"
"
binHTTPHeader=MIDB(binHTTPHeader,INSTRB( DataStart + 1, binHTTPHeader, divider ))
exit do
End if
DataStart = INSTRB( binHTTPHeader, bnCRLF & bnCRLF ) + 4
DataEnd = INSTRB( DataStart + 1, binHTTPHeader, divider ) - DataStart
binFieldValue=MIDB( binHTTPHeader, DataStart, DataEnd )
strFieldValue=bin2str(binFieldValue)
'strFieldValue=Trim(strFieldValue)
strFieldValue=Replace(strFieldValue," "," ")
'·ÇÎļþÉÏ´«Óò±äÁ¿¸³Öµ
'execute strFieldName&"="""&strFieldValue&""""
'response.write strFieldName&":"&strFieldValue&"
"
if strfieldname="geterempl" then
strFieldValue=Replace(strFieldValue,vbcrlf,vbnullstring)
if instr(strfieldvalue,"gr:")=1 then
'Óʼþ×é·¢
'response.write len(trim(strfieldvalue))
if len(trim(strfieldvalue))£¼£¾6 then
'¸ñʽ´íÎó·µ»Ø
%£¾
³¢ÊÔ·¢ËÍÓʼþ£¬µ«ÊÇʧ°ÜÁË£¬ÇëÐ޸ĴíÎóºóÖØÊÔ£¡
£¼script language="javascript"£¾
alert("ÄúÊäÈëµÄÊÕ¼þ×é¸ñʽ´íÎó£¡\rÕýÈ·µÄ¸ñʽÊÇ:'gr:001'");
history.back();
£¼/script£¾
£¼p£¾
£¼%
response.end
else
if not isnumeric(mid(trim(strfieldvalue),4)) then
'¸ñʽ´íÎó·µ»Ø
%£¾
,