Location: PHPKode > projects > DDL CMS > Upload these files to your webspace/news/page.php
<?php
	$newspage = 'TRUE';
	define('NEWSDIR', dirname(__FILE__) . '/');
	define('WWWROOT', substr(NEWSDIR, 0, -5));
	define('BASEDIR', substr(WWWROOT, 0, ##BASEDIR##));
	require(BASEDIR . 'funcs.inc');
	require(BASEDIR . 'config.php');
	if(checkURLQuery('newspage.php', $_GET) === TRUE)
	{
		$id = $_GET['id'];
		$getnews = dbcom("SELECT * FROM news WHERE id=$id;");
		while($r = mysql_fetch_array($getnews))
		{
			extract($r);
		}
		require(WWWROOT . 'skins/' . $skin . '/header.php');
	}
	else
	{
		require(WWWROOT . 'skins/' . $skin . '/header.php');
		require(WWWROOT . 'skins/' . $skin . '/body.php');
		require(WWWROOT . 'skins/' . $skin . '/footer.php');
		die();
	}
?>
<!-- BEGIN body -->
	<table border="0" width="90%">
		<tr>
			<td align="left">
				<a href="<?php echo $site_url; ?>/news-<?php echo $id;?>-<?php echo str_replace(array('-', '_', ' '), '.', $title); ?>.html" title="<?php echo $title; ?>"><h2><?php echo $title; ?></h2></a>
				<p>
<?php
	echo $news;
	echo '</p>' . "\n";
	echo '<br /><br />Sponsored Link: <a href="http://' . $cbusername . '.sharingzone.net/?q=' . Capitalize($title) . '" title="' . Capitalize($title) . '" target="_blank">' . Capitalize($title) . '</a>' . "\n";
?>
			</td>
		</tr>
	</table>
<!-- END body -->
<?php
	require(WWWROOT . 'skins/' . $skin . '/footer.php');
?>
Return current item: DDL CMS