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
3cc5dc32
Commit
3cc5dc32
authored
Mar 01, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rechte aus Json lesen
parent
7f7bb2d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
api.class.php
api.class.php
+23
-0
No files found.
api.class.php
View file @
3cc5dc32
...
...
@@ -137,6 +137,29 @@ class MediaDBAPI{
}
if
(
file_exists
(
API_Rights
)){
$Data
=
json_decode
(
file_get_contents
(
API_Rights
),
true
);
foreach
(
$Data
as
$value
)
{
if
((
$value
[
"from"
]
>=
$this
->
API_Rechte
)
AND
(
$value
[
"to"
]
<=
$this
->
API_Rechte
)){
foreach
(
$value
[
"SpaltenFil"
]
as
$value2
){
array_push
(
$this
->
SpaltenFil
,
$value2
);
}
foreach
(
$value
[
"StatiViews"
]
as
$value2
){
array_push
(
$this
->
SpaltenEpi
,
$value2
);
}
foreach
(
$value
[
"StatiViews"
]
as
$value2
){
array_push
(
$this
->
StatiViews
,
$value2
);
}
$this
->
Update
=
(
$value
[
"Update"
]
OR
$this
->
Update
);
$this
->
DebugOutput
=
(
$value
[
"DebugO"
]
OR
$this
->
Update
);
}
}
}
else
{
return
false
;
}
//TODO überprüfen ob es die spalten auch wirklich gibt!!!
//Dafür den Array mit allein Spalten für die Reinfolge verwenden
$tempFilme
=
array
();
...
...
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