2011-10-16, 21:08:02
I once used Mike's funciton, but I had to modify it a bit, to see if user didn't delete accidentially one of essential pages, thus:
Code:
function load_page_content($id){
$file = "data/pages/". $id .".xml";
if ( file_exists($file) ){
$data_index = getXML($file);
$page=stripslashes( html_entity_decode($data_index->content, ENT_QUOTES, 'UTF-8') );
}else{
$page="Page ".$id." doesn't exist";
}
return $page;
}
Addons: blue business theme, Online Visitors, Notepad