Location: PHPKode > projects > Peardrop CMS > peardrop/inc/content.inc.php
<?php
////////////////////////////////////////////////////////////////////////
//
//      Use this file if you decide to make your own HTML Template,
//        and add it to the 'body' or 'content' area of your HTML
//           structure so that content can be pulled dynamically.
//
////////////////////////////////////////////////////////////////////////

//get the page id from the url
$page = $_GET['p']; 
$type = $_GET['t'];
//Check that the page id has no illegal expressions
//Check that the page id has no illegal expressions
if (strstr($page, "/")) {
$page = "home"; //re-write $home to the static home page
}
if (strstr($page, ":")) {
$page = "home"; //re-write $home to the static home page
}
if (strstr($page, ".")) {
$page = "home"; //re-write $home to the static home page
}
//If blank load the home page
if ( $type == NULL ) {
	$dir = "content";
}else {
	$dir = "hidden";
}

if ( $page == NULL ) {
	 echo file_get_contents("$dir/home");
 
} else {
	
	echo file_get_contents("$dir/$page");
}
?>
Return current item: Peardrop CMS