Commit 3cc5dc32 authored by Nico Schallehn's avatar Nico Schallehn

Rechte aus Json lesen

parent 7f7bb2d6
......@@ -137,6 +137,29 @@ class MediaDBAPI{
}
if(file_exists(API_Rights)){
$Data = json_decode(file_get_contents(API_Rights), true);
foreach ($Data as $value) {
if(($value["from"] >= $this->API_Rechte) AND ($value["to"] <= $this->API_Rechte)){
foreach ($value["SpaltenFil"] as $value2){
array_push($this->SpaltenFil,$value2);
}
foreach ($value["StatiViews"] as $value2){
array_push($this->SpaltenEpi,$value2);
}
foreach ($value["StatiViews"] as $value2){
array_push($this->StatiViews,$value2);
}
$this->Update = ($value["Update"] OR $this->Update);
$this->DebugOutput = ($value["DebugO"] OR $this->Update);
}
}
}
else{
return false;
}
//TODO überprüfen ob es die spalten auch wirklich gibt!!!
//Dafür den Array mit allein Spalten für die Reinfolge verwenden
$tempFilme= array();
......
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