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

kleine änderungen..

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