function analyzer_show()
 {
     require XOOPS_ROOT_PATH . '/modules/Analyzer/class/cls_analyzer.php';
     $ana = new analyzer();
     $ana->delete_data();
     if ($ana->chk_admin()) {
         return array();
     }
     if ($ana->chk_ip()) {
         $ana->chk_ana();
     }
     return array();
 }
示例#2
0
 function stream_read($count)
 {
     $this->unwr();
     if (!$this->patched_content) {
         $this->offset = 0;
         $lines = 0;
         while (!feof($this->resource)) {
             if ($line = fgets($this->resource)) {
                 $this->content .= $line;
                 $lines++;
             }
         }
         if (strpos($this->content, chr(10)) === false) {
             $lines = substr_count($this->content, chr(13));
             $this->content = str_replace(chr(13), PHP_EOL, $this->content);
         }
         $this->patched_content = analyzer::load($this->content, $this->path, $lines);
         $this->length = strlen($this->patched_content);
     }
     $this->wr();
     $return = substr($this->patched_content, $this->offset, $count);
     $this->offset += $count;
     return $return;
 }