include("/var/www/vhosts/melbar.eu/melbar/Djin/session_.php"); include("/var/www/vhosts/melbar.eu/globalsources/define.php"); $GET_KEYS=array_keys($_GET); $ALLOWED_VALUES=array("intern","Intern","Messer","Warenkorb"); $alt=array('Ä','ä','Ü','ü','Ö','ö'); $neu=array('Ae','ae','Ue','ue','Oe','oe'); if(!in_array($GET_KEYS[0],$ALLOWED_VALUES) AND !empty($_GET)){ header("Location: http://www.profi-messer.de/html/ERROR.html?ERROR=404"); } include("/var/www/vhosts/melbar.eu/profi-messer/php/session_.php"); include("/var/www/vhosts/melbar.eu/profi-messer/php/config.cfg.php"); if(!isset($_SESSION['MenueItemsH'])){ include($incl_pfad."php/menue.php"); $_SESSION['MenueItemsH']=$MenueItemListH; $_SESSION['MenueItemsT']=$MenueItemListT; } if(!isset($_SESSION[$preview])){ $listingH=file($incl_pfad."data/artListH.dat"); $listingT=file($incl_pfad."data/artListT.dat"); $listing=array_merge($listingH,$listingT); foreach( $listing as $line){ $line=explode(":",$line); $_SESSION[$line[0]][$line[1]]['thumb']=$line[2]; $_SESSION[$line[0]][$line[1]]['image']=$line[3]; $_SESSION[$line[0]][$line[1]]['text']=$line[4]; } } if(isset($_GET['Warenkorb'])){ $_SESSION['Warenkorb']=1; session_start(); } if($_SESSION['Warenkorb']==1){ $_GET['Warenkorb']=1; } if($_GET){ foreach($_GET as $key => $val){ $$key=$val; } } if($_POST){ foreach($_POST as $key => $val){ $$key=$val; } } include($incl_pfad."/php/count.php"); include('/var/www/vhosts/melbar.eu/globalsources/func_im_size.php'); //include('/var/www/vhosts/melbar.eu/melbar/funktionen/get_bot.php'); include($incl_pfad."/php/con_02.inc.php"); $metaKw='Messer, shop, Messer Onlineshop, Kampfmesser, Springmesser, Einhandmesser, Outddormesser, Jagdmesser, Survivalmesser, Taktische Messer, Markenmesser,'; $metaTitle="Messer Shop"; $metaDesc="Messer Shop. Profi Messer Messer Onlineshop... "; if(isset($preview)){ if($preview!='Muela') $preview=str_replace($neu,$alt,$preview); //----y // while($datei = $verzeichnis->read()) {******* if(is_array($_SESSION[$preview])) foreach($_SESSION[$preview] as $artNr => $previewLine){ // $artC=$previewLine['artNr']; $artC=$artNr; $tempL=@file($previewLine[$artNr]['text']); $artI=trim($tempL[0]); // erstellt artikel array $previewList[$preview][$artC]['artNr']=trim($artC); $previewList[$preview][$artC]['thumb']="https://".$_SESSION[$preview][$artNr]['thumb']; $previewList[$preview][$artC]['image']="https://".$_SESSION[$preview][$artNr]['image']; $previewList[$preview][$artC]['text'] =$_SESSION[$preview][$artNr]['text']; //echo '
TXT :: ',var_dump($_SESSION[$preview][$artNr]['text']),''; //prüft, ob preview = gruppe im array existiert if(!array_key_exists($preview,$previewList)){ $_GET['Intern']='errorGruppe'; unset($_GET['Messer']); unset($_GET['detail']); $textURL=$incl_pfad."/content/html/errorGruppe.inc.html"; unset($preview); } } } if(isset($_GET['detail'])){ // prüft, ob detail im artikle array existiert if(!$previewList[$preview][$_GET['detail']]) { unset($_GET['Messer']); unset($_GET['detail']); unset($preview); $textURL=$incl_pfad."/content/html/errorDetail.inc.html"; } } if(isset($preview)){ // generiert detail anzeige if(isset($_GET['detail'])){ $detailTextURL=trim($previewList[$preview][$_GET['detail']]['text']); //.$_GET['detail'].".txt"; //einlesen artikle beschreibung $artC=$previewList[$preview][$_GET['detail']]['artNr']; $uri=$_SERVER['REQUEST_URI']; $locationtxt=$previewList[$preview][$_GET['detail']]['text']; $locationth=$previewList[$preview][$_GET['detail']]['thumb']; $locationimg=$previewList[$preview][$_GET['detail']]['image']; include($incl_pfad."php/sql_path.php"); if(!@fopen($detailTextURL,"r")) $detailFile=array("Für Artikel ".$_GET['detail']," zur Zeit keine Informationen zur Verfügung "); $detailFile=@file($detailTextURL); $metaTitle=trim(strip_tags($detailFile[0]))." ".$_GET['Messer']; $metaKw=$metaTitle.",".$metaKw; $detailFile[0]="
OU: ',var_dump( $orderURL),''; ob_start(); include($orderURL); $orderContent=ob_get_contents(); ob_end_clean(); } $previewContantText=str_replace("<*hl*>",$previewShow,$previewContantText); $resource=implode(" ",@file('content/html/index.inc.html')); include($incl_pfad."/php/con_02.inc.php"); // austauschen META Informationen $resource=str_replace('<*metatitle*>',$metaTitle,$resource); $resource=str_replace('<*metadesc*>',$metaDesc,$resource); $resource=str_replace('<*metakw*>',$metaKw,$resource); if(empty($QUERY_STRING)){ $sub_STRING='?Warenkorb=1'; }elseif(strstr($QUERY_STRING,'Warenkorb')){ $sub_STRING='?'.$QUERY_STRING; }else{ $sub_STRING='?'.$QUERY_STRING.'&Warenkorb=1'; } // austauschen inhalt $resource=str_replace('<*preview*>',$previewContent,$resource); $resource=str_replace('<*image*>',$detailImage,$resource); $resource=str_replace('<*text*>',$detailText,$resource); $resource=str_replace('<*welcome*>',$welcom,$resource); $resource=str_replace('<*previewTextContant*>',$previewContantText,$resource); $resource=str_replace('<*referer*>',$HTTP_REFERER,$resource); $resource=str_replace('<*order*>',$orderContent,$resource); $resource=str_replace('<*wki*>',$sub_STRING,$resource); $resource=str_replace('<*menueH*>',$_SESSION['MenueItemsH'],$resource); $resource=str_replace('<*menueT*>',$_SESSION['MenueItemsT'],$resource); $resource=str_replace('<*css*>',$css,$resource); echo $resource; ?>