Exemplo n.º 1
0
 /**
  * 显示页面函数
  *
  * @access  public
  * @param   string      $filename
  * @param   sting      $cache_id
  *
  * @return  void
  */
 function display($filename, $cache_id = '')
 {
     $this->_seterror++;
     error_reporting(E_ALL ^ E_NOTICE);
     $this->_checkfile = false;
     $out = $this->fetch($filename, $cache_id);
     if (strpos($out, $this->_hash) !== false) {
         $k = explode($this->_hash, $out);
         foreach ($k as $key => $val) {
             if ($key % 2 == 1) {
                 $k[$key] = $this->insert_mod($val);
             }
         }
         $out = implode('', $k);
     }
     error_reporting($this->_errorlevel);
     $this->_seterror--;
     gzip_out($out . run_info());
 }
Exemplo n.º 2
0
 /**
  * 显示页面函数
  *
  * @access  public
  * @param   string      $filename
  * @param   sting      $cache_id
  *
  * @return  void
  */
 function display($filename, $cache_id = '')
 {
     $this->_seterror++;
     error_reporting(E_ALL ^ E_NOTICE);
     $this->_checkfile = false;
     $out = $this->fetch($filename, $cache_id);
     if (strpos($out, $this->_hash) !== false) {
         $k = explode($this->_hash, $out);
         foreach ($k as $key => $val) {
             if ($key % 2 == 1) {
                 $k[$key] = $this->insert_mod($val);
             }
         }
         $out = implode('', $k);
     }
     error_reporting($this->_errorlevel);
     $this->_seterror--;
     gzip_out($out . run_info());
     if ($GLOBALS['distribution_cfg']['OSS_TYPE'] && $GLOBALS['distribution_cfg']['OSS_TYPE'] == "ES_FILE") {
         if (count($GLOBALS['curl_param']['images']) > 0) {
             $GLOBALS['curl_param']['images'] = base64_encode(serialize($GLOBALS['curl_param']['images']));
             curl_setopt($GLOBALS['syn_image_ci'], CURLOPT_POSTFIELDS, $GLOBALS['curl_param']);
             $rss = curl_exec($GLOBALS['syn_image_ci']);
         }
         curl_close($GLOBALS['syn_image_ci']);
         //echo $rss;exit;
     }
 }