Commit bf302b22 authored by Nico Schallehn's avatar Nico Schallehn

SuFu auf titelDeutsch und titelOriginal erweitert (kompatibel)

parent f88478a6
(in Arbeit) 0.07
-
- SuFu auf titelDeutsch und titelOriginal erweitert (kompatibel zu DB ohne diesen Spalten)
2016-03-02 0.06
- API: Feature: Rechte aus JSON Datei laden und diese verwenden.
......
......@@ -6,7 +6,7 @@
/* Konfig: */
define(API_KEY_LEN, 10);
define(API_VERSION, 0.06);
define(API_VERSION, 0.07);
define(API_KEY_DB, "/var/www/mediadb.ivaya.de/Key.sqlite");
define(API_Rights, "/var/www/mediadb.ivaya.de/Rights.json");
......@@ -185,8 +185,13 @@ class MediaDBAPI{
}
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']."%'
if(in_array("titelOriginal", $this->SpaltenFilme)){
$SucheAdd .=" OR `titelOriginal` = '".$GET_arr['Suche']."'";
}
if(in_array("titelDeutsch", $this->SpaltenFilme)){
$SucheAdd .=" OR `titelDeutsch` = '".$GET_arr['Suche']."'";
}
$Suche = " (`name` LIKE '%".$SucheWort."%' OR `md5` LIKE '%".$SucheWort."%' OR `comment` LIKE '%".$SucheWort."%' ".$SucheAdd.")";
$this->DebugOut($Suche);
$Where .= (($first?"":" AND ").$Suche);
$first = false;
......
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