home *** CD-ROM | disk | FTP | other *** search
Wrap
{ HTML Network Places by Andrei Bandarovich Based on HTML report script by KillerR } { WebCenter NetPlaces helper script } const HTML_FILE='';//Path and name of result report file. //If empty default to nv_directory+\Scripts\HTTP\DefaultHost\HtmlNetPlaces\index.html'; var e,i1,i2:integer; tabs:TStringList; procedure goreport; var honli,hli,fn,ts,ctime:string; hst:tnvhost; hon,i,f,flg:integer; dtm:TDateTime; begin hon:=0; hst:=tnvhost.create; if length(HTML_FILE)=0 then fn:=nv_directory+'Scripts\HTTP\DefaultHost\HtmlPlaces\index.html' else fn:=HTML_FILE; CreateDirectory(ExtractFilePath(fn)); f:=openfile(fn,11); dtm:=Now; tabs.clear; writefile(f,'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">'); writefile(f,'<html>'); writefile(f,'<head>'); writefile(f,' <META http-equiv="Refresh" content="60">') writefile(f,' <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1251">'); writefile(f,' <META name="Content-Type" content="text/html; charset=windows-1251">'); writefile(f,' <title>╤σ≥σΓεσ εΩ≡≤µσφΦσ [4net-bsu]</title>'); writefile(f,' '); writefile(f,'<STYLE> body { Font-Family: Verdana,Arial,Helvetica;} A:VISITED { font-size:8pt; color:black; Text-Decoration:none;} A { font-size:8pt; color:black; Text-Decoration:none;} A:Hover { Text-Decoration:underline; Color:#ff9900 } .Font8tb { font-size:8pt; color:3F3D3D; font-weight : bold; } .Font8t { font-size:8pt; color:3F3D3D; } .pc_on { position: relative; width: 80px; height: 80px; float: left; padding-bottom : 5px; } </STYLE>'); writefile(f,'</head>'); writefile(f,'<body bottommargin="0" leftmargin="0" marginheight="0" marginwidth="0" rightmargin="0" topmargin="0">'); writefile(f,'<table border="0" cellpadding="10" cellspacing="0" width="100%" bgcolor="#ffffff" height="100%">'); writefile(f,'<tr valign="top">'); writefile(f,' <td bgcolor="BBBECE" width="225" valign="top" align="center">'); writefile(f,' <table width="213" cellpadding="0" cellspacing="0" border="0">'); writefile(f,' <tr valign="top">'); writefile(f,' <td width="213" height="23" valign="middle" background="cat_bkg.gif" class="Font8tb"> ═αΓΦπα÷Φ </td>'); writefile(f,' </tr>'); writefile(f,' <tr valign="top">'); writefile(f,' <td width="213" valign="top" bgcolor="F0F1F5">'); writefile(f,' <table width="213" cellpadding="10" cellspacing="0" border="1" bordercolor="FFFFFF">'); writefile(f,' <tr>'); writefile(f,' <td class="Font8t">╫≥εß√ ταΘ≥Φ φα Ωε∞∩ⁿ■≥σ≡ Φ ∩≡ε±∞ε≥≡σ≥ⁿ ε≥Ω≡√≥√σ ≡σ±≤≡±√, φαµ∞Φ≥σ φα ΦΩεφΩ≤ ΦδΦ ≥σΩ±≥ ∩εΣ φσΘ εΣΦφ ≡ατ.</td>'); writefile(f,' </tr>'); writefile(f,' </table>'); writefile(f,' </td>'); writefile(f,' </tr>'); writefile(f,' </table><br>'); writefile(f,' <table width="213" cellpadding="0" cellspacing="0" border="0">'); writefile(f,' <tr valign="top">'); writefile(f,' <td width="213" height="23" valign="middle" background="cat_bkg.gif" class="Font8tb"> ╚φ⌠ε≡∞α÷Φ ε ±Φ±≥σ∞σ</td>'); writefile(f,' </tr>'); writefile(f,' <tr valign="top">'); writefile(f,' <td width="213" valign="top" bgcolor="F0F1F5">'); writefile(f,' <table width="213" cellpadding="10" cellspacing="0" border="1" bordercolor="FFFFFF">'); writefile(f,' <tr>'); writefile(f,' <td class="Font8t">╤Φ±≥σ∞α φαΓΦπα÷ΦΦ ∩ε ≡σ±≤≡±α∞ Ωε∞∩ⁿ■≥σ≡φεΘ ±σ≥Φ - ∩≡επ≡α∞∞φ√Θ Ωε∞∩δσΩ±, ∩ετΓεδ ■∙ΦΘ ≤δ≤≈°Φ≥ⁿ ±Ωε≡ε±≥ⁿ Φ ≤Σεß±≥Γε Φ±∩εδⁿτεΓαφΦ ≡σ±≤≡±εΓ ±σ≥Φ. ┬═╚╠└═╚┼! ╧εΩα φσΩε≡≡σΩ≥φε εß≡αßα≥√Γα■≥± εß≡α∙σφΦ Ω Ωε∞∩ⁿ■≥σ≡α∞ Γ Opera Φ Mozilla. ─δ ≡αßε≥√ ± ±σ≡ΓΦ±ε∞ Φ±∩εδⁿτ≤Θ≥σ Internet Explorer.<br><br>╥σΩ≤∙α Γσ≡±Φ : 1.4</td>'); writefile(f,' </tr>'); writefile(f,' </table>'); writefile(f,' </td>'); writefile(f,' </tr>'); writefile(f,' </table>'); writefile(f,' </td>'); writefile(f,' <td width="100%" valign="top">'); hst.nextid:=0; repeat hst.gethost(hst.nextid,0); if(hst.id<>0)then begin flg:=strtoint(hst.getmetavar('flags')); ctime:=hst.getmetavar('ctime'); if(flg and $1)=1 then begin if(hst.getmetavar('ison')='on')then hon:=hon+1; if(hst.getmetavar('ison')='on')then ts:='<div class="pc_on" align="center">' else ts:=''; if(hst.getmetavar('ison')='on')then begin if(hst.hip='10.10.1.1') or (hst.hip='10.3.0.1') or (hst.hip='10.6.0.1')then ts:=ts+'<img src="svon.gif" alt="" width="43" height="38" border="0"><br><font class="Font8t"><font color="#339900">'+hst.hname+'</font></font></div>' else ts:=ts+'<a title="╧σ≡σΘ≥Φ Ω ∩≡ε±∞ε≥≡≤ ε≥Ω≡√≥√⌡ ≡σ±≤≡±εΓ Ωε∞∩ⁿ■≥σ≡α" href="file://'+hst.hip+'/" target="_blank"><img src="pcon.gif" alt="" width="43" height="38" border="0"></a><br><a class="pc_link" title="╧σ≡σΘ≥Φ Ω ∩≡ε±∞ε≥≡≤ ε≥Ω≡√≥√⌡ ≡σ±≤≡±εΓ Ωε∞∩ⁿ■≥σ≡α" href="file://'+hst.hip+'" target="_blank">'+hst.hname+'</a></div>' end else ts:=ts+''; tabs.add(hst.hname+'#'+ts); end; { if((flg and $400)<>0) or ((flg and $1000)<>0) then begin if(hst.getmetavar('ison')='on')then ts:='<TR bgcolor="#E8F0F5">' else ts:='<TR>'; ts:=ts+'<td width=200 class="Font8g"><a href="ftp://'+hst.hname+'" target="_blank">ftp://'+hst.hname+'</a></td>'; ts:=ts+'<td width=100 class="Font8g" align="center">'+hst.hip+'</td>'; ts:=ts+'</TR>'; tabs.add(hst.hname+'#'+ts); end;} end; until hst.nextid=0; tabs.Sort; for i:=0 to tabs.count-1 do begin ts:=tabs.strings[i]; delete(ts,1,pos('#',ts)); writefile(f,ts); end; honli:=inttostr(hon); hli:=inttostr(i); writefile(f,' </td>'); writefile(f,'</tr>'); writefile(f,'</table>'); writefile(f,'</body>'); writefile(f,'</html>'); closefile(f); hst.free; end; begin tabs:=TStringList.Create; goreport; repeat e:=waitevent(i1,i2); if(e=NMNP_ACTION)then begin if((i1 and NVACTION_LIST)<>0) and (((i1 and NVACTION_RECHECK)<>0)or((i1 and NVACTION_GETFROMFILE)<>0)or((i1 and NVACTION_GETFROMNET)<>0)) then goreport; end; until e=0; tabs.Free; end.