Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MediaDBViewerAPI
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BA_SI-Projekt
MediaDBViewerAPI
Commits
1dfbc430
Commit
1dfbc430
authored
Mar 01, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Json Rechte System
parent
3cc5dc32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
56 deletions
+0
-56
api.class.php
api.class.php
+0
-56
No files found.
api.class.php
View file @
1dfbc430
...
...
@@ -79,62 +79,6 @@ class MediaDBAPI{
return
$ret
;
}
private
function
SetKeyRights
(){
//TODO Rechte aus JSON Datei Parsen
if
(
$this
->
API_Rechte
>=
0
){
// Standard Sachen die nicht Deaktivert werden dürfen.
array_push
(
$this
->
SpaltenFil
,
"imdbID"
,
"3d"
,
"name"
,
"year"
,
"duration"
,
"rating"
,
"summary"
,
"youtube"
,
"fsk"
,
"Genre"
,
"Schauspieler"
);
array_push
(
$this
->
SpaltenEpi
,
"episodenumber"
,
"season_nr"
,
"series_nr"
,
"name"
,
"duration"
);
//$this->FilterEinf = $this->FilterEinfach;//array_merge($this->FilterEinf, array("imdbID" => "imdbID"));
//$this->FilterKomp = $this->FilterKomplex;//array_merge($this->FilterKomp, array("Jahr" => "year", "Laufzeit" => "duration"));
//$this->FilterAnde = $this->FilterAndere;//array_merge($this->FilterAnde, array("Deutsch", "Englisch","Suche", "Youtube"));
//array_push($this->StatiViews, "");
}
if
(
$this
->
API_Rechte
>=
2
){
// Einfacher Zugang mit einigen Technischen Infos
array_push
(
$this
->
SpaltenFil
,
"size"
,
"resolution"
);
array_push
(
$this
->
SpaltenEpi
,
"source"
,
"size"
);
//$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"
);
array_push
(
$this
->
SpaltenEpi
,
"md5"
,
"hdd"
);
/*$this->FilterEinf = array_merge($this->FilterEinf, array( "acodecger" => "acodecger", "acodeceng" => "acodeceng", "vcodec" => "vcodec",
"channelsger" => "channelsger", "channelseng" => "channelseng"));*/
//$this->FilterKomp = array_merge($this->FilterKomp, array());
//$this->FilterAnde = array_merge($this->FilterAnde, array());
//array_push($this->StatiViews, "");
}
if
(
$this
->
API_Rechte
>=
4
){
// Einfacher Zugang mit allen Infos Also wann man Welchen FIlm gesehen hat usw.
array_push
(
$this
->
SpaltenFil
,
"checked"
,
"views"
,
"comment"
,
"added"
,
"lastView"
,
"lastUpdate"
);
array_push
(
$this
->
SpaltenEpi
,
"checked"
,
"views"
,
"comment"
,
"added"
,
"lastView"
);
/*$this->FilterEinf = array_merge($this->FilterEinf, array( "acodecger" => "acodecger", "acodeceng" => "acodeceng", "vcodec" => "vcodec",
"channelsger" => "channelsger", "channelseng" => "channelseng"));*/
//$this->FilterKomp = array_merge($this->FilterKomp, array("Hinzugefuegt" => "added", "Gesehen" => "lastView", "Gesehenzaehler" => "views"));
//array_push($this->StatiViews, "");
}
if
(
$this
->
API_Rechte
==
6
){
array_push
(
$this
->
StatiViews
,
"watchStatistic"
,
"belegterSpeicher"
,
"freierSpeicher"
,
"laufzeitGesehen"
,
"prozentualGesehen"
,
"prozentualDefekt"
,
"defekteFilme"
,
"defekteEpisoden"
,
"DBstatistik"
,
"GenreFilmanzahl"
);
}
if
(
$this
->
API_Rechte
==
7
){
$this
->
SpaltenFil
=
$this
->
SpaltenFilme
;
$this
->
SpaltenEpi
=
$this
->
SpaltenEpisoden
;
array_push
(
$this
->
StatiViews
,
"belegterSpeicher"
,
"freierSpeicher"
,
"prozentualDefekt"
,
"defekteFilme"
,
"defekteEpisoden"
,
"DBstatistik"
,
"GenreFilmanzahl"
,
"SchauspielerFilmanzahl"
);
}
/*
* Platz für irgendwelche sondersachen....*/
if
(
$this
->
API_Rechte
>=
10
){
// Update rechte
$this
->
Update
=
true
;
$this
->
DebugOutput
=
true
;
$this
->
SpaltenFil
=
$this
->
SpaltenFilme
;
// Alle Spalten
$this
->
SpaltenEpi
=
$this
->
SpaltenEpisoden
;
$this
->
StatiViews
=
$this
->
StatistikViews
;
/* array_push($this->StatiViews, "watchStatistic", "belegterSpeicher", "freierSpeicher", "laufzeitGesehen", "prozentualGesehen", "prozentualDefekt",
"defekteFilme", "defekteEpisoden", "DBstatistik", "GenreFilmanzahl");*/
}
if
(
file_exists
(
API_Rights
)){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment