//echo '
GET : ',var_dump($_GET ),'
';
session_start();
include('/var/www/vhosts/melbar.eu/gewandung-grosshandel/content/config.inc.php');
include(INC_SLQ_CONNECT);
if($_POST['destroyButton']=="Abmelden" OR $_GET['clearUser']==1){
unset($_POST);
unset($_SESSION['logDATA']);
}
include(_ROOT.'content/shop/php/function.lib.php');
include(_ROOT.'content/shop/php/menuebuilder.php');
include(_ROOT.'content/php/getmetadatas.php');
// include('pregtest.php');
include(_ROOT.'content/shop/php/pregtest.php');
IF($_GET['subgroup']){
$_GROUP=trim($_GET['subgroup']);
$_HGROUP=trim($_GET['group']);
$_CLGROUP=trim($_GET['subgroup']);
$_CLHGROUP=trim($_GET['group']);
$_PRGROUP=trim(RVURL($_GET['subgroup']));
$_PRHGROUP=trim(RVURL($_GET['group']));
$selecter_contentswitch=$iselecter[RVURL($_HGROUP)][$_PRGROUP];
}elseif($_GET['group']){
$_GROUP=trim($_GET['group']);
$_CLGROUP=trim($_GET['group']);
$_PRGROUP=trim(RVURL($_GET['group']));
$selecter_contentswitch=$iselecter[$_PRGROUP][''];
}
IF(isset($_PRHGROUP)){
$_HYSTACK=implode(",",get_sub_cat(_START, $controlcats, $_CNID));
global $controlcats;
if(!$selecter[$_PRHGROUP]){
$errorM.="
ERROR 404 ! :: 1
Der angeforderte Inhalt existiert nicht.
";
}
}
IF(!empty($_GROUP)){
$_HYSTACK=implode(",",get_sub_cat(_START, $controlcats, $_CNID));
if(!$selecter[$_PRGROUP] AND $_GROUP!='Shop'){
$errorM.="
ERROR 404 ! :: 2
Der angeforderte Inhalt existiert nicht.
";
}
}
echo ' ::IN 11::
';
if(!empty($_GET['page']) AND !is_numeric($_GET['page'])){
$errorM.="
ERROR 404 !:: 3
Der angeforderte Inhalt / die angeforderte Seite / existiert leider nicht.
";
}else{
if(!empty($_GET['page'])){
$_SESSION['lastpage']=trim($_GET['page']);
$_PAGE=trim($_GET['page']);
}else{
$_SESSION['lastpage']=1;
}
}
echo ' ::IN 12::
';
$metatitle=$meta_title;
$metadesc=$meta_desc;
foreach($menuegroups AS $item => $nr){
$metakw.=$item;
}
$metakw.="";
if(!empty($_GROUP) AND $_GROUP!='Shop'){
echo ' ::IN 13::
';
$contentswitch=RVURL($_GROUP);
//echo 'match',var_dump( $contentswitch ),'
';
if(!empty($selecter_contentswitch) OR !empty($_GET['searchvalue']) ){
include(_ROOT."content/php/keywordsearch.php");
$group=$_GROUP;
if(isset($_PRHGROUP)){
$metatitle=$contentswitch." ".$_PRHGROUP."-Gewandungen";
// $metadesc=$_PRHGROUP." - ".$contentswitch.' | Große Auswahl an '.$contentswitch.' ';
$metadesc=$_PRHGROUP." - ".$contentswitch." - ".$meta_desc;
}else{
$metatitle=$contentswitch.'-Gewandungen | Gewandung-Grosshandel';
// $metadesc=$contentswitch.' | Große Auswahl an '.$contentswitch.' ';
$metadesc=$contentswitch." - ".$meta_desc;
}
if(!empty($_PAGE)){
$metadesc=$contentswitch.' Seite '.$_PAGE.' | '.$contentswitch.' günstig kaufen im Grosshandels-Shop für Mittelalterkleidung';
}else{
$metadesc=$contentswitch.' Seite '.$_PAGE.' | '.$contentswitch.' günstig kaufen im Grosshandels-Shop für Gewandung';
}
$metakw=$_PRHGROUP.",".$contentswitch.' ';
}else{
$errorM.="
Der angeforderte Inhalt existiert leider nicht. [4]
";
$error.="SP0";
}
}elseif($_GROUP=="Shop"){
if(!$allowShopcontent[$_GET['article']]){
$errorM.="
ERROR 404 : S1
Der angeforderte Inhalt exisitert nicht.
";
}else{
$_ARTICLE=trim($_GET['article']);
$shopswitch=$allowShopcontent[$_ARTICLE];
$metatitle=$_ARTICLE." von "._DOMAIN;
}
}
if(!empty($_GET['detail']) AND empty($errorM)){
include(_ROOT.'content/shop/php/getdetail.php');
if(!empty($detail)){
$metatitle=$detail['info']['title']. " günstig kaufen | ".$_PRHGROUP."-Gewandungen - ".$contentswitch." ";
$metadesc=substr(str_replace("\n"," ",$detail['info']['description']),0,120)." ... kaufen im Shop für ".$contentswitch;
$metakw=$contentswitch.",".$detail['info']['title'].", ";
$_DETAIL=$_GET['detail'];
}else{
$errorM.="
Error 404 ![D]
Der angeforderte Artikel existiert nicht (mehr).
Bitte versuchen Sie es über die Suche.
Vielen Dank.
";
}
}
//#### notwendig? ########
if(!empty($_PAGE)){
$page=trim($_PAGE);
$metatitle=$metatitle." | Seite : ".$page;
}else{
$page=1;
}
if(!empty($_GET['detail']) AND !empty($_GET['order'])){
// $canonical="";
$canonical="
";
}else{
$canonical="";
}
if(!isset($_SESSION['user'])){
session_start();
$_SESSION['user']=session_id();
}
if($_GET['article']=="Neuheiten" OR $_GET['article']=="Sonderpreise" OR isset($_POST['searchbutton'])){
if(empty($_PAGE)){
$_PAGE=1;
}
}
if(isset($_GET['content'])){
include(_ROOT.'content/php/getmetadatas.php');
if(!isset($_GET['faqnr'])){
$metatitle =$metadata[$_GET['content']];
$metadesc =$metadata[$_GET['content']];
$metakw =str_replace(" ",",",$metadata[$_GET['content']]);
}
}
if(empty($_GROUP) AND empty($_HGROUP)){
$metakw=$meta_kw;
}
$robotsnoindex=array("impressum","kontakt","datenschutz","disclaimer","copyrights","dankeC","mein-konto","login");
if(isset($error) OR isset($errorM)){
header("HTTP/1.1 404 Not Found");
$metarobots='noindex,nofollow';
}elseif(!empty($_GET['order']) OR !empty($_GET['intern']) OR !empty($_GET['showImage'])){
$metarobots='FOLLOW,NOINDEX';
}elseif(in_array($_GET['content'],$robotsnoindex)){
$metarobots='noindex,follow';
}else{
$metarobots='index,follow';
}
$headimage="
";
$divid="";
$headerlink=_DOMAIN."/";
$sitelink=_DOMAIN."/";
//sitelink aufbauen
?>
" />
if(isset($_GET['intern']) OR isset($_GET['content'])){
echo '
';
}
?>
//#############prüfen wozu?###########
if(isset($_GET['detail'])){
$subsitelink=$sitelink.$_GET['group']."-Gewandung/".$_GET['subgroup']."/";
$gobacklink="Sie sind hier :
Startseite »
".$_PRHGROUP."-Gewandung »
".$contentswitch.'';
}elseif(isset($_GET['subgroup'])){
$gobacklink="Sie sind hier :
Startseite »
".$_PRHGROUP."-Gewandung »".$contentswitch;
}elseif(isset($_GET['content']) ){
$printContent=$_GET['content'];
$printContent[0]=strtoupper($printContent[0]);
$gobacklink="Sie sind hier :
Startseite »".$printContent;
}elseif(isset($_GET['intern'])){
$printContent=$_GET['intern'];
$printContent[0]=strtoupper($printContent[0]);
$gobacklink="Sie sind hier :
Startseite »".$printContent;
}elseif(isset($_GET['group'])){
$gobacklink="Sie sind hier:
Startseite »".$contentswitch."-Gewandung";
}else{
$gobacklink="Sie sind hier: Startseite";
}
if(!empty($_GROUP) AND !empty($_GET['detail']) ){
if(!empty($_SESSION['lastpage'])){
$pp=$_SESSION['lastpage'];
}else{
$pp=1;
}
}
echo "
".$gobacklink."
";
?>
include(_ROOT.'content/php/teaser.php');
//echo $content;
//############contentcontrol ########
/* if(isset($_GET['intern'])){
include('content/php/order_content_control.php');
}else
*/
if(isset($_GET['content'])){
include('content/php/order_content_control.php');
include('content/php/contentcontrol.php');
}else{
include('content/php/order_content_control.php');
include(_ROOT."content/shop/php/shop_content_control.php");
}
?>
$fblurl=urlencode("https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
$gplus0="
";
//include(_ROOT.'content/php/sozialbookmarks.php');
$gplus0.=$socialbooks;
$gplus0.="
";
echo $gplus0;
/*
if(isset($_GET['showImage']) AND !empty($_GET['showImage'])){
include(_ROOT.'content/shop/php/showImage.php');
}*/
include("/var/www/vhosts/melbar.eu/melbar/count/count.php");
?>
//echo '',var_dump($_GET),'
';
//echo '',var_dump($_SESSION),'
';
//echo 'D: ',var_dump($detail),'
';
//echo 'DQ: ',var_dump($detailquery),'
';
//echo 'PQ: ',var_dump($preisquery),'
';
//echo 'LQ: ',var_dump($locationquery),'
';
//echo 'SQ: ',var_dump($sizequery),'
';
?>