Commit 55183e9e authored by Nico Schallehn's avatar Nico Schallehn

Final mit youtube-Filter

parent 36f2c000
......@@ -208,18 +208,18 @@ class MediaDBAPI{
}
$first = false;
}
if(isset($GET_arr["youtube"])){
if($GET_arr['youtube'] == "DE"){
if(isset($GET_arr["Youtube"])){
if($GET_arr['Youtube'] == "DE"){
$Where .= ($first?"":" AND ").'youtube LIKE "%DE%"';
}
else if($GET_arr['youtube'] == "EN"){
else if($GET_arr['Youtube'] == "EN"){
$Where .= ($first?"":" AND ").'youtube LIKE "%EN%"';
}
else{
$Where .= ($first?"":" AND ").'youtube '.($GET_arr['youtube']=="1"?"!=":"=").'""';
$Where .= ($first?"":" AND ").'youtube '.($GET_arr['Youtube']=="1"?"!=":"=").'""';
}
}
if(isset($GET_arr['Suche'])){ //TODO Rechte einbauen
if(isset($GET_arr['Suche'])){
$SucheWort = $GET_arr['Suche'];
$Suche = " (`name` LIKE '%".$SucheWort."%' OR `md5` LIKE '%".$SucheWort."%' OR `comment` LIKE '%".$SucheWort."%')";
//OR `year` = '".$GET_arr['Suche']."' OR `resolution` LIKE '%".$GET_arr['Suche']."%'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment