Location: PHPKode > projects > phpCAMALEO > common/includes/bld_contents.php
<?php
/***************************************************************************
 *	bld_contents.php
 *
 *	begin		: June 2004
 *	last update	: 9 October 2006
 *	copyright	: (C) 2004,2006 grandolini.net
 *
 *	Build the contents area
 *
 ***************************************************************************/
if($_SESSION[PageMsg]!='')
{
	$tmp=$_SESSION[PageMsg]; $tmp=str_replace('../img','img',$tmp); $tmp=str_replace('\"','"',$tmp);
	$_SESSION[PageMsg]='';
	echo($tmp);
}
else
{
	if(file_exists($php_page)) { include($php_page); }
	else
	{
		$PageImgName=$PageNr; $temp=explode('@',$PageImgName); if(isset($temp[1])) { $PageNr=eregi_replace('@','/',$PageImgName); }
		switch($isSpecialForm)
		{
			case '': $contents_file=$_SERVER[DOCUMENT_ROOT].$_SESSION[misc][folder].'contents/'.$PageNr.'.tpl'; break;
			default: $contents_file=$_SERVER[DOCUMENT_ROOT].$_SESSION[misc][folder].'contents/'.$isSpecialForm.'.tpl';
		}
		if(file_exists($contents_file)) { include($contents_file); } else { include($_SESSION[common].'includes/GetText.php'); }
	}
}
?>
Return current item: phpCAMALEO