Blame | Letzte Änderung | Log anzeigen | RSS feed
<?function getContent(){$keys=array_keys($_GET);if (count($keys) == 0){$keys=array('');}foreach($keys as $key){/*Diese Schleife wird nach dem ersten Durchlauf unterbrochen.PHPSESSID als erstes von mehreren wird �bergangen.PHPSESSID als einziges wird als aktion gewertet.Sonst k�nnten zwei oder mehrer Content-Inhalte ausgegeben werden.*/if (($key=="PHPSESSID") && (count($keys) > 1)){continue;}switch($key){case "quickSearch":// echo "<!-- quickSearch -->";// include("includes/content/quickSearch.php");//break;case "search"://echo "<!-- search -->";include("module/shop/includes/content/search.php");break;case "basketItemRemove":case "confirm":case "basket"://echo "<!-- basket -->";include("module/shop/includes/content/basket.php");break;case "buy"://echo "<!-- buy -->";include("module/shop/includes/content/buy.php");break;case "item":if ($_GET['buy'] == "true"){$_GET['file']="basket.php";}else{//echo "<!-- item -->";include("module/shop/includes/content/item.php");break;}case "static"://echo "<!-- basket -->";if ($_SESSION['INI']['cryptStaticDocName']) {$_link = cryptStaticPath($_GET['static'],false);} else {$_link = $_GET['static'];}require($_link);break;case "file"://echo "<!-- ".$_GET['file']." -->";switch($_GET['file']){case "index.php":break 2;case file_exists($_GET['file']):include($_GET['file']);break 2;/*case (preg_match("/^sonderpreis\/(.*?)\.php/", $_GET['file'], $treffer) > 0):sonderPreisLogin(strip_tags($treffer[1]));include("includes/content/sonderpreis.php");break 2;*/default:echo "File not found: ";break 2;}/*if ($_GET['file'] != "index.php"){if (file_exists($_GET['file'])){include($_GET['file']);}else{echo "File does not exist!: ".$_GET['file'];}break;}*/default:if ($_SESSION['navigation']['position']){$buffer=array_reverse(getPath($_SESSION['navigation']['position']));if ($buffer['0']['Artikelstamm'] == 0){//echo "<!-- includes/content/subdir.php -->";include("module/shop/includes/content/subdir.php");}else{//echo "<!-- includes/content/itemContainer.php -->";include("module/shop/includes/content/itemContainer.php");}}else{// pre($GLOBALS['Weban_Shop']);//echo "<!-- includes/content/aktion.php -->";include("module/shop/includes/content/aktion.php");//& $GLOBALS['Weban_Shop']->aktion($_SESSION['INI']['aktion']['standard']);}break;} //switchbreak;} // foreach} // function?>