connect(); $dbo->db_select_db($db[$case]['database']); if(!$_GET['code']) { $code = getEncrypt(1); } else { $code = $_GET['code']; } $nowDate=strftime("%Y-%m-%d"); if((getDecrypt($_GET['code'])==0)||(getDecrypt($_GET['code']) == "")) { $Q1="select * from ".$table['navigation']." where parent_id = 0 order by position"; $dbo->db_query($Q1); $navigation_array = $dbo->fetch_array(); } else { $Q2 = "select * from ".$table['navigation']." where navigation_id = '".urldecode(getDecrypt($_GET['code']))."'"; $dbo->db_query($Q2); $navigation_array = $dbo->fetch_array(); } $dbo->db_query("select * from ".$table['modul']." where modul_id = ".$navigation_array['page_type']." LIMIT 0,1"); $modul_array = $dbo->fetch_array(); $query = "select * from ".$table['templates']." where tpl_id = ".$navigation_array['template_id']; $dbo->db_query($query); $template_array = $dbo->fetch_array(); $qry="SELECT * FROM ".$table['color']." WHERE color_id = ".$navigation_array['color_id']; $dbo->db_query($qry); $color_array = $dbo->fetch_array(); $CSStyle = set_BrowserCSS($_SERVER['HTTP_USER_AGENT'],$color_array['color_file'],$public,$case); @$dbo->db_close(); unset($dbo); $parameters['variant'] = $variant; $parameters['district'] = $district; $parameters['title_id'] = getDecrypt($t); $parameters['code'] = $code; $parameters['ancor'] = getDecrypt($a); $parameters['qryG'] = $qryG; if(($navigation_array['action'])||($action)) { if($navigation_array['action']) $action = $navigation_array['action']; switch ($action) { case "search" : if($searchselect == "intern") $parameters['page_type']= 100; if($searchselect == "google") $parameters['page_type']= 109; break; case "commendation" : $parameters['page_type']= 101; break; case "mailabo" : $parameters['page_type']= 102; break; case "filmwunsch" : $parameters['page_type']= 103; break; case "gaestebuch" : $parameters['page_type']= 104; break; case "filmtext" : $parameters['page_type']= 107; break; case "kritik" : $parameters['page_type']= 108; break; case "login" : $parameters['page_type']= 110; break; case "sitemap" : $parameters['page_type']= 51; break; case "logout" : $parameters['page_type']= 112; break; default: } } else { $parameters['page_type']= $navigation_array['page_type']; } $parameters['navi_id'] = $navigation_array['navigation_id']; $last_change = strftime("%d.%m.%Y"); //---Einbinden des Haupttemplates---// require($general[$case]['include_path']."includes/public_header.inc.php"); if($template_array['tpl_file'] == "") //--- Wenn keine Templatedatei angegeben ist ---// { $code = 0; require($public[$case]['template_path']."main/".$public[$case]['template_empty']); } else { require($public[$case]['template_path']."main/printsite.tpl"); } ?>