Commit ca420fed authored by Nico Schallehn's avatar Nico Schallehn

Rechte 1-3 definiert

parent e6908f79
......@@ -37,6 +37,7 @@ class MediaDBAPI{
private $FilterEinf = array();
private $FilterKomp = array();
private $StatiViews = array();
private $Update = FALSE;
public $DB_Objekt;
......@@ -67,22 +68,31 @@ class MediaDBAPI{
return $ret;
}
private function SetKeyRights(){
if($this->API_Rechte >= 1){
array_push($this->SpaltenFil,"imdb", "3d");
if($this->API_Rechte >= 1){ // Einfacher Zugang nix Technisches...
array_push($this->SpaltenFil,"imdb", "3d", "name", "year", "duration", "rating", "summary", "youtube", "fsk");
array_push($this->SpaltenEpi,"imdb", "3d");
$this->FilterEinf = array_merge($this->FilterEinf, array("imdbID" => "imdbID", "acodecger" => "acodecger", "acodeceng" => "acodeceng", "vcodec" => "vcodec",
"resolution" => "resolution", "channelsger" => "channelsger", "channelseng" => "channelseng"));
$this->FilterKomp = array_merge($this->FilterKomp, array("Jahr" => "year", "Groesse" => "size", "Laufzeit" => "duration"));
$this->FilterEinf = array_merge($this->FilterEinf, array("imdbID" => "imdbID"));
$this->FilterKomp = array_merge($this->FilterKomp, array("Jahr" => "year", "Laufzeit" => "duration"));
//array_push($this->StatiViews, "");
}
if($this->API_Rechte >= 2){
array_push($this->SpaltenFil, "name");
if($this->API_Rechte >= 2){ // Einfacher Zugang mit einigen Technischen Infos
array_push($this->SpaltenFil, "size", "resolution");
array_push($this->SpaltenEpi,"imdb", "3d");
$this->FilterEinf = array_merge($this->FilterEinf, array("imdbID" => "imdbID", "acodecger" => "acodecger", "acodeceng" => "acodeceng", "vcodec" => "vcodec",
"resolution" => "resolution", "channelsger" => "channelsger", "channelseng" => "channelseng"));
$this->FilterKomp = array_merge($this->FilterKomp, array("Jahr" => "year", "Groesse" => "size", "Laufzeit" => "duration"));
$this->FilterEinf = array_merge($this->FilterEinf, array("resolution" => "resolution"));
$this->FilterKomp = array_merge($this->FilterKomp, array( "Groesse" => "size"));
//array_push($this->StatiViews, "");
}
if($this->API_Rechte >= 3){ // Einfacher Zugang mit allen Technischen Infos
array_push($this->SpaltenFil, "md5", "hdd","acodecger", "acodeceng","vcodec","channelsger","channelseng");
array_push($this->SpaltenEpi,"imdb", "3d");
$this->FilterEinf = array_merge($this->FilterEinf, array( "acodecger" => "acodecger", "acodeceng" => "acodeceng", "vcodec" => "vcodec",
"channelsger" => "channelsger", "channelseng" => "channelseng"));
$this->FilterKomp = array_merge($this->FilterKomp, array());
//array_push($this->StatiViews, "");
}
//TODO überprüfen ob es die spalten auch wirklich gibt!!!
}
public function API_GetKeyRights($GET_arr, $POST_arr =""){
$array["SpaltenFilme"] = $this->SpaltenFil;
......@@ -90,6 +100,7 @@ class MediaDBAPI{
$array["FliterEinfach"] = $this->FilterEinf;
$array["FliterKomplex"] = $this->FilterKomp;
$array["StatistikViews"] = $this->StatiViews;
$array["Update"] = $this->Update;
return $array;
}
public function API_GetDataList($GET_arr, $POST_arr =""){
......
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