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
ca420fed
Commit
ca420fed
authored
Feb 08, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rechte 1-3 definiert
parent
e6908f79
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
10 deletions
+21
-10
api.class.php
api.class.php
+21
-10
No files found.
api.class.php
View file @
ca420fed
...
@@ -37,6 +37,7 @@ class MediaDBAPI{
...
@@ -37,6 +37,7 @@ class MediaDBAPI{
private
$FilterEinf
=
array
();
private
$FilterEinf
=
array
();
private
$FilterKomp
=
array
();
private
$FilterKomp
=
array
();
private
$StatiViews
=
array
();
private
$StatiViews
=
array
();
private
$Update
=
FALSE
;
public
$DB_Objekt
;
public
$DB_Objekt
;
...
@@ -67,22 +68,31 @@ class MediaDBAPI{
...
@@ -67,22 +68,31 @@ class MediaDBAPI{
return
$ret
;
return
$ret
;
}
}
private
function
SetKeyRights
(){
private
function
SetKeyRights
(){
if
(
$this
->
API_Rechte
>=
1
){
if
(
$this
->
API_Rechte
>=
1
){
// Einfacher Zugang nix Technisches...
array_push
(
$this
->
SpaltenFil
,
"imdb"
,
"3d"
);
array_push
(
$this
->
SpaltenFil
,
"imdb"
,
"3d"
,
"name"
,
"year"
,
"duration"
,
"rating"
,
"summary"
,
"youtube"
,
"fsk"
);
array_push
(
$this
->
SpaltenEpi
,
"imdb"
,
"3d"
);
array_push
(
$this
->
SpaltenEpi
,
"imdb"
,
"3d"
);
$this
->
FilterEinf
=
array_merge
(
$this
->
FilterEinf
,
array
(
"imdbID"
=>
"imdbID"
,
"acodecger"
=>
"acodecger"
,
"acodeceng"
=>
"acodeceng"
,
"vcodec"
=>
"vcodec"
,
$this
->
FilterEinf
=
array_merge
(
$this
->
FilterEinf
,
array
(
"imdbID"
=>
"imdbID"
));
"resolution"
=>
"resolution"
,
"channelsger"
=>
"channelsger"
,
"channelseng"
=>
"channelseng"
));
$this
->
FilterKomp
=
array_merge
(
$this
->
FilterKomp
,
array
(
"Jahr"
=>
"year"
,
"Laufzeit"
=>
"duration"
));
$this
->
FilterKomp
=
array_merge
(
$this
->
FilterKomp
,
array
(
"Jahr"
=>
"year"
,
"Groesse"
=>
"size"
,
"Laufzeit"
=>
"duration"
));
//array_push($this->StatiViews, "");
//array_push($this->StatiViews, "");
}
}
if
(
$this
->
API_Rechte
>=
2
){
if
(
$this
->
API_Rechte
>=
2
){
// Einfacher Zugang mit einigen Technischen Infos
array_push
(
$this
->
SpaltenFil
,
"
name
"
);
array_push
(
$this
->
SpaltenFil
,
"
size"
,
"resolution
"
);
array_push
(
$this
->
SpaltenEpi
,
"imdb"
,
"3d"
);
array_push
(
$this
->
SpaltenEpi
,
"imdb"
,
"3d"
);
$this
->
FilterEinf
=
array_merge
(
$this
->
FilterEinf
,
array
(
"imdbID"
=>
"imdbID"
,
"acodecger"
=>
"acodecger"
,
"acodeceng"
=>
"acodeceng"
,
"vcodec"
=>
"vcodec"
,
$this
->
FilterEinf
=
array_merge
(
$this
->
FilterEinf
,
array
(
"resolution"
=>
"resolution"
));
"resolution"
=>
"resolution"
,
"channelsger"
=>
"channelsger"
,
"channelseng"
=>
"channelseng"
));
$this
->
FilterKomp
=
array_merge
(
$this
->
FilterKomp
,
array
(
"Groesse"
=>
"size"
));
$this
->
FilterKomp
=
array_merge
(
$this
->
FilterKomp
,
array
(
"Jahr"
=>
"year"
,
"Groesse"
=>
"size"
,
"Laufzeit"
=>
"duration"
));
//array_push($this->StatiViews, "");
//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
=
""
){
public
function
API_GetKeyRights
(
$GET_arr
,
$POST_arr
=
""
){
$array
[
"SpaltenFilme"
]
=
$this
->
SpaltenFil
;
$array
[
"SpaltenFilme"
]
=
$this
->
SpaltenFil
;
...
@@ -90,6 +100,7 @@ class MediaDBAPI{
...
@@ -90,6 +100,7 @@ class MediaDBAPI{
$array
[
"FliterEinfach"
]
=
$this
->
FilterEinf
;
$array
[
"FliterEinfach"
]
=
$this
->
FilterEinf
;
$array
[
"FliterKomplex"
]
=
$this
->
FilterKomp
;
$array
[
"FliterKomplex"
]
=
$this
->
FilterKomp
;
$array
[
"StatistikViews"
]
=
$this
->
StatiViews
;
$array
[
"StatistikViews"
]
=
$this
->
StatiViews
;
$array
[
"Update"
]
=
$this
->
Update
;
return
$array
;
return
$array
;
}
}
public
function
API_GetDataList
(
$GET_arr
,
$POST_arr
=
""
){
public
function
API_GetDataList
(
$GET_arr
,
$POST_arr
=
""
){
...
...
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