Commit 9cbbe764 authored by Nico Schallehn's avatar Nico Schallehn

= Parameter hinzugefügt und 2 Parameter umbenannt

parent bae5b800
...@@ -49,8 +49,8 @@ class MediaDBViewerAPI{ ...@@ -49,8 +49,8 @@ class MediaDBViewerAPI{
$first = true; $first = true;
$imdbArrToCompar = 0; $imdbArrToCompar = 0;
$Where = "WHERE "; $Where = "WHERE ";
// = Filter:
if(isset($GET_arr['imdbID']) AND is_numeric($GET_arr['imdbID'])){ if(isset($GET_arr['imdbID']) AND is_numeric($GET_arr['imdbID'])){
$Where .= ($first?"":" AND ").'imdbID = "'.$GET_arr['imdbID'].'"'; $Where .= ($first?"":" AND ").'imdbID = "'.$GET_arr['imdbID'].'"';
$first = false; $first = false;
} }
...@@ -66,12 +66,36 @@ class MediaDBViewerAPI{ ...@@ -66,12 +66,36 @@ class MediaDBViewerAPI{
$Where .= ($first?"":" AND ").'acodecger'.($GET_arr['Deutsch']?" IS NOT ":" IS ").'null'; $Where .= ($first?"":" AND ").'acodecger'.($GET_arr['Deutsch']?" IS NOT ":" IS ").'null';
$first = false; $first = false;
} }
if(isset($GET_arr['DeutschCodec']) ){ if(isset($GET_arr['acodecger']) ){
$Where .= ($first?"":" AND ").'acodecger = "'.$GET_arr['DeutschCodec'].'"'; $Where .= ($first?"":" AND ").'acodecger = "'.$GET_arr['acodecger'].'"';
$first = false;
}
if(isset($GET_arr['acodeceng']) ){
$Where .= ($first?"":" AND ").'acodeceng = "'.$GET_arr['acodeceng'].'"';
$first = false;
}
if(isset($GET_arr['vcodec']) ){
$Where .= ($first?"":" AND ").'vcodec = "'.$GET_arr['vcodec'].'"';
$first = false;
}
if(isset($GET_arr['resolution']) ){
$Where .= ($first?"":" AND ").'resolution = "'.$GET_arr['resolution'].'"';
$first = false;
}
if(isset($GET_arr['channelsger']) ){
$Where .= ($first?"":" AND ").'channelsger = "'.$GET_arr['channelsger'].'"';
$first = false;
}
if(isset($GET_arr['channelseng']) ){
$Where .= ($first?"":" AND ").'channelsger = "'.$GET_arr['channelseng'].'"';
$first = false;
}
if(isset($GET_arr['hdd']) ){
$Where .= ($first?"":" AND ").'hdd = "'.$GET_arr['hdd'].'"';
$first = false; $first = false;
} }
if(isset($GET_arr['EnglischCodec']) ){ if(isset($GET_arr['checked']) ){
$Where .= ($first?"":" AND ").'acodeceng = "'.$GET_arr['EnglischCodec'].'"'; $Where .= ($first?"":" AND ").'checked = "'.$GET_arr['checked'].'"';
$first = false; $first = false;
} }
if(isset($GET_arr['Suche'])){ if(isset($GET_arr['Suche'])){
...@@ -80,6 +104,11 @@ class MediaDBViewerAPI{ ...@@ -80,6 +104,11 @@ class MediaDBViewerAPI{
$Where .= (($first?"":" AND ").$Suche); $Where .= (($first?"":" AND ").$Suche);
$first = false; $first = false;
} }
// größergleich oder kleinergleich Filter:
// In Filter:
// Attribute von Filmen die nur über eine M:N Verbindung vorhanden sind: // Attribute von Filmen die nur über eine M:N Verbindung vorhanden sind:
if(isset($GET_arr['GenreID']) OR isset($GET_arr['Genre']) OR isset($GET_arr['SchauspielerID']) OR isset($GET_arr['Schauspieler']) OR isset($GET_arr['SchauspielerSuche'])){ if(isset($GET_arr['GenreID']) OR isset($GET_arr['Genre']) OR isset($GET_arr['SchauspielerID']) OR isset($GET_arr['Schauspieler']) OR isset($GET_arr['SchauspielerSuche'])){
if(isset($GET_arr['GenreID'])){ if(isset($GET_arr['GenreID'])){
......
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