id; $page_p_id=$record->p_id; $page_name=$record->name; $page_title=$record->title; if ($page_p_id<9999) $page_title=$page_title." - SEE IT NOW"; $page_link_text=$record->link_text; $page_keywords=$record->keywords; $page_description=$record->description; $page_content=$record->content; $page_stat=$record->stat; mysql_free_result($result); if(strstr($level1, "questions-")){ $cat=str_replace("questions-", "", $level1); $cat_name=str_replace("_", " ", $cat); $page_title= $cat_name." Information and Forum - DISH NETWORK SATELLITE TV"; } elseif(strstr($level1, "answers-")){ $title_url=str_replace("answers-", "", $level1); $query="select title from questions where title_url='$title_url'"; if(!($result=mysql_query($query))){ echo "Error-44-".mysql_error(); exit(); }//if $record=mysql_fetch_object($result); $page_title=$record->title; $page_title= $page_title." - DISH NETWORK SATELLITE TV"; } else{ $page_title="DISH NETWORK SATELLITE TV Discussions Forum"; } include ("header.php"); include ("forum/forum_body.php"); include ("footer.php"); exit(); } ///////////////////// FORUM /////////////////////////////////////////////////// if ($levels==0) $url="index.html"; if ($levels==1) $url="$level0"; if ($levels==2) $url="$level0/$level1"; if ($levels==3) $url="$level0/$level1/$level2"; $query="SELECT id, p_id, name, title, link_text, keywords, description, content, stat FROM content_new WHERE name='$url' AND stat!='0'"; $result=mysql_query($query); $record=mysql_fetch_object($result); $page_id=$record->id; $page_p_id=$record->p_id; $page_name=$record->name; $page_title=$record->title; //if ($page_p_id<9999) $page_title=$page_title." - SEE IT NOW"; $page_link_text=$record->link_text; $page_keywords=$record->keywords; $page_description=$record->description; $page_content=$record->content; $page_stat=$record->stat; mysql_free_result($result); $page_content=str_replace("#homelink#",$homelink,$page_content); /////////////// // 404 ERROR // /////////////// if (empty($page_id)) { header("HTTP/1.1 404 Not Found"); echo "The page you are looking for was not found! Please return to our HOMEPAGE and retry your search."; exit(); } /////////////// // 404 ERROR // /////////////// if ($_GET['main']=="dish-network-tv") $page_title="Free Dish Network TV Links"; include ("header.php"); if ($_GET['main']=="dish-network-tv") { include("resources.php"); } else { echo $page_content; } include ("footer.php"); ?>