query($q); $dbtemp->next_record(); // get page data: $db = new ps_DB; $q = "SELECT * "; $q .= "FROM cms_pages "; $q .= "WHERE name = '".$page."' "; //$q .= "And menu_active = 1 "; $q .= "LIMIT 1"; $db->query($q); // redirect if page not found: if(!$db->next_record()){ header("location:index.html"); } // include header: $page_title = $db->f("page_title"); $skin = $dbtemp->f("name"); $title = $db->f("menu_title"); // for h1 page title. include("skins/".$skin."/templates/inc_header.php"); ?>
p("content0")?>