Results 1 to 9 of 9
-
27th Feb 2011, 05:39 PM #1OPMember
WCDDL Rss feed (whit cache)
PHP Code:<?php
$filename = 'rss.xml';
// convert the format to UTF-8
function makeUTF($desc)
{
$desc = UTF8_encode($desc);
$desc = stripslashes($desc);
return $desc;
}
function seoname($seoit) {
$seoit = strip_tags($seoit);
$seoit = str_replace("'", "", $seoit);
$seoit = str_replace(" ", " ", $seoit);
$seoit = preg_replace("#[\W_]+#", "-", $seoit);
$seoit = trim($seoit);
$seoit = strtolower($seoit);
return $seoit;
}
if(file_exists($filename) && filesize($filename) >= 10 && time() - filemtime($filename) <= 43200) //43200
{
readfile($filename);
}
else {
include "funcs.php";
$rss = '';
$rss .= '<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">'."\n";
$rss .= '<channel>'."\n";
$rss .= '<atom:link href="'.$core->siteurl.'/rss.php" rel="self" type="application/rss+xml" />'."\n";
$rss .= '<title>'. $core->sitename .'</title>'."\n";
$rss .= '<link>'. $core->siteurl .'</link>'."\n";
$rss .= '<description>The Ultimate Source of Latest Direct Downloads</description>'."\n";
$rss .= '<copyright>Copyright 2010 '.$core->sitename.' - '.$core->siteurl.'</copyright>'."\n";
$rss .= '<language>en</language>'."\n";
//IF YOU HAVE AN IMAGE USE BELOW
$rss .= '<image>'."\n";
$rss .= ' <title>'.$core->sitename.'</title>'."\n";
$rss .= ' <url>'.$core->site_button.'</url>'."\n";
$rss .= ' <link>'.$core->siteurl.'</link>'."\n";
$rss .= '</image>'."\n";
$today = date("D, d M Y H:i:s +0100");
$rss .= "<pubDate>$today</pubDate>\n";
$items = mysql_query("SELECT * FROM wcddl_downloads WHERE type !='xxx' ORDER BY id DESC limit 0,200") or die(mysql_error());
while($article = mysql_fetch_assoc($items))
{
$title = makeUTF($article["title"]);
$url = '/latest-warez-download-'.$article["id"].'-'.seoname($article["title"]).'.html';
$desc = seoname($title);
$desc = makeUTF($desc);
$rss .= "<item>\n";
$rss .= "<title>$title</title>\n";
$rss .= "<link>". $core->siteurl . $url ."</link>\n";
$rss .= "<guid>". $core->siteurl . $url ."</guid>\n";
$rss .= "<pubDate>$today</pubDate>\n";
$rss .= "<description>Download ".$title." and much more ".$article["type"]."s only at ".$core->sitename."</description>\n";
$rss .= "</item>\n";
}
$rss .= "</channel>\n";
$rss .= "</rss>\n";
if(file_exists($filename) && is_writable($filename)) {
$fp = fopen($filename, "w");
fputs($fp, $rss);
fclose($fp);
}
else
{
echo 'Error: '.$filename.' or CHMOD';
die();
}
header('Content-type: text/xml');
echo $rss;
}
?>jomasaco Reviewed by jomasaco on . WCDDL Rss feed (whit cache) <?php $filename = 'rss.xml'; // convert the format to UTF-8 function makeUTF($desc) { $desc = UTF8_encode($desc); $desc = stripslashes($desc); return $desc; } Rating: 5
-
27th Feb 2011, 05:42 PM #2Too busy :|Website's:
L337Fx.com BeastieBay.netThanks for this I'll try it on IntoDDL.com right now.
Thanks jomasaco
-
27th Feb 2011, 10:14 PM #3
-
19th Apr 2011, 09:55 AM #4Member
-
23rd May 2011, 02:50 PM #5MemberWebsite's:
eiswebhosting.com mastddl.com
-
23rd May 2011, 04:17 PM #6(╯?□?)╯︵ ┻━┻Website's:
Xenu.ws WarezLinkers.com SerialSurf.com CracksDirect.comMaybe do a v3 copy of this when you get time to learn the new methods and such, jomasaco.
Would be a useful mod.Projects:
WCDDL - The Professional DDL Script
Top Secret Project: In Development - ZOMG
ImgTrack - Never Have Dead Images Again!
-
5th Feb 2012, 10:20 PM #7MemberWebsite's:
4rc.org pivx.net mambaturk.comi tried also not works for me for v2
- DisRespected: Dlow (Still he owe me 30$)
- My Websites are again up!!!!Moved own server
- DisRespected: Dlow (Still he owe me 30$)
-
6th Feb 2012, 12:58 AM #8Respected DeveloperWebsite's:
wrzc.orgI have a version 3 released already
Tutorial How to SEO your Warez Site a guide to help you increase your organic traffic
Huge list of Warez Sites and free Multiposter Templates
-
13th Feb 2012, 06:53 PM #9MemberWebsite's:
4rc.org pivx.net mambaturk.comThanks Mr. Happy but i need for v2
- DisRespected: Dlow (Still he owe me 30$)
- My Websites are again up!!!!Moved own server
- DisRespected: Dlow (Still he owe me 30$)
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
wp super cache VS w3 total cache
By kokosko in forum Webmaster DiscussionReplies: 1Last Post: 21st Dec 2011, 07:44 PM -
Help me whit Design
By mastercho in forum WordpressReplies: 0Last Post: 11th Dec 2011, 06:05 PM -
[Hiring] RSS Feed autoposting module in WCDDL
By kitty in forum Completed TransactionsReplies: 0Last Post: 27th Aug 2011, 06:20 AM -
[Wordpress] WP Super Cache or W3 Total Cache ?
By Rocke in forum Polling PlazaReplies: 13Last Post: 13th Dec 2010, 06:00 PM -
[WTS] WCDDL Cache system
By SplitIce in forum Completed TransactionsReplies: 2Last Post: 10th Aug 2009, 12:44 PM
themaCreator - create posts from...
Version 3.24 released. Open older version (or...