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
ca4d6b6e
Commit
ca4d6b6e
authored
Feb 09, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
alle Filter erlauben
parent
ac8756dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
api.class.php
api.class.php
+11
-11
No files found.
api.class.php
View file @
ca4d6b6e
...
...
@@ -79,25 +79,25 @@ class MediaDBAPI{
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
=
array_merge
(
$this
->
FilterEinf
,
array
(
"imdbID"
=>
"imdbID"
));
$this
->
FilterKomp
=
array_merge
(
$this
->
FilterKomp
,
array
(
"Jahr"
=>
"year"
,
"Laufzeit"
=>
"duration"
));
$this
->
FilterAnde
=
array_merge
(
$this
->
FilterAnde
,
array
(
"Deutsch"
,
"Englisch"
,
"Suche"
,
"Youtube"
));
$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"
));
//
$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"
,
"abitrateger"
,
"abitrateeng"
,
"channelsger"
,
"channelseng"
,
"width"
,
"height"
,
"totalbitrate"
);
array_push
(
$this
->
SpaltenEpi
,
"md5"
,
"hdd"
,
"acodecger"
,
"acodeceng"
,
"vcodec"
,
"abitrateger"
,
"abitrateeng"
,
"channelsger"
,
"channelseng"
,
"width"
,
"height"
,
"totalbitrate"
);
$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
());
/*
$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.
...
...
@@ -105,7 +105,7 @@ class MediaDBAPI{
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"
));
//
$this->FilterKomp = array_merge($this->FilterKomp, array("Hinzugefuegt" => "added", "Gesehen" => "lastView", "Gesehenzaehler" => "views"));
//array_push($this->StatiViews, "");
}
...
...
@@ -116,7 +116,7 @@ class MediaDBAPI{
//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"
));
//
$this->FilterKomp = array_merge($this->FilterKomp, array("Hinzugefuegt" => "added", "Gesehen" => "lastView", "Gesehenzaehler" => "views"));
array_push
(
$this
->
StatiViews
,
"watchStatistic"
,
"belegterSpeicher"
,
"freierSpeicher"
);
$this
->
Update
=
true
;
}
...
...
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