connect(); // Connect to PDnH Database $pdnh_auth = new Auth(); // Initialise authorisation $pdnh_path = new pdnh_core_modrewrite(); // Get path request for loading content $pdnh_urlvars = new pdnh_core_getvariables($pdnh_path->get_encoded_variables()); $pdnh_page = new pdnhPage($pdnh_path->current_page()); // Create a new page object echo('
Current page : '.$pdnh_path->current_page().'
'); echo('Parent page : '.$pdnh_path->parent_page().'
'); unset($db); // End database connection if($pdnh_urlvars->get_value('debug') == 'true') { echo('Complete!
'); } ?>