Esempio n. 1
0
 function onepage($url)
 {
     global $mcharset, $progress;
     $m_http = new http();
     $m_http->timeout = $this->gmission['timeout'] ? $this->gmission['timeout'] : 0xffff;
     if ($this->gmission['mcookies']) {
         $m_http->setCookies($this->gmission['mcookies']);
     }
     $html = $m_http->fetchtext($url);
     unset($m_http);
     $html = convert_encoding($this->gmission['mcharset'], $mcharset, $html);
     $this->clean_blank($html);
     $progress && $progress->pagecount(1);
     return $html;
 }