Is a new PHP source code designed for LinuxFreak.org

Source: Internet
Author: User
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]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.