So wie ich das verstehe ruft er dort gleich wieder eine Datei auf richtig?
PHP-Code:
<?php
include_once "./templates/yb_de/yb_api/YBConfig.php";
include_once "./templates/yb_de/yb_api/DataManagement.php";
//$opcodes = "operatorcode='y4194' OR operatorcode='y3212' OR operatorcode='y3213'";
//conditions=operatorcode:y4194,y3212,y3213;category:Bareboat,Boot mit Crew
$conditions=Input::get('conditions');
$conditionarray = explode(";", $conditions);
$sqlwhere = "";
foreach ($conditionarray as $value) {
list($condtion, $values) = explode(":", $value);
$sqlpart=$condtion."='".str_replace (",","' OR ".$condtion."='",$values)."'";
if ($sqlwhere == "") {
$sqlwhere = "(".$sqlpart;
} else {
$sqlwhere = $sqlwhere.") AND (".$sqlpart;
}
}
$sqlwhere = $sqlwhere.")";
//echo $sqlwhere;
//$opcodelist=str_replace (",","' OR operatorcode='",$opcodelist);
//$opcodes = "operatorcode='".$opcodelist."'";
//$categorylist=Input::get('category');
//$categorylist=str_replace (",","' OR category='",$categorylist);
//$categorys = "category='".$categorylist."'";
//echo "Main".$_GET;
if( isset($_GET["req"])){
include "./templates/yb_de/YBDetailQuerry.php";
} else {
include "./templates/yb_de/YBListQuerry.php";
}
?>
Lesezeichen