/[viruswall]/log.php
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /log.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by dpavlin, Sun Jan 6 00:33:56 2002 UTC revision 1.4 by dpavlin, Thu Jun 20 15:20:16 2002 UTC
# Line 103  if ($dana==0) { Line 103  if ($dana==0) {
103          $p = $virusa/$dana;          $p = $virusa/$dana;
104  }  }
105    
106    $fp = fopen("/etc/iscan/libvsapi.so", "rb");
107    if ($fp) {
108            $bin = fread($fp, filesize("/etc/iscan/libvsapi.so"));
109            fclose($fp);
110    }
111    
112    $pos = strpos($bin,"VSAPI");
113    
114    if ($pos === false) {
115            $engine="unknown";
116    } else {
117            $engine=substr($bin,$pos+6,20);
118            $engine=substr($engine,0,strpos($engine,chr(0)));
119    }
120    
121  print "</table>  print "</table>
122  <p>Statistika<br>  <p>Statistika<br>
123  Ukupno nađeno virusa: <b>$virusa</b> u $dana dana, prosječno ".sprintf("%.2f",$p)." virusa po danu.  Ukupno nađeno virusa: <b>$virusa</b> u $dana dana, prosječno ".sprintf("%.2f",$p)." virusa po danu.
# Line 110  Ukupno nađeno virusa: <b>$virusa</b> u $ Line 125  Ukupno nađeno virusa: <b>$virusa</b> u $
125  <br>$to_in_pliva virusa je poslano u Plivu, a $to_out_pliva na druge adrese  <br>$to_in_pliva virusa je poslano u Plivu, a $to_out_pliva na druge adrese
126  na internetu.  na internetu.
127  <p>Virus pattern version: <b>$max_lpt_ver</b> (datum: $lpt_date)  <p>Virus pattern version: <b>$max_lpt_ver</b> (datum: $lpt_date)
128    <br>Scan engine version: $engine
129  </body>  </body>
130  </html>  </html>
131  ";  ";

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.26