I have a small problem.
how can I get it to NOT run by the blog?
rep++
wibben
PHP:
<?php
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* TFSCMS - The Forgotten Server Content Management System
* * * * * * * * * * * * * * * * ' * * * * * * * * * * * * * * * * *
* Copyright (c) Mark Samman 2008 - 2009 <[email protected]>
* All Rights Reserved.
* This file may not be redistributed in whole or significant part.
* http://otland.net
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
require_once('includes/global.php');
$userInterface = new UserInterface('News');
$userInterface->display();
echo nl2br(file_get_contents('news.txt'));
$limit = 4;
require('lib/rss_fetch.inc');
$rss = fetch_rss('http://otland.net/blogs/twifysoft/feed/');
foreach ($rss->items as $entry) {
echo '<h3>' . $entry['pubdate'] . ' - <a href="' . $entry['link'] . '">' . htmlspecialchars($entry['title'], ENT_QUOTES) . '</a></h3>' . $entry['content']['encoded'];
$limit--;
if ($limit == 0)
break;
echo '<hr />';
}
?>
how can I get it to NOT run by the blog?
rep++
wibben