Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
get_page_content('pageID');
#5
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
Reply


Messages In This Thread
get_page_content('pageID'); - by glennb - 2011-10-15, 03:18:25
get_page_content('pageID'); - by n00dles101 - 2011-10-15, 03:35:52
get_page_content('pageID'); - by glennb - 2011-10-15, 03:41:13
get_page_content('pageID'); - by n00dles101 - 2011-10-15, 03:46:39
get_page_content('pageID'); - by yojoe - 2011-10-16, 21:08:02
get_page_content('pageID'); - by mvlcek - 2011-10-16, 21:20:12



Users browsing this thread: 2 Guest(s)