Code: Select all
function current_page_info( )
{
global $gCms;
$db = $gCms->db;
$q = "SELECT * FROM ".cms_db_prefix()."pages WHERE page_alias = ".$_GET['page'];
$dbr = $db->Execute( $q );
return $dbr->FetchRow();
}
I just would like a function to return back an associative array for the current page that the user is viewing. I need to get at the hierarchy information so that a real menu / navigation can be built.
Thank you very much in advance.
Rob