Ec (2); & lt ;? Phpbibolomonggolehuen! V2.0.5 & lt ;? Include (& quot; linuxfreak. php3 & quot ;);? & Gt; dreamphpboysunboy $ link_prefix & quot; & amp; nbsp; o & script ec (2); script
// Bi bolo monggole huen!
//
// V2.0.5
// // Include ("linuxfreak. php3 ");
//?>
// Dreamphp boy = sunboy
$ Link_prefix = "o ";
$ Link_postfix ="
N ";
$ Cache_file = "/tmp/linuxfreak2.cache ";
$ Cache_time = 1200;
$ Max_items = 8;
$ Target = "_ top ";
// End of mizmizations
$ Backend = "http://www.linuxfreak.org/backend/linuxfreak.rdf ";
$ Items = 0;
$ Time = split ("", microtime ());
Srand (double) microtime () * 1000000 );
$ Cache_time_rnd= 300-rand (0,600 );
If ((! (File_exists ($ cache_file) | (filectime ($ cache_file) $ cache_time-$ time [1]) $ cache_time_rnd <0) | (! (Filesize ($ cache_file )))){
$ Fpread = fopen ($ backend, 'R ');
If (! $ Fpread ){
} Else {
$ Fpwrite = fopen ($ cache_file, 'w ');
If (! $ Fpwrite ){
} Else {
While (! Feof ($ fpread )){
$ Buffer = ltrim (Chop (fgets ($ fpread, 256 )));
If ($ buffer =" ") & ($ Items <$ max_items )){
$ Title = ltrim (Chop (fgets ($ fpread, 256 )));
$ Link = ltrim (Chop (fgets ($ fpread, 256 )));
$ Title = ereg_replace (" "," ", $ Title); <br/> $ title = ereg_replace (""," ", $ Title );
$ Link = ereg_replace (" "," ", $ Link );
$ Link = ereg_replace (""," ", $ Link );
Fputs ($ fpwrite, "$ link_prefix $ title $ link_postfix ");
$ Items;
}
}
}
Fclose ($ fpread );
}
Fclose ($ fpwrite );
}
If (file_exists ($ cache_file )){
Include ($ cache_file );
}
?>
[This article is copyrighted by the author and osuo. If you need to reprint it, please indicate the author and its source]