secureAbort($_GET['id'],"int"); $secure->secureAbort($_GET['news_id'],"int"); $secure->secureAbort($_GET['main'],"int"); $secure->secureAbort($_GET['modul'],"plugin"); $secure->secureAbort($_GET['gal_id'],"int"); $secure->secureAbort($_GET['site'],"int"); $secure->secureAbort($_GET['pid'],"int"); $secure->secureAbort($_GET['templ'],"int"); $secure->secureAbort($_GET['nav'],"int"); $secure->secureAbort($_GET['start'],"int"); $secure->secureAbort($_GET['lang'],"plugin"); $secure->secureAbort($_GET['option'],"plugin"); // Sprache //$_SESSION['lang']="de"; if ($_GET[lang]!=""){ $_SESSION['lang']=$_GET[lang]; } if ($_SESSION[lang]==""){ $_SESSION['lang']="de"; }; include "lang/$_SESSION[lang]/lang.inc.php"; include "admin/inc/config.inc.php"; include "inc/db.inc.php"; include("inc/functions.inc.php"); if ($_GET[kid]!=""){ $col_zusatz="colspan=\"3\""; } $akt_data[now]=time(); $akt_data[ip]=$REMOTE_ADDR; $modul=$_GET[modul]; $id=$_GET[id]; //if ($modul==""){$modul="startseite";} // Metainformationen auslesen $meta=mysql_fetch_array(mysql_query("SELECT * FROM cms_config WHERE lang='$_SESSION[lang]' LIMIT 1")); global $meta,$menu,$id,$akt_data; if ($_GET[header_option]!=""){ if ($_GET[hplugin]==""){ include "plugin/$_GET[modul]/$_GET[header_option].php"; } else { include "plugin/$_GET[hplugin]/$_GET[header_option].php"; } } $content_temp[error_msg]=$content[error_msg]; $content=get_content($modul,$id); if (isset($_POST[login])){ include ("plugin/login/login_check.php"); //echo "sdfsd"; } if ($content_temp[error_msg]!=""){ $content[error_msg]=$content_temp[error_msg]; } //echo $content[error_msg]; if ($id==""){$id=$content[id];} //if ($modul=="startseite"){$modul=$meta[modul];} $cat=$_GET[cat]; if ($content[meta_key]!="") { $meta[meta_key]=$content[meta_key]; } if ($content[meta_descr]!=""){ $meta[meta_descr]=$content[meta_descr]; } // Popup auslesen - Wichtig das $popup auch im Body steht!!! if ($content[popup_id]!=""){ if ($content['popup_zeit'] =="auf"){ $popup="onLoad=\"MM_openBrWindow('plugin/popup/popup.php?id=$content[popup_id]','popup','width=$content[popup_x],height=$content[popup_y]')\""; } if ($content['popup_zeit'] =="verlassen"){ $popup="onUnload=\"MM_openBrWindow('plugin/popup/popup.php?id=$content[popup_id]','popup','width=$content[popup_x],height=$content[popup_y]')\""; } } include "admin/pages/hit_tracker.php"; if ($content[title]!=""){ $zusatztitel=$zusatztitel.$content[title]." | "; } $menup = mysql_fetch_array(mysql_query("SELECT * FROM cms_mediothek WHERE rubrik='header' ORDER by rand() LIMIT 1")); $content['header1']=get_pic_path($menup[id]); ?> 0){ $print_link="index.php?modul=$print_modul&id=$id&news_id=$news_id&templ=$pr_templ[id]"; } else { $print_link="javascript: window.print();"; } if ($content['template_sub'] >0){ $templ=$content['template_sub']; } else if ($content['template_main'] >0){ $templ =$content['template_main']; } else { $templ=$meta[template]; } if ($_GET[templ]!=""){$templ=$_GET[templ];} if ($templ!=""){ $template=mysql_fetch_array(mysql_query("SELECT * FROM cms_templates WHERE id='$templ'")); //echo $template[title]; require_once $template[title].".tpl"; } else { echo "Es wurde noch kein Template definiert."; } //echo "
DEBUG
Haupt: $content[menu_id], SUB: $content[sub_menu_id]
Aktuelles Template: ".$templ.";
Sprache: ".$_SESSION[lang]."
Bild 1: $content[header1], Bild 2: $content[header2]
Inhaltsblock: $content[inhalts_block]
"; //echo phpinfo(); ?>