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
5e63dfe4
Commit
5e63dfe4
authored
Feb 25, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Anpassung am Rechtesystem
parent
8bb4cc10
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
api.class.php
api.class.php
+11
-5
No files found.
api.class.php
View file @
5e63dfe4
...
@@ -37,7 +37,7 @@ class MediaDBAPI{
...
@@ -37,7 +37,7 @@ class MediaDBAPI{
private
$FilterKomplex
=
array
(
"Jahr"
=>
"year"
,
"Groesse"
=>
"size"
,
"Laufzeit"
=>
"duration"
,
"Hinzugefuegt"
=>
"added"
,
"Gesehen"
=>
"lastView"
,
private
$FilterKomplex
=
array
(
"Jahr"
=>
"year"
,
"Groesse"
=>
"size"
,
"Laufzeit"
=>
"duration"
,
"Hinzugefuegt"
=>
"added"
,
"Gesehen"
=>
"lastView"
,
"Gesehenzaehler"
=>
"views"
,
"FSK"
=>
"fsk"
);
"Gesehenzaehler"
=>
"views"
,
"FSK"
=>
"fsk"
);
private
$FilterAndere
=
array
(
"Suche"
,
"3d"
,
"Deutsch"
,
"Englisch"
,
"checked"
,
"Youtube"
);
private
$FilterAndere
=
array
(
"Suche"
,
"3d"
,
"Deutsch"
,
"Englisch"
,
"checked"
,
"Youtube"
);
private
$StatistikViews
=
array
();
//
private $StatistikViews =array();
/* Speicher für Rechte Arrays*/
/* Speicher für Rechte Arrays*/
private
$SpaltenFil
=
array
();
private
$SpaltenFil
=
array
();
private
$SpaltenEpi
=
array
();
private
$SpaltenEpi
=
array
();
...
@@ -94,8 +94,8 @@ class MediaDBAPI{
...
@@ -94,8 +94,8 @@ class MediaDBAPI{
//array_push($this->StatiViews, "");
//array_push($this->StatiViews, "");
}
}
if
(
$this
->
API_Rechte
>=
3
){
// Einfacher Zugang mit allen Technischen Infos
if
(
$this
->
API_Rechte
>=
3
){
// Einfacher Zugang mit allen Technischen Infos
array_push
(
$this
->
SpaltenFil
,
"md5"
,
"hdd"
,
"acodecger"
,
"acodeceng"
,
"vcodec"
,
"abitrateger"
,
"abitrateeng"
,
"channelsger"
,
"channelseng"
,
"width"
,
"height"
,
"totalbitrate
"
);
array_push
(
$this
->
SpaltenFil
,
"md5"
,
"hdd
"
);
array_push
(
$this
->
SpaltenEpi
,
"md5"
,
"hdd"
,
"acodecger"
,
"acodeceng"
,
"vcodec"
,
"abitrateger"
,
"abitrateeng"
,
"channelsger"
,
"channelseng"
,
"width"
,
"height"
,
"totalbitrate"
);
array_push
(
$this
->
SpaltenEpi
,
"md5"
,
"hdd"
);
/*$this->FilterEinf = array_merge($this->FilterEinf, array( "acodecger" => "acodecger", "acodeceng" => "acodeceng", "vcodec" => "vcodec",
/*$this->FilterEinf = array_merge($this->FilterEinf, array( "acodecger" => "acodecger", "acodeceng" => "acodeceng", "vcodec" => "vcodec",
"channelsger" => "channelsger", "channelseng" => "channelseng"));*/
"channelsger" => "channelsger", "channelseng" => "channelseng"));*/
//$this->FilterKomp = array_merge($this->FilterKomp, array());
//$this->FilterKomp = array_merge($this->FilterKomp, array());
...
@@ -110,12 +110,18 @@ class MediaDBAPI{
...
@@ -110,12 +110,18 @@ class MediaDBAPI{
//$this->FilterKomp = array_merge($this->FilterKomp, array("Hinzugefuegt" => "added", "Gesehen" => "lastView", "Gesehenzaehler" => "views"));
//$this->FilterKomp = array_merge($this->FilterKomp, array("Hinzugefuegt" => "added", "Gesehen" => "lastView", "Gesehenzaehler" => "views"));
//array_push($this->StatiViews, "");
//array_push($this->StatiViews, "");
}
}
if
(
$this
->
API_Rechte
>=
7
){
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
->
SpaltenFil
=
$this
->
SpaltenFilme
;
$this
->
SpaltenEpi
=
$this
->
SpaltenEpisoden
;
$this
->
SpaltenEpi
=
$this
->
SpaltenEpisoden
;
array_push
(
$this
->
StatiViews
,
"watchStatistic"
,
"belegterSpeicher"
,
"freierSpeicher"
,
"laufzeitGesehen"
,
"prozentualGesehen"
,
"prozentualDefekt"
,
"defekteFilme"
,
"defekteEpisoden"
,
"DBstatistik"
);
array_push
(
$this
->
StatiViews
,
"belegterSpeicher"
,
"freierSpeicher"
,
"prozentualDefekt"
,
"defekteFilme"
,
"defekteEpisoden"
,
"DBstatistik"
,
"GenreFilmanzahl"
);
}
}
/*
/*
* Platz für irgendwelche sondersachen....*/
* Platz für irgendwelche sondersachen....*/
if
(
$this
->
API_Rechte
>=
10
){
// Update rechte
if
(
$this
->
API_Rechte
>=
10
){
// Update rechte
...
...
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