Commit 25e341eb authored by Nico Schallehn's avatar Nico Schallehn

kleine änderungen..

parent d650cb5f
eclipse.preferences.version=1 eclipse.preferences.version=1
encoding//Dokumente/ergaenzung.txt=ISO-8859-1 encoding//Dokumente/ergaenzung.txt=ISO-8859-1
encoding//webapp/index.php=UTF-8
encoding/CHANGELOG=UTF-8 encoding/CHANGELOG=UTF-8
encoding/api.class.php=UTF-8 encoding/api.class.php=UTF-8
encoding/api.php=UTF-8 encoding/api.php=UTF-8
......
2016-02-12 0.05
- Debugarrays werden nur noch ausgegeben wenn für das Rechte level das Recht gesetzt ist
2016-01-20 0.002 2016-01-20 0.002
- Eingeführt von Set Data - Eingeführt von Set Data
\ No newline at end of file
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* Konfig: * Konfig:
*/ */
define(API_KEY_LEN, 10); define(API_KEY_LEN, 10);
define(API_VERSION, 0.04); define(API_VERSION, 0.05);
define(API_KEY_DB, "../Key.sqlite"); define(API_KEY_DB, "../Key.sqlite");
if (!isset($_GET['Pretty'])) { if (!isset($_GET['Pretty'])) {
...@@ -46,6 +46,7 @@ class MediaDBAPI{ ...@@ -46,6 +46,7 @@ class MediaDBAPI{
private $FilterAnde = array(); private $FilterAnde = array();
private $StatiViews = array(); private $StatiViews = array();
private $Update = FALSE; private $Update = FALSE;
private $DebugOutput = FALSE;
public $DB_Objekt; public $DB_Objekt;
...@@ -118,6 +119,7 @@ class MediaDBAPI{ ...@@ -118,6 +119,7 @@ class MediaDBAPI{
* Platz für irgendwelche sondersachen....*/ * Platz für irgendwelche sondersachen....*/
if($this->API_Rechte >= 10){ // Update rechte if($this->API_Rechte >= 10){ // Update rechte
$this->Update = true; $this->Update = true;
$this->DebugOutput = true;
} }
...@@ -140,7 +142,6 @@ class MediaDBAPI{ ...@@ -140,7 +142,6 @@ class MediaDBAPI{
//$tempEpisoden = //$tempEpisoden =
array_push($tempEpisoden, $value); array_push($tempEpisoden, $value);
} }
} }
$this->SpaltenEpi = $tempEpisoden; $this->SpaltenEpi = $tempEpisoden;
//$this->SpaltenFil = array_intersect_key($this->SpaltenFilme,$this->SpaltenFil); //$this->SpaltenFil = array_intersect_key($this->SpaltenFilme,$this->SpaltenFil);
...@@ -613,7 +614,6 @@ class MediaDBAPI{ ...@@ -613,7 +614,6 @@ class MediaDBAPI{
private function query($Query){ private function query($Query){
//$this->Statistik["QueryCounter"]++; //$this->Statistik["QueryCounter"]++;
$ret = $this->DB_Objekt->query($Query); $ret = $this->DB_Objekt->query($Query);
$this->Querys[$this->Statistik["QueryCounter"]++]= array( "Query" => ($Query), $this->Querys[$this->Statistik["QueryCounter"]++]= array( "Query" => ($Query),
"MySQLnum_rows" => $ret->num_rows, "MySQLnum_rows" => $ret->num_rows,
"MySQLfield_count" => $this->DB_Objekt->field_count , "MySQLfield_count" => $this->DB_Objekt->field_count ,
...@@ -624,7 +624,7 @@ class MediaDBAPI{ ...@@ -624,7 +624,7 @@ class MediaDBAPI{
* Funktion nur ändern, Um Markus zu ärgern ;-) * Funktion nur ändern, Um Markus zu ärgern ;-)
*/ */
public function APIrespons($Laufzeit = 0, $respons = ""){ public function APIrespons($Laufzeit = 0, $respons = ""){
if((strpos($_SERVER["HTTP_USER_AGENT"], "Android")==0) AND ($this->API_Rechte >=1)){ //TODO Debug Statistik wieder raus nehmen!! if((strpos($_SERVER["HTTP_USER_AGENT"], "Android")==0) AND ($this->DebugOutput)){ //TODO Debug Statistik wieder raus nehmen!!
$this->Statistik["Querys"] = $this->Querys; $this->Statistik["Querys"] = $this->Querys;
return array( "API_VERSION"=> API_VERSION, return array( "API_VERSION"=> API_VERSION,
"API_KEY"=>$this->API_KEY, "API_KEY"=>$this->API_KEY,
......
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