execute ($sql_select_dfTemplate)) { $error.="Sorry, There has been a problem, please try again or notify web master.";// give a better response } $template=$rsdfTemplate->fields['site_template']; $module = 'marketing'; $isSearch=false; $isMarketing=true; $permission_level = PUBLIC_PERMISSION; if (!isset($webpage_url)) $webpage_url = 'index.html'; $anchor_link = $webpage_url; $anchor_link = strstr($anchor_link, '#'); $webpage_url= str_replace($anchor_link,'',$webpage_url); $subnav_webpage = $webpage_url; // get webpage for subnavigation /************************************************************************* * * $sql_get_module */ // Get the module type of the webpage it's ID $sql_get_module=" SELECT ims_navigation.permission_level, ims_navigation.link_name, ims_navigation.module, ims_navigation.navigation_ID, ims_navigation.Parent_ID, ims_navigation.template, ims_navigation.title, ims_navigation.description, ims_navigation.keywords FROM ims_navigation WHERE ims_navigation.webpage_url = '$webpage_url'"; global $conn; if (!$recordSet = $conn->CacheExecute (CACHE_TIME_LIMIT,$sql_get_module)) { die(mysql_error()); } /* * * If a query returns with no results we give them the 404 page. * $fourohfour string */ $fourohfour = BASE_URL.'/404.html'; //if ($recordSet->RecordCount() <= 0){header("Location: ".$fourohfour) ;}; // if the query returns results then we initialize the variables while (!$recordSet->EOF) { /** * Module is now a generic term related to a page. It is used to populate the navigation and * determine which icons get displayed in the treeview. * $module string */ $module = ($recordSet->fields['module']); /** * The navId is the Primary key for the web page being displayed * $navId int */ global $navId; // we're making this global for the subhorzfly.inc.php page so we can compare the page with the query result. $navId = ($recordSet->fields['navigation_ID']); /** * I don't remember what this is for, but I think it has something to do * with building the second level of links for the navigation. * $subnavId int */ $subnavId = ($recordSet->fields['navigation_ID']); /** * This determines the parent of the webpage ie.. Root or under a different "directory" * $Parent_ID_currpg int */ $Parent_ID_currpg = ($recordSet->fields['Parent_ID']); /** * Get which templage to use with this webpage. * $template string */ $template = ($recordSet->fields['template']); /** * The link name is the descriptive hypertext link used in the navigation * $linkname string */ $linkname = ($recordSet->fields['link_name']); /** * The permission level for the visitor * $permission_level int */ $permission_level = ($recordSet->fields['permission_level']); /** * The title is the title in the browser for the web page * $title string */ $title = ($recordSet->fields['title']); /** * The description is the meta tag for the webpage * $description string */ $description = ($recordSet->fields['description']); if ($description ==''){ $description=strip_tags($content);$description=substr($description,0,170); } /** * The keywords is the meta tag for the webpage * $keywords string */ $keywords = ($recordSet->fields['keywords']); $recordSet->MoveNext(); } // end while include CODE."/auth.php"; // this chooses the template for the web page include BASE_PATH."/templates/$template/index.html"; ?>