session_cache_limiter('must-revalidate'); session_start(); $cache_limiter = ini_get('session.gc_maxlifetime'); //echo $_SERVER['QUERY_STRING']; //echo "
"; print_r($_SESSION[$_SESSION['http_host_extended']]['responsive']['screen']); echo ""; // Einbinden der Datei functions.inc require_once("includes/functions.php"); require_once("includes/replace.php"); unset ($id_plus); unset($shop); //echo $id_plus; // Registrieren der GET-Variablen durch Funktion pt_register() pt_register('GET','mein','force_text','text','convert','text_override','top_id','top_id_post','screen','responsive_setup','responsive_lock','slideshow','klones','size','lang','copy_shop','id_plus','post','email','button','code','fotograf','set','prev_edit','shop','shop_id','modul','url','force_sub','file_save','template','inhalte','paste','kopie','prev_action','temp_bilder_aktiv','text_edit','text_view','temp_suche','temp_sort','temp_direction','down_id','prev','textfile','hide','temp_texte','temp_bilder','temp_download','temp_termine','temp_modul','pic_id','direction','sort','suche','size_x','logfile','file','aktueller_benutzer','aktuelle_benutzergruppe','pfad','abspos','position','show','aktiv','temp_aktiv','inaktiv','open','close','bildfile','bild','temp','status','thema','link','empfaenger','betreff','typ','liste','menu','submenu','seminar','nr','druck','log','prev_page','prev_aktiv','prev_open','prev_submenu','prev_id','back','edit','action','loeschen','id','aktuelle_datenbank','page','var','vari','area','force','pic_edit','updatefile','update','intern'); // Registrieren der POST-Variablen durch Funktion pt_register() pt_register('POST','force_text','text','convert','text_override','top_id','top_id_post','screen','klonen','copy_shop','id_plus','post','code','status','fotograf','alternativen','set','prev_edit','alternativen','edit','back','shop','shop_id','button','url','force','file_save','template','inhalte','paste','kopie','temp_bilder_aktiv','text_edit','text_view','temp_suche','temp_sort','temp_direction','textfile','bild','down_id','current','hide','prev','temp_texte','temp_bilder','temp_termine','temp_download','suffix','pic_id','schlagworte','bildunterschrift','file','temp_modul','prev_action','old_module','aktueller_benutzer','aktuelle_benutzergruppe','pfad','new_pfad','old_pfad','aktiv','temp_aktiv','temp','inhalt','rubrik','datei','passwort','passwort_wdh','benutzer','prev_aktiv','prev_page','prev_open','prev_submenu','prev_id','action','daten_neu','bildfile','pdffile','aktuelle_datenbank','seminar','menu','page','neue_kategorie','reader','pic_edit','updatefile','intern'); pt_register('POST','version','fehlende_bilder','pic_edit','open','abspos','direction','sort','absender','empfaenger','betreff','nachricht','senden','kopie','meldung','modul','suche','and_or','id','resize','bildunterschrift','schlagworte'); pt_register('POST','temp_lang','summe','size','res','name','email','telefon','sonstiges'); $_SESSION['collect_fwd'] = array(); $_SESSION['collect_rwd'] = array(); $_SESSION['collect_ply_pse'] = array(); if ( $open == "first" ) { unset($_SESSION[$_SESSION['http_host_extended']]['menu_aktiv']); unset($open); } if ( $_SESSION[$_SESSION['http_host_extended']]['responsive']['temp'] and $_SESSION[$_SESSION['http_host_extended']]['users']['rang'] <= 2 ) { $_SESSION[$_SESSION['http_host_extended']]['responsive']['lock'] = "x"; } if ( $responsive_lock ) { if ( $responsive_lock == "_lock" ) { $_SESSION[$_SESSION['http_host_extended']]['responsive']['lock'] = "x"; $_SESSION[$_SESSION['http_host_extended']]['responsive']['temp'] = "x"; } if ( $responsive_lock == "_unlock" ) { $_SESSION[$_SESSION['http_host_extended']]['responsive']['lock'] = ""; if ( $log != "out" ) { $_SESSION[$_SESSION['http_host_extended']]['responsive']['temp'] = ""; } } } if ( $responsive_setup ) { $_SESSION[$_SESSION['http_host_extended']]['responsive']['setup'] = $responsive_setup; } if ( $_SESSION[$_SESSION['http_host_extended']]['responsive']['lock'] and $_SESSION[$_SESSION['http_host_extended']]['users']['rang'] <= 2 ) { if ( $_SESSION[$_SESSION['http_host_extended']]['responsive']['setup'] == 1 ) { $screen = "_desktop"; } if ( $_SESSION[$_SESSION['http_host_extended']]['responsive']['setup'] == 2 ) { $screen = "_tablet"; } if ( $_SESSION[$_SESSION['http_host_extended']]['responsive']['setup'] == 3 ) { $screen = "_mobile"; } if ( $_SESSION[$_SESSION['http_host_extended']]['responsive']['setup'] == 4 ) { $screen = "_tablet_portrait"; } } if ( $screen ) { $_SESSION[$_SESSION['http_host_extended']]['responsive']['screen'] = $screen; if ( $screen == "_desktop" ) { $_SESSION[$_SESSION['http_host_extended']]['responsive']['screen'] = ""; } } // Status zurücksetzen, wenn innerhalb von easyCMS Systemen gewechselt wird $http_host_extended = explode("/",$_SERVER['PHP_SELF']); unset($http_host_extended[count($http_host_extended)-1]); $http_host_extended = implode("/",$http_host_extended); $http_host_extended = $_SERVER['HTTP_HOST'].$http_host_extended; //echo $http_host_extended."
"; print_r($post); echo ""; } //echo "
"; print_r($_SERVER); echo ""; // Basis-Grundeinstellungen $daten_pfad="daten/"; $includes="includes/"; $datenbank_suffix = ".oli"; $line_feed=substr(file_get_contents($daten_pfad."menu.oli"),0,1); $_SESSION[$_SESSION['http_host_extended']]['lf'] = $lf = " "; // Rewrite setzetn //if ( !is_numeric($open) ) { $mod_rewrite = reader("rewrite"); foreach ( $mod_rewrite['id_daten'] as $mod_key => $mod_value ) { $mod_key = explode("-",$mod_key); $redirect_url = ""; if ( $mod_value['REWRITE'] == $open ) { $redirect_url = $open; $open = $mod_key[0]; if ( is_numeric($mod_key[1]) ) { $textfile = $mod_key[1]; //echo $textfile; } else { $lang = $mod_key[1]; $_SESSION[$_SESSION['http_host_extended']]['language_symbol'] = $lang; $_SESSION[$_SESSION['http_host_extended']]['language'] = $languages[$lang]; //echo $_SESSION[$_SESSION['http_host_extended']]['language']; } break; } } //} // Weitere Grundeinstellungen aus Datenbank laden $einstellungen_desktop = reader('einstellungen'); $einstellungen = reader('einstellungen'.$_SESSION[$_SESSION['http_host_extended']]['responsive']['screen']); foreach ( $einstellungen['id_daten'] as $e_key => $e_value ) { if ( $e_value['WERT'] != $einstellungen_desktop['id_daten'][$e_key]['WERT'] and !$e_value['WERT'] ) { $einstellungen['id_daten'][$e_key]['WERT'] = $einstellungen_desktop['id_daten'][$e_key]['WERT']; } if ( $e_value['LANG_1'] != $einstellungen_desktop['id_daten'][$e_key]['LANG_1'] and !$e_value['LANG_1'] ) { if ( $e_value['WERT'] ) { $einstellungen['id_daten'][$e_key]['LANG_1'] = $e_value['WERT']; } else { $einstellungen['id_daten'][$e_key]['LANG_1'] = $einstellungen_desktop['id_daten'][$e_key]['LANG_1']; } } if ( $e_value['LANG_2'] != $einstellungen_desktop['id_daten'][$e_key]['LANG_2'] and !$e_value['LANG_2'] ) { if ( $e_value['WERT'] ) { $einstellungen['id_daten'][$e_key]['LANG_2'] = $e_value['WERT']; } else { $einstellungen['id_daten'][$e_key]['LANG_2'] = $einstellungen_desktop['id_daten'][$e_key]['LANG_2']; } } if ( $e_value['LANG_3'] != $einstellungen_desktop['id_daten'][$e_key]['WERT'] and !$e_value['LANG_3'] ) { if ( $e_value['WERT'] ) { $einstellungen['id_daten'][$e_key]['LANG_3'] = $e_value['WERT']; } else { $einstellungen['id_daten'][$e_key]['LANG_3'] = $einstellungen_desktop['id_daten'][$e_key]['LANG_3']; } } } //echo "
"; print_r($einstellungen['id_daten']); echo ""; // Sprache einstellen $multilanguage = $einstellungen['id_daten'][0]['WERT']; if ( !$multilanguage ) { $multilanguage = "LANG_0,de,deutsch;flag"; } if ( substr_count($multilanguage,"//") > 0 ) { $lang_exploder = "//"; } else {$lang_exploder = "/"; } $multilanguage = explode(";",$multilanguage); $multilanguage_option = $multilanguage[1]; $multilanguage_option = explode(",",$multilanguage_option); $multilanguage_text_size = $multilanguage_option[1]; $multilanguage_option = $multilanguage_option[0]; $multilanguage = $multilanguage[0]; $multilanguage = explode($lang_exploder,$multilanguage); foreach ($multilanguage as $key => $value) { $language_settings = explode(",",$value); $languages[$language_settings[1]] = $language_settings[0]; if ( $language_settings[0] == "LANG_0" and !$standard_language ) { $standard_language = $language_settings[1]; } } $_SESSION[$_SESSION['http_host_extended']]['languages'] = array_flip($languages); //echo $_SERVER['HTTP_ACCEPT_LANGUAGE']; if ( !$_SESSION[$_SESSION['http_host_extended']]['language'] ) { $http_accept_languages = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']); foreach ($http_accept_languages as $key => $value) { $http_accept_language = explode(";",$value); $http_accept_language = $http_accept_language[0]; $http_accept_language = explode("-",$http_accept_language); if ( $http_accept_language[1] ) { $http_accept_language = strtolower($http_accept_language[1]); } else { $http_accept_language = strtolower($http_accept_language[0]); } unset($http_accept_languages[$key]); $http_accept_languages[$http_accept_language] = $languages[$http_accept_language]; } $http_accept_languages = array_intersect($http_accept_languages,$languages); //echo "
"; print_r($http_accept_languages); echo ""; reset($http_accept_languages); if ( !$lang or !array_key_exists($lang,$languages) ) { $lang = key($http_accept_languages); } if ( !$lang ) { $lang = $standard_language; } } if ( !$_SESSION[$_SESSION['http_host_extended']]['language'] ) { $_SESSION[$_SESSION['http_host_extended']]['language'] = 'LANG_0'; $_SESSION[$_SESSION['http_host_extended']]['language_symbol'] = 'de'; } $_SESSION[$_SESSION['http_host_extended']]['HTML_CODE_ALL'] = ""; if ( $lang ) { //if ( !$languages[$lang] ) { //$languages[$lang] = "LANG_0"; //} $_SESSION[$_SESSION['http_host_extended']]['language'] = $languages[$lang]; $_SESSION[$_SESSION['http_host_extended']]['language_symbol'] = $lang; } if ( $_SESSION[$_SESSION['http_host_extended']]['users']['rang'] < 99 ) { //echo "
"; print_r($languages); echo ""; } $responsive_settings_global = $responsive_settings; include("includes/einstellungen_lesen.php"); //echo $powered_by;exit; if ( explode(",",$show_php_errors)[0] ) { error_reporting(E_ALL); if ( explode(",",$show_php_errors)[1] and explode(",",$show_php_errors)[2] ) { error_reporting( ~E_WARNING & ~E_NOTICE ); } if ( explode(",",$show_php_errors)[1] and !explode(",",$show_php_errors)[2] ) { error_reporting( ~E_NOTICE ); } if ( !explode(",",$show_php_errors)[1] and explode(",",$show_php_errors)[2] ) { error_reporting( ~E_WARNING ); } ini_set("display_errors", 1); } //if ( $_SESSION[$_SESSION['http_host_extended']]['users']['rang'] <= 1 ) { //} $_SESSION[$_SESSION['http_host_extended']]['htaccess_add'] = $htaccess_add; // ersetzt durch obenstehende Zeile //echo "
"; print_r( ini_get_all() ); echo ""; //foreach($einstellungen['id_daten'] as $key => $value) { // if ( $einstellungen['id_daten'][$key]['VARIABLE'] == "user_vars" and $einstellungen_desktop['id_daten'][$key]['WERT'] ) { // $einstellungen['id_daten'][$key]['WERT'] = $einstellungen_desktop['id_daten'][$key]['WERT']."//".$einstellungen['id_daten'][$key]['WERT']; // } // if ( $einstellungen['id_daten'][$key]['VARIABLE'] == "style_code" and $einstellungen_desktop['id_daten'][$key]['WERT'] ) { // $einstellungen['id_daten'][$key]['WERT'] = $einstellungen_desktop['id_daten'][$key]['WERT'].$line_feed.$einstellungen['id_daten'][$key]['WERT']; // } // if ($einstellungen['id_daten'][$key]['VARIABLE'] != "" and $einstellungen['id_daten'][$key][$_SESSION[$_SESSION['http_host_extended']]['language']]) { // ${$einstellungen['id_daten'][$key]['VARIABLE']}=$einstellungen['id_daten'][$key][$_SESSION[$_SESSION['http_host_extended']]['language']]; // if ( $einstellungen['id_daten'][$key]['ALL_LANG'] ) { // ${$einstellungen['id_daten'][$key]['VARIABLE']."_all"}['LANG_0'] = $einstellungen['id_daten'][$key]['WERT']; // ${$einstellungen['id_daten'][$key]['VARIABLE']."_all"}['LANG_1'] = $einstellungen['id_daten'][$key]['LANG_1']; // ${$einstellungen['id_daten'][$key]['VARIABLE']."_all"}['LANG_2'] = $einstellungen['id_daten'][$key]['LANG_2']; // ${$einstellungen['id_daten'][$key]['VARIABLE']."_all"}['LANG_3'] = $einstellungen['id_daten'][$key]['LANG_3']; // } // } else { // ${$einstellungen['id_daten'][$key]['VARIABLE']}=$einstellungen['id_daten'][$key]['WERT']; // if ( $einstellungen['id_daten'][$key]['ALL_LANG'] ) { // ${$einstellungen['id_daten'][$key]['VARIABLE']."_all"}['LANG_0'] = $einstellungen['id_daten'][$key]['WERT']; // ${$einstellungen['id_daten'][$key]['VARIABLE']."_all"}['LANG_1'] = $einstellungen['id_daten'][$key]['LANG_1']; // ${$einstellungen['id_daten'][$key]['VARIABLE']."_all"}['LANG_2'] = $einstellungen['id_daten'][$key]['LANG_2']; // ${$einstellungen['id_daten'][$key]['VARIABLE']."_all"}['LANG_3'] = $einstellungen['id_daten'][$key]['LANG_3']; // } // } //} //$needed_values = array("user_vars"); //$fixed_values = array ("responsive_settings"); //foreach($einstellungen_desktop['id_daten'] as $key_set => $value_set) { // if ( in_array($value_set['VARIABLE'],$fixed_values) ) { // ${$value_set['VARIABLE']} = $value_set['WERT']; // } // if ( in_array($value_set['VARIABLE'],$needed_values) and !${$value_set['VARIABLE']} ) { // ${$value_set['VARIABLE']} = $value_set['WERT']; // } //} //$responsive_settings = explode(",",$responsive_settings); //$_SESSION[$_SESSION['http_host_extended']]['responsive']['settings_global'] = $responsive_settings; //if ( !file_exists("daten/menu".$_SESSION[$_SESSION['http_host_extended']]['responsive']['screen'].".oli") or !$responsive_settings[0] or (!$responsive_settings[3] and $_SESSION[$_SESSION['http_host_extended']]['responsive']['screen'] == "_tablet") or (!$responsive_settings[4] and $_SESSION[$_SESSION['http_host_extended']]['responsive']['screen'] == "_mobile") or (!$responsive_settings[4] and $_SESSION[$_SESSION['http_host_extended']]['responsive']['screen'] == "_mobile") ) { // $_SESSION[$_SESSION['http_host_extended']]['responsive']['screen'] = ""; // foreach ( $einstellungen_desktop['id_daten'] as $e_key => $e_value ) { // if ( $einstellungen_desktop['id_daten'][$e_key][$_SESSION[$_SESSION['http_host_extended']]['language']] ) { // ${$einstellungen_desktop['id_daten'][$e_key]['VARIABLE']}=$einstellungen_desktop['id_daten'][$e_key][$_SESSION[$_SESSION['http_host_extended']]['language']]; // } else { // ${$einstellungen_desktop['id_daten'][$e_key]['VARIABLE']}=$einstellungen_desktop['id_daten'][$e_key]['WERT']; // } // } // if (!is_array($responsive_settings)) { // $responsive_settings = explode(",",$responsive_settings); // } //} // Automatisches Backup starten if ( explode(",",$auto_backup)[0] ) { auto_backup($daten_pfad,$datenbank_suffix,explode(",",$auto_backup)[0],""); } if ( $php_max_input_vars ) { $_SESSION[$_SESSION['http_host_extended']]['php_max_input_vars'] = "php_value max_input_vars ".$php_max_input_vars; } else { $_SESSION[$_SESSION['http_host_extended']]['php_max_input_vars'] = ""; } //$responsive_settings = ""; //echo $responsive_settings; if ( $ssl_rewrite ) { $_SESSION[$_SESSION['http_host_extended']]['ssl_rewrite'] = "x"; $_SESSION[$_SESSION['http_host_extended']]['ssl_rewrite_http'] = "https://"; } else { $_SESSION[$_SESSION['http_host_extended']]['ssl_rewrite'] = ""; $_SESSION[$_SESSION['http_host_extended']]['ssl_rewrite_http'] = "http://"; } //echo "
"; print_r($uservars); echo ""; $_SESSION[$_SESSION['http_host_extended']]['www_rewrite'] = $www_rewrite; //$rewrite = "-"; if (!isset ($_SESSION[$_SESSION['http_host_extended']]['users'])) { $_SESSION[$_SESSION['http_host_extended']]['users']['name'] = 'anonym'; $_SESSION[$_SESSION['http_host_extended']]['users']['group_ids'] = 0; $_SESSION[$_SESSION['http_host_extended']]['users']['id'] = 0; $_SESSION[$_SESSION['http_host_extended']]['users']['rang'] = 99; $_SESSION[$_SESSION['http_host_extended']]['users']['rabatt'] = 0; } //if (!isset ($_SESSION[$_SESSION['http_host_extended']]['gruppe'])) {$_SESSION[$_SESSION['http_host_extended']]['gruppe'] = 'j'; } //if (!isset ($_SESSION[$_SESSION['http_host_extended']]['benutzer'])) {$_SESSION[$_SESSION['http_host_extended']]['benutzer'] = 'keiner'; } //if (!isset ($_SESSION[$_SESSION['http_host_extended']]['user_id'])) {$_SESSION[$_SESSION['http_host_extended']]['user_id'] = 0; } // Altes Zählermodul if ( file_exists("includes/counter.php") ) { if ( !$_SESSION[$_SESSION['http_host_extended']]['counting_all'] ) { //include ("includes/counter_all.php"); } if ( $_SESSION[$_SESSION['http_host_extended']]['counting'] == "+" ) { //include ("includes/counter.php"); } if ( !$_SESSION[$_SESSION['http_host_extended']]['counting'] ) { //$_SESSION[$_SESSION['http_host_extended']]['counting'] = "+"; } } //echo "SCREEN: ".$screen; // Neues Zählermodul if ( !$_SESSION[$_SESSION['http_host_extended']]['counting_new'] ) { $_SESSION[$_SESSION['http_host_extended']]['counting_new'] = "none"; } if ( !$screen ) { include ("includes/counter_new.php"); } if ($temp_modul) { $modul=$temp_modul; } if (!isset($log)) { $log=''; } //if (!isset ($menu)) { $menu=0; } if (!isset ($submenu)) $submenu=""; //if (!isset ($druck)) $druck=""; if (!isset ($page)) { $page=""; } if (!isset ($action)) { $action=""; } if (!isset ($edit)) { $edit=""; } if (!isset ($rubrik)) { $rubrik=""; } if (!isset($seminar)) { $seminar=""; } if (!isset($id)) { $id=""; } if (!isset($subname)) { $subname=""; } if (!isset($area)) { $area=""; } //if (!isset( $_SESSION[$_SESSION['http_host_extended']]['menu_aktiv'])) $_SESSION[$_SESSION['http_host_extended']]['menu_aktiv'] = 1; // Passwort abfragen if (isset($passwort)) { include ($includes."passwort.php"); } // Sicherheitscheck if ( $action and $action!="newsletter-abo" and $action!="kalender-reservierung" and $action!="shop-reservierung" and $action!="shop-bestellung" and $action!="shop-kundendaten" and $action!="shop-logout" and $action!="shop-status" and $action!="shop-remove" and $action!="shop-option" and $action!="shop-option_termin" and $action!="shop-option_text" and $action!="shop-add" and $action!="shop-edit_artikel" and substr($action,0,12) != "shop-anfrage" and $action!="system-suche" and $action!="download-view" and $action!="download-play" and $action!="download-stop" and $action!="system-sendmail" and $action!="shop-paypal_true" and $action!="shop-paypal_false" and $action!="shop-view_PDF" and $_SESSION[$_SESSION['http_host_extended']]['users']['name'] == "anonym" ) { $modul = "fehler"; //echo $modul; $fehler_nr = 1; unset($action); unset($open); unset($id); unset($prev_id); unset($_SESSION[$_SESSION['http_host_extended']]['menu_aktiv']); } //$menu=reader('menu'); //include($includes."security-check.php"); //unset($menu); $mainpage_admin_symbol = explode(",",$mainpage_rewrite)[1]; if ( mb_strtolower((string)$mainpage_admin_symbol) == "x" or !$mainpage_admin_symbol ) { $mainpage_admin_symbol = 2; } $mainpage_admin_symbol_plus = $mainpage_admin_symbol; $mainpage_rewrite = explode(",",(string)$mainpage_rewrite)[0]; // Daten speichern if ($action and $action!="edit" and !$update_id ) { include($includes."action.php"); } $top_id = array(); // Warenkorb aktualisieren, wenn vorhanden if ( $_SESSION[$_SESSION['http_host_extended']]['shop'][$_SESSION[$_SESSION['http_host_extended']]['shop']['current']]['inhalt'] and $_SESSION[$_SESSION['http_host_extended']]['shop']['current'] == "standardshop" ) { $max_time = $_SESSION[$_SESSION['http_host_extended']]['shop'][$_SESSION[$_SESSION['http_host_extended']]['shop']['current']]['warenkorb_ttl']['WERT']; $this_time = time(); if ( $max_time == "session" ) { $max_time = ini_get('session.gc_maxlifetime'); } if ( !$max_time ) { $max_time = 86400; } $count = 0; foreach( $_SESSION[$_SESSION['http_host_extended']]['shop'][$_SESSION[$_SESSION['http_host_extended']]['shop']['current']]['inhalt'] as $key => $value ) { if ( $value['timestamp_umlauf'] + $max_time < time() and $value['timestamp_umlauf'] ) { unset( $_SESSION[$_SESSION['http_host_extended']]['shop'][$_SESSION[$_SESSION['http_host_extended']]['shop']['current']]['inhalt'][$key] ); } else { $timestamp_umlauf = $_SESSION[$_SESSION['http_host_extended']]['shop'][$_SESSION[$_SESSION['http_host_extended']]['shop']['current']]['inhalt'][$key]['timestamp_umlauf']; $warenkorb_id = $_SESSION[$_SESSION['http_host_extended']]['shop'][$_SESSION[$_SESSION['http_host_extended']]['shop']['current']]['inhalt'][$key]['warenkorb_id']; $zahl = $_SESSION[$_SESSION['http_host_extended']]['shop'][$_SESSION[$_SESSION['http_host_extended']]['shop']['current']]['inhalt'][$key]['zahl']; $warenkorb_this = explode("-",$key); if ( $warenkorb_this[0] == "bilddatenbank" and !$bilder ) { $bilder = reader($warenkorb_this[0]); $typ = "bilder"; } if ( $warenkorb_this[0] == "textdatenbank" and !$texte ) { $texte = reader($warenkorb_this[0]); $typ = "texte"; } if ( $warenkorb_this[0] == "galerie" and !$galerie ) { $galerie = reader($warenkorb_this[0]); $typ = "galerie"; } $shop_content = ${$typ}['id_daten'][$warenkorb_this[1]]['SHOP_CONTENT']; $shop_content = explode("//",base64_decode($shop_content)); $shopping['umlauf'] = explode("//",base64_decode($shop_content[5])); $shopping['umlauf'][$warenkorb_this[2]] = explode("-",(string)$shopping['umlauf'][$warenkorb_this[2]]); foreach ( $shopping['umlauf'][$warenkorb_this[2]] as $option_key => $option_value ) { $shopping['umlauf'][$warenkorb_this[2]][$option_key] = explode(",",$option_value); if ( $shopping['umlauf'][$warenkorb_this[2]][$option_key][0] == $timestamp_umlauf and $shopping['umlauf'][$warenkorb_this[2]][$option_key][2] == $warenkorb_id ) { $shopping['umlauf'][$warenkorb_this[2]][$option_key][0] = $this_time; } $shopping['umlauf'][$warenkorb_this[2]][$option_key] = implode(",",$shopping['umlauf'][$warenkorb_this[2]][$option_key]); } $shopping['umlauf'][$warenkorb_this[2]] = implode("-",$shopping['umlauf'][$warenkorb_this[2]]); $shopping['umlauf'] = base64_encode(implode("//",$shopping['umlauf'])); $shop_content[5] = $shopping['umlauf']; $shop_content = base64_encode(implode("//",$shop_content)); ${$typ}['id_daten'][$warenkorb_this[1]]['SHOP_CONTENT'] = $shop_content; $_SESSION[$_SESSION['http_host_extended']]['shop'][$_SESSION[$_SESSION['http_host_extended']]['shop']['current']]['inhalt'][$key]['timestamp_umlauf'] = $this_time; } } if ( $bilder ) { $daten = $bilder; include("includes/data-writer-id.php"); } if ( $texte ) { $daten = $texte; include("includes/data-writer-id.php"); } if ( $galerie ) { $daten = $galerie; include("includes/data-writer-id.php"); } } // BENUTZERDEFINIERTE VARIABLEN if ( $user_vars ) { if ( !is_array($uservars) ) { $uservars = array(); } $user_vars = explode("//",str_replace($line_feed,"",$user_vars)); foreach ( $user_vars as $user_var_key => $user_var_value ) { $user_var_value = explode("=",str_replace($line_feed,"",$user_var_value)); $user_var_value[1] = strtr($user_var_value[1],$uservars); if ( substr($user_var_value[1],0,1) == "[" and substr($user_var_value[1],-1,1) == "]" ) { eval("\$user_var_value[1]=".substr($user_var_value[1],1,strlen($user_var_value[1])-2).";"); } $uservars["{".$user_var_value[0]."}"] = $user_var_value[1]; } //echo "
"; print_r($uservars); echo ""; //echo "
"; print_r($fixed_values); echo ""; foreach($einstellungen['id_daten'] as $key_set => $value_set) { if ( !in_array($value_set['VARIABLE'],$fixed_values) and !is_array(${$einstellungen['id_daten'][$key_set]['VARIABLE']}) ) { ${$einstellungen['id_daten'][$key_set]['VARIABLE']} = strtr(${$einstellungen['id_daten'][$key_set]['VARIABLE']},$uservars); //echo ${$einstellungen['id_daten'][$key_set]['VARIABLE']}."
"; print_r($u_rang); echo ""; //if ( in_array("1",$groups) or in_array("2",$groups) ) { if ( count($zugriffsgruppen_lesen) > 0 and $u_rang <=3 and $value['STATUS'] ) { $htpasswd[$key] = $value['NAME'].":".$value['PASSWORT']; } } $htpasswd = implode($lf,$htpasswd); $file_h = "daten/.htpasswd"; $file_h=fopen($file_h,'wb'); fwrite($file_h,$htpasswd); fclose($file_h); $php_self = $_SERVER['PHP_SELF']; $php_self = explode("/",$php_self); unset ($php_self[(count($php_self)-1)]); if ( !$php_self[0] ) { unset( $php_self[0] ); } $php_self = implode("/",$php_self); if ( $php_self ) { $php_self.= "/"; } $document_root = $_SERVER['DOCUMENT_ROOT']; $document_root = explode("/",$document_root); if ( !$document_root[(count($document_root)-1)] ) { unset( $document_root[(count($document_root)-1)] ); } $document_root = implode("/",$document_root); if ( $document_root ) { $document_root.= "/"; } //echo $_SESSION['http_host_extended']." / ".$_SESSION[$_SESSION['http_host_extended']]['max_input_vars']; //$admin_access = "RewriteEngine off".$lf.$lf."AuthType Basic".$lf."AuthName \"easyCMS - Admin\"".$lf."AuthUserFile ".$document_root.$php_self."daten/.htpasswd".$lf."require valid-user".$lf.$_SESSION[$_SESSION['http_host_extended']]['php_max_input_vars']; $admin_access = "RewriteEngine off".$lf.$lf."AuthType Basic".$lf."AuthName \"easyCMS - Admin\"".$lf."AuthUserFile ".$document_root.$php_self."daten/.htpasswd".$lf."require valid-user"; $file_h=fopen("data-editor/.htaccess",'wb'); fwrite($file_h,$admin_access); fclose($file_h); //echo $admin_access; } if ( ( $_SESSION[$_SESSION['http_host_extended']]['responsive']['temp'] or $_SESSION[$_SESSION['http_host_extended']]['responsive']['lock'] ) and $_SESSION[$_SESSION['http_host_extended']]['users']['rang'] <= 2 ) { if ( $_SESSION[$_SESSION['http_host_extended']]['responsive']['setup'] == 1 ) { $screen = "_desktop"; } if ( $_SESSION[$_SESSION['http_host_extended']]['responsive']['setup'] == 2 ) { $screen = "_tablet"; } if ( $_SESSION[$_SESSION['http_host_extended']]['responsive']['setup'] == 3 ) { $screen = "_mobile"; } if ( $_SESSION[$_SESSION['http_host_extended']]['responsive']['setup'] == 4 ) { $screen = "_tablet_portrait"; } if ( $screen ) { $_SESSION[$_SESSION['http_host_extended']]['responsive']['screen'] = $screen; if ( $screen == "_desktop" ) { $_SESSION[$_SESSION['http_host_extended']]['responsive']['screen'] = ""; } } } $html_css_script = explode(",",$html_css_script); // Menüstruktur aufbauen if ($modul == "fehler") { unset($prev); } include($includes."menu.php"); if ($hintergrund_temp) { $hintergrundfarbe = ""; } if ($modul == "fehler") { $_SESSION[$_SESSION['http_host_extended']]['menu_aktiv']['LAYOUT'] = $standardwerte; } if ($menu_position == "head" and $head_content and $action != "edit" ) { $menu_head = $menu_show; $menu_show = ""; } if ($menu_position == "head" ) { $menu_position = ""; } // Head und Styles einfügen if ( !$updatefile ) { include($includes."head_01_main.php"); include($includes."head_02_header.php"); include($includes."head_03_fonts.php"); include($includes."head_04_css.php"); include($includes."head_05_close.php"); } //echo "
"; print_r($updatefile); echo ""; //echo $_SESSION['http_host_extended']; // Autoupdate $autoupdate = explode(",",$autoupdate); if ( !trim($autoupdate[1]) ) { $autoupdate[1] = 0; } if ( $autoupdate[2] == "" ) { $autoupdate[2] = 1; } if ( $_SESSION[$_SESSION['http_host_extended']]['users']['rang'] == 1 and $autoupdate[0] ) { include_once("includes/autoupdate.php"); //echo ini_get('allow_url_include'); //if ( ini_get('allow_url_include') == 0 or ini_get('allow_url_include') == "off" or ini_get('allow_url_include') == "Off" or ini_get('allow_url_include') == "" ) { //include_once("includes/autoupdate_check_global.php"); //} else { //include_once("includes/autoupdate_check_intern.php"); //} } // easyCMS Registrierung prüfen if ( URL_exists("http://register.quadrart.com/register.txt") ) { include_once("includes/register.php"); } $logo_position = explode("_",$logo_position); if( $seitenrand ) { if ( $seitenrahmen ) { $seitenrahmen = explode(",",$seitenrahmen); } else { $seitenrahmen = array(); } if ( count($seitenrahmen) > 1 ) { $border = "border-top:".$seitenrahmen[0]."px solid ".$rahmenfarbton.";"; if($seitenrahmen[1]) { $border.= "border-right:".$seitenrahmen[1]."px solid ".$rahmenfarbton.";"; } if($seitenrahmen[2] and ($copyright_position != "bottom_border_center" or $_SESSION[$_SESSION['http_host_extended']]['users']['rang'] <= 2) ) { $border.= "border-bottom:".$seitenrahmen[2]."px solid ".$rahmenfarbton.";"; } if($seitenrahmen[3]) { $border.= "border-left:".$seitenrahmen[3]."px solid ".$rahmenfarbton.";"; } } else { $border = "border:".$seitenrahmen[0]."px solid ".$rahmenfarbton; $seitenrahmen[1] = $seitenrahmen[0]; $seitenrahmen[2] = $seitenrahmen[0]; $seitenrahmen[3] = $seitenrahmen[0]; } //echo $menu_background_color; $seitenrand_explode = explode(",",$seitenrand); for ( $x=0; $x<4; $x++ ) { if ($seitenrand_explode[$x] == "" and is_numeric($seitenrand_explode[0]) ) { $seitenrand_explode[$x] = $seitenrand_explode[0]; } } if ( $seitenrand_explode[1] or $seitenrand_explode[3] ) { $width = $gesamtbreite_voll = $gesamtbreite; $bgcolor = ""; } else { if ( is_numeric($gesamtbreite) ) { $gesamtbreite_voll = $gesamtbreite; } if ( $gesamtbreite_voll and $v_v_festbreite ) { $gesamtbreite_voll = $gesamtbreite_voll-$v_v_festbreite; } $width = "100%"; if ( $seitenrand == "0,0,0,0" ) { $bgcolor = "bgcolor='$hintergrundfarbe'"; } } //echo "
"; print_r($seitenrand_explode); echo ""; } else { $width = "100%"; $copy_breite = $width; $rahmenstyle = ""; if ( is_numeric($gesamtbreite) ) { $gesamtbreite_voll = $gesamtbreite; } else { $gesamtbreite_voll = $gesamtbreite; } } if ( $menu_color_fade_percent != $seitenfarbton and !$menu_position ) { if ( $menu_color_top ) { $menu_background_color_all = $menu_color_top; } if ( $menu_color_top == "x" ) { $menu_background_color_all = $hintergrundfarbe; } $rahmenstyle = $border; $rahmenstyle_plus = "padding:".$seitenrand_explode[0]."px ".$seitenrand_explode[1]."px ".$seitenrand_explode[2]."px ".$seitenrand_explode[3]."px; "; } else { if ( $menu_color_top ) { $menu_background_color_all = $menu_color_top; } if ( $menu_color_top == "x" ) { $menu_background_color_all = $farben_fein[$seitenfarbton]; } $rahmenstyle_plus = "padding:".$seitenrand_explode[0]."px ".$seitenrand_explode[1]."px ".$seitenrand_explode[2]."px ".$seitenrand_explode[3]."px; "; //$rahmenstyle = "margin:".$seitenrand."px"; } if ( !$seitenrand and $menu_color_mode != "trans") { if (is_numeric($seitenfarbton) ) { $logo_background_color = color_tune($hauptfarbe,$seitenfarbton); } else { $logo_background_color = $seitenfarbton; } } if ( substr_count($menu_color_fade_percent,"#") > 0 ) { $logo_background_color = $menu_color_fade_percent; } if ( $seitenrahmen and $menu_style == "v_v" and !$seitenrand) { $seitenrahmen = explode(",",$seitenrahmen); $trennlinienhoehe = 10; for ( $x=0; $x<4; $x++ ) { if (!$seitenrahmen[$x]) { $seitenrahmen[$x] = $seitenrahmen[0]; } } $rahmenstyle_04.= "border-left:".$seitenrahmen[3]."px solid ".$rahmenfarbton.";"; $rahmenstyle_04.= "border-top:".$seitenrahmen[0]."px solid ".$rahmenfarbton.";"; } if ( ( $menu_color_fade_percent == $seitenfarbton or $menu_position == "outside") and $seitenrahmen and $seitenrand) { $rahmenstyle_01.= "border-right:".$seitenrahmen[1]."px solid ".$rahmenfarbton.";"; $rahmenstyle_01.= "border-left:".$seitenrahmen[3]."px solid ".$rahmenfarbton.";"; if ( $menu_color_mode != "fade" ) { $rahmenstyle_01.= "border-top:".$seitenrahmen[0]."px solid ".$rahmenfarbton.";"; } //$rahmenstyle_01.= "border-bottom:".$seitenrahmen[2]."px solid ".$rahmenfarbton.";"; $rahmenstyle_02 = "border-right:".$seitenrahmen[1]."px solid ".$rahmenfarbton.";"; $rahmenstyle_02.= "border-left:".$seitenrahmen[3]."px solid ".$rahmenfarbton.";"; $rahmenstyle_02.= "border-bottom:".$seitenrahmen[2]."px solid ".$rahmenfarbton.";"; if ( !$menu_show ) { $rahmenstyle_02.= "border-top:".$seitenrahmen[0]."px solid ".$rahmenfarbton.";"; } $rahmenstyle_03 = "border-bottom:".$seitenrahmen[2]."px solid ".$rahmenfarbton.";"; $rahmenstyle_03.= "border-left:".$seitenrahmen[3]."px solid ".$rahmenfarbton.";"; $rahmenstyle_04 = "border-top:".$seitenrahmen[0]."px solid ".$rahmenfarbton.";"; $rahmenstyle_04.= "border-right:".$seitenrahmen[1]."px solid ".$rahmenfarbton.";"; $rahmenstyle_04.= "border-left:".$seitenrahmen[3]."px solid ".$rahmenfarbton.";"; $rahmenstyle_04.= "border-bottom:".$seitenrahmen[2]."px solid ".$rahmenfarbton.";"; } if ( $menu_position == "outside" ) { $rahmenstyle_01 = ""; $rahmenstyle_01 = "border-bottom:".$seitenrahmen[0]."px solid ".$rahmenfarbton.";"; //$rahmenstyle_01.= "border-left:".$seitenrahmen[3]."px solid ".$rahmenfarbton.";"; //$rahmenstyle_01.= "border-top:".$seitenrahmen[0]."px solid ".$rahmenfarbton.";"; } // Symbolleiste vervollständigen //if ( $menu_style != "v_v" and $symbol_v_position == "bottom" ) { $rahmenstyle_symbol = $rahmenstyle_02; } if ( $symbol_leiste ) { $symbol_leiste = "
"; print_r($galerie); echo ""; if ( $head_content and $action != "edit" ) { $head_content = explode("//",$head_content); $head_id = $head_content[0]; $head_size = $head_content[1]; $head_margin = $head_content[2]; $head_trenner = $head_content[3]; $head_position = $head_content[4]; $head_hide = $head_content[5]; $head_subtitle = $head_content[6]; if ( !$head_hide or !$bildfile ) { $head_margin = explode(",",$head_margin); $head_margin_top = $head_margin[0]; $head_margin_right = $head_margin[1]; $head_margin_bottom = $head_margin[2]; $head_margin_left = $head_margin[3]; if (!$bilder) { $bilder = reader("bilddatenbank");// ---- werden jetzt in menu.php gelesen } $fotograf = $bilder['id_daten'][$head_id]['FOTOGRAF']; $head_content = $bilder['id_daten'][$head_id]['NAME']; $suffix = substr($head_content,strrpos($head_content,".")+1); $head_bild = resize_picture($head_content,"bilder/",$picture_quality,$head_size,"y",$suffix,$wasserzeichen,$fotograf); if ( $head_position != "right" and $head_position != "left" ) { $rowspan_v_v = "rowspan='2'"; $head_size_all = getimagesize("bilder/".$head_content); $head_height = round(( intval($head_size) * intval($head_size_all[1]) / intval($head_size_all[0]) ) + intval($head_margin_top) + intval($head_margin_bottom)); } $head_content = ""; if ( trim($head_trenner) ) { $head_content.= "

|
|