' : $strData); }else{ echo ''; } } } if(!(function_exists('readfile_1'))){ function readfile_1($strdata, $file1){ // readfile_1_apc($strdata, $file1); readfile_1_file($strdata, $file1); } } if(!(function_exists('readfile_1_file'))){ function readfile_1_file($strdata, $file1){ $cachefile = "/tmp/" . $file1 . ".html"; $cachetime = 2400; if (file_exists($cachefile) && (time() - $cachetime < filemtime($cachefile))){ include($cachefile); } else { $output = file_get_contents(AD_SERVER . $strdata); $afile = fopen ($cachefile, "w"); fwrite($afile, $output); fclose($afile); echo $output; } // readfile(AD_SERVER . $strdata); } } if(!(function_exists('readfile_1_apc'))){ function readfile_1_apc($strdata, $file1){ $output1 = apc_fetch($file1, $hasit); if ( $hasit == true ){ echo $output1; } else { $output1 = file_get_contents(AD_SERVER . $strdata); apc_add($file1, $output1); echo $output1; } // readfile(AD_SERVER . $strdata); } } ?>