website_title; if(isset($p1) AND isset($p2) AND isset($p3) AND $p2 == "nieuws") { $record_subsub_title = mysql_fetch_object(mysql_query("SELECT title FROM page WHERE p1 = '$p1' AND p2 = ''")); $record_subtitle = mysql_fetch_object(mysql_query("SELECT title FROM page WHERE p1 = '$p1' AND p2 = '$p2' AND p3 = ''")); $record_title = mysql_fetch_object(mysql_query("SELECT title FROM news WHERE url = '$p3'")); $title = $record_title->title; $subtitle = $record_subtitle->title; $subsubtitle = $record_subsub_title->title; if(($title !="") AND ($subtitle !="") AND ($subsubtitle !="")) { echo $title . " | " . $subtitle . " | " . $subsubtitle . " | " . $maintitle; } else { echo $maintitle; } } elseif(isset($p1) AND isset($p2) AND isset($p3) AND isset($p4)) { $record_subsubsub_title = mysql_fetch_object(mysql_query("SELECT title FROM page WHERE p1 = '$p1' AND p2 = ''")); $record_subsub_title = mysql_fetch_object(mysql_query("SELECT title FROM page WHERE p1 = '$p1' AND p2 = '$p2' AND p3 = ''")); $record_subtitle = mysql_fetch_object(mysql_query("SELECT title FROM page WHERE p1 = '$p1' AND p2 = '$p2' AND p3 = '$p3'")); $record_title = mysql_fetch_object(mysql_query("SELECT title FROM page WHERE p1 = '$p1' AND p2 = '$p2' AND p3 = '$p3' AND p4 = '$p4'")); $title = $record_title->title; $subtitle = $record_subtitle->title; $subsubtitle = $record_subsub_title->title; $subsubsubtitle = $record_subsubsub_title->title; if(($title !="") AND ($subtitle !="") AND ($subsubtitle !="") AND ($subsubsubtitle !="")) { echo $title . " | " . $subtitle . " | " . $subsubtitle . " | " . $subsubsubtitle . " | " . $maintitle; } else { echo $maintitle; } } elseif(isset($p1) AND isset($p2) AND isset($p3)) { $record_subsub_title = mysql_fetch_object(mysql_query("SELECT title FROM page WHERE p1 = '$p1' AND p2 = ''")); $record_subtitle = mysql_fetch_object(mysql_query("SELECT title FROM page WHERE p1 = '$p1' AND p2 = '$p2' AND p3 = ''")); $record_title = mysql_fetch_object(mysql_query("SELECT title FROM page WHERE p1 = '$p1' AND p2 = '$p2' AND p3 = '$p3'")); $title = $record_title->title; $subtitle = $record_subtitle->title; $subsubtitle = $record_subsub_title->title; if(($title !="") AND ($subtitle !="") AND ($subsubtitle !="")) { echo $title . " | " . $subtitle . " | " . $subsubtitle . " | " . $maintitle; } else { echo $maintitle; } } elseif(isset($p1) AND isset($p2)) { $record_subtitle = mysql_fetch_object(mysql_query("SELECT title FROM page WHERE p1 = '$p1' AND p2 = ''")); $record_title = mysql_fetch_object(mysql_query("SELECT title FROM page WHERE p1 = '$p1' AND p2 = '$p2' AND p3 = ''")); $title = $record_title->title; $subtitle = $record_subtitle->title; if(($title !="") AND ($subtitle !="")) { echo $title . " | " . $subtitle . " | " . $maintitle; } else { echo $maintitle; } } elseif(isset($p1)) { $record_title = mysql_fetch_object(mysql_query("SELECT title FROM page WHERE p1 = '$p1' AND p2 = ''")); $title = $record_title->title; if(($title !="")) { echo $title . " | " . $maintitle; } else { echo $maintitle; } } else { if(($title !="")) { echo $title . " | " . $maintitle; } else { echo $maintitle; } } } function get_meta_keywords() { $p1 = $_GET['p1']; $p2 = $_GET['p2']; $p3 = $_GET['p3']; $p4 = $_GET['p4']; if(isset($p1) AND isset($p2) AND isset($p3) AND isset($p4)) { $get_meta_keywords = mysql_query("SELECT meta_keywords FROM page WHERE p1 = '$p1' AND p2 = '$p2' AND p3 = '$p3' AND p4 = '$p4'")or die(mysql_error()); $record_get_meta_keywords = mysql_fetch_object($get_meta_keywords); if($record_get_meta_keywords->meta_keywords == "") { $get_meta_keywords_2 = mysql_query("SELECT meta_keywords FROM config")or die(mysql_error()); $record_get_meta_keywords_2 = mysql_fetch_object($get_meta_keywords_2); echo $record_get_meta_keywords_2->meta_keywords; } else { echo $record_get_meta_keywords->meta_keywords; } } elseif(isset($p1) AND isset($p2) AND isset($p3)) { $get_meta_keywords = mysql_query("SELECT meta_keywords FROM page WHERE p1 = '$p1' AND p2 = '$p2' AND p3 = '$p3'")or die(mysql_error()); $record_get_meta_keywords = mysql_fetch_object($get_meta_keywords); if($record_get_meta_keywords->meta_keywords == "") { $get_meta_keywords_2 = mysql_query("SELECT meta_keywords FROM config")or die(mysql_error()); $record_get_meta_keywords_2 = mysql_fetch_object($get_meta_keywords_2); echo $record_get_meta_keywords_2->meta_keywords; } else { echo $record_get_meta_keywords->meta_keywords; } } elseif(isset($p1) AND isset($p2)) { $get_meta_keywords = mysql_query("SELECT meta_keywords FROM page WHERE p1 = '$p1' AND p2 = '$p2'")or die(mysql_error()); $record_get_meta_keywords = mysql_fetch_object($get_meta_keywords); if($record_get_meta_keywords->meta_keywords == "") { $get_meta_keywords_2 = mysql_query("SELECT meta_keywords FROM config")or die(mysql_error()); $record_get_meta_keywords_2 = mysql_fetch_object($get_meta_keywords_2); echo $record_get_meta_keywords_2->meta_keywords; } else { echo $record_get_meta_keywords->meta_keywords; } } elseif(isset($p1)) { $get_meta_keywords = mysql_query("SELECT meta_keywords FROM page WHERE p1 = '$p1'")or die(mysql_error()); $record_get_meta_keywords = mysql_fetch_object($get_meta_keywords); if($record_get_meta_keywords->meta_keywords == "") { $get_meta_keywords_2 = mysql_query("SELECT meta_keywords FROM config")or die(mysql_error()); $record_get_meta_keywords_2 = mysql_fetch_object($get_meta_keywords_2); echo $record_get_meta_keywords_2->meta_keywords; } else { echo $record_get_meta_keywords->meta_keywords; } } else { $get_meta_keywords_2 = mysql_query("SELECT meta_keywords FROM config")or die(mysql_error()); $record_get_meta_keywords_2 = mysql_fetch_object($get_meta_keywords_2); echo $record_get_meta_keywords_2->meta_keywords; } } function get_meta_description() { $p1 = $_GET['p1']; $p2 = $_GET['p2']; $p3 = $_GET['p3']; $p4 = $_GET['p4']; if(isset($p1) AND isset($p2) AND isset($p3) AND isset($p4)) { $get_meta_description = mysql_query("SELECT meta_description FROM page WHERE p1 = '$p1' AND p2 = '$p2' AND p3 = '$p3' AND p4 = '$p4'")or die(mysql_error()); $record_get_meta_description = mysql_fetch_object($get_meta_description); if($record_get_meta_description->meta_description == "") { $get_meta_description_2 = mysql_query("SELECT meta_description FROM config")or die(mysql_error()); $record_get_meta_description_2 = mysql_fetch_object($get_meta_description_2); echo $record_get_meta_description_2->meta_description; } else { echo $record_get_meta_description->meta_description; } } elseif(isset($p1) AND isset($p2) AND isset($p3)) { $get_meta_description = mysql_query("SELECT meta_description FROM page WHERE p1 = '$p1' AND p2 = '$p2' AND p3 = '$p3'")or die(mysql_error()); $record_get_meta_description = mysql_fetch_object($get_meta_description); if($record_get_meta_description->meta_description == "") { $get_meta_description_2 = mysql_query("SELECT meta_description FROM config")or die(mysql_error()); $record_get_meta_description_2 = mysql_fetch_object($get_meta_description_2); echo $record_get_meta_description_2->meta_description; } else { echo $record_get_meta_description->meta_description; } } elseif(isset($p1) AND isset($p2)) { $get_meta_description = mysql_query("SELECT meta_description FROM page WHERE p1 = '$p1' AND p2 = '$p2'")or die(mysql_error()); $record_get_meta_description = mysql_fetch_object($get_meta_description); if($record_get_meta_description->meta_description == "") { $get_meta_description_2 = mysql_query("SELECT meta_description FROM config")or die(mysql_error()); $record_get_meta_description_2 = mysql_fetch_object($get_meta_description_2); echo $record_get_meta_description_2->meta_description; } else { echo $record_get_meta_description->meta_description; } } elseif(isset($p1)) { $get_meta_description = mysql_query("SELECT meta_description FROM page WHERE p1 = '$p1'")or die(mysql_error()); $record_get_meta_description = mysql_fetch_object($get_meta_description); if($record_get_meta_description->meta_description == "") { $get_meta_description_2 = mysql_query("SELECT meta_description FROM config")or die(mysql_error()); $record_get_meta_description_2 = mysql_fetch_object($get_meta_description_2); echo $record_get_meta_description_2->meta_description; } else { echo $record_get_meta_description->meta_description; } } else { $get_meta_description_2 = mysql_query("SELECT meta_description FROM config")or die(mysql_error()); $record_get_meta_description_2 = mysql_fetch_object($get_meta_description_2); echo $record_get_meta_description_2->meta_description; } } ?>