GetConnection(); // Route pages based on URL $rt = new Routing(); $protocol = $rt->protocol; $server_add = $rt->ServerAddress; $secure_add = $rt->SecureAddress; $current_address = $rt->CurrentAddress; $base_href = $rt->BaseHref; $site_href = $rt->ServerAddress; $url_parse = $rt->UrlParts; $s = $rt->Section; $p = $rt->Page; $page_title = $rt->PageTitle; $content_file = $rt->ContentFile; // Run requested resource specified by routing. $_Page = new Page($content_file); if ($rt->IsContent) { $_Page->Render(); } else { $_Page->Execute(); } if ($_debug) { echo "
"; print_r($rt); echo ""; echo "
"; print_r($_Page); echo ""; } // close generic database connection $generalDB->Close(); ?>