home *** CD-ROM | disk | FTP | other *** search
- <?php
- setlocale(LC_ALL,"ru_RU.CP1251");
- $DIR="..\\..\\..\\";//─Φ≡σΩ≥ε≡Φ , πΣσ φα⌡εΣ ≥± Γ±σ φ≤µφ√σ ⌠αΘδ√, \NetView\Scripts
- $SIZEUNITSTR="╠┴";
- $mode=""; $invtitle=""; $modestr=""; $modestrprefix=""; $basesizestr="";
- if (isset($_GET['mode'])) $mode=$_GET['mode'];
- if ($mode=="invisible"){
- $invtitle=" (±Ω≡√≥√Θ ≡σµΦ∞)";
- $modestr="mode=invisible";
- $modestrprefix="?";
- }
-
- function num_format($num){
- return number_format($num,0,',',' ');
- }
- ?>
- <head>
- <title>╤≥α≥Φ±≥ΦΩα τα∩≡ε±εΓ<?php print $invtitle;?></title>
- <link rel='stylesheet' type='text/css' href='styles.css'>
- </head>
- <html>
- <table align='center' border=1 cellpadding=1 cellspacing=0 width='100%'>
- <tr class='caption'><td>#<td width=90>─α≥α<td>IP<td>╒ε±≥<td>╟α∩≡ε±<td>╥Φ∩<td>╨ατ∞σ≡<td>╒ε±≥√<td>╨στ≤δⁿ≥α≥εΓ<td>╤σΩ≤φΣ<td width=85>╘αΘδεΓ Γ ßατσ
- <?php
- list($microtime,$time)=explode(" ",microtime());
- $str=file($DIR."log.txt");
- for ($i=0; $i<sizeof($str); $i++){
- list($counter,$date,$ip,$host,$query,$type,$minsize,$maxsize,$hosts,$resnum,$duration,$basefiles,$basesize)=explode("|",$str[$i]);
- switch ($type){
- case "files": $typename="╘αΘδ√"; break;
- case "dirs": $typename="─Φ≡σΩ≥ε≡ΦΦ"; break;
- default: $typename="┬±σ"; break;
- }
- if ($minsize>0)
- if ($maxsize>0)
- $sizestr=$minsize."-".$maxsize." ".$SIZEUNITSTR;
- else $sizestr="> ".$minsize." ".$SIZEUNITSTR;
- else
- if ($maxsize>0)
- $sizestr="< ".$maxsize." ".$SIZEUNITSTR;
- else $sizestr="╦■ßεΘ";
- $basefilesstr=num_format($basefiles);
- $resnumstr=num_format($resnum);
- if ($basesize>0)
- $basesizestr=" (<b>".num_format($basesize)." ".$SIZEUNITSTR."</b>)";
- if ($hosts=="") $hostsstr="*";
- else $hostsstr=$hosts;
- $day=substr($date,8,2);
- if ($day%2==1) $class="selected";
- else $class="row";
- print "<tr class='$class'>";
- print "<td>$counter";
- print "<td>$date";
- print "<td>Hidden";//$ip
- print "<td>Hidden";//$host
- print "<td><a href='index.php?$modestr&query=$query&type=$type&minsize=$minsize&maxsize=$maxsize&hosts=$hosts'>$query</a>";
- print "<td>$typename";
- print "<td>$sizestr";
- print "<td>$hostsstr";
- print "<td>$resnumstr";
- print "<td>$duration";
- print "<td>$basefilesstr$basesizestr";
- }
- print "</table>";
-
- list($end_microtime,$end_time)=explode(" ",microtime());
- $duration = (float)$end_time - (float)$time + (float)$end_microtime - (float)$microtime;
- printf ("<div class='smalltext' align='center'>┬≡σ∞ Γ√∩εδφσφΦ : <b>%.2f ±σΩ.</b></div>",$duration);
- ?>
- <div class='text'><a href='index.php<?php print $modestrprefix.$modestr;?>'>═αταΣ</a></div>
-