WiredCMS Update
Well, I am still diligently working on WiredCMS (I know, I say that alot). I now have a valid RSS feed generated by it (WiredCMS RSS. RSS feeds are much easier than I originally thought, and with the backend I have built already, it took 29 lines of code to get RSS feeds going.
rss.php
- <?php
- function RSS(){
- $const = get_defined_constants();
- header('Content-type: text/xml');
- print <<<EOF
- <rss version="2.0">
- <channel>
- <title>{$const['SITE_NAME']}</title>
- <description>{$const['SITE_SLOGAN']}</description>
- <link>{$const['SITE_DOMAIN']}</link>
- <copyright>WiredCMS 2008 Michael Conway - Wiredbyte</copyright>
- EOF;
- $posts = Post::Read('1', 10);
- foreach ($posts as $post){
- $pubDate = strftime( "%a, %d %b %Y %T %Z" , $post->created);
- print <<<EOF
- <item>
- <title>{$post->title}</title>
- <description>{$post->body}</description>
- <link>{$const['SITE_DOMAIN']}</link>
- <pubDate>{$pubDate}</pubDate>
- </item>
- EOF;
- }
- print '</channel>
- </rss>';
- }
- ?>
Please keep in mind that I am using my own functions and classes for the above code, but I'll try to get a generic tutorial up for RSS feeds generation.
I've also got file uploads (images for posts at this point) working. though nothing is displayed yet, the files do get validated and uploaded. I also have set a config variable to adjust allowable file sizes, file types, and the upload path.
Posted August 1st, 2008 by Michael

ycpPlFYsGZAcUY
, discount viagra, get rx for tramadol online, generic propecia, depakote, depakote, buy cialis,
YprDNCPFmTheYyXLFl
VzD5m1 health insurance online uqq cheapest car insurance %P quotes whole life insurance >:-OO state auto insurance 067
YprDNCPFmTheYyXLFl
VzD5m1 health insurance online uqq cheapest car insurance %P quotes whole life insurance >:-OO state auto insurance 067