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
aa88da12
Commit
aa88da12
authored
Feb 29, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
3b625f99
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
index.php
webapp/index.php
+17
-1
No files found.
webapp/index.php
View file @
aa88da12
...
...
@@ -172,14 +172,30 @@ if($_GET["action"] == "filme"){
file_put_contents
(
API_Rights
,
json_encode
(
$rights
));
}
if
(
file_exists
(
API_Rights
)){
$Data
=
json_decode
(
file_get_contents
(
API_Rights
),
true
);
if
(
isset
(
$_POST
)){
ob_start
();
var_dump
(
$_POST
);
$content
.=
"<pre>"
.
ob_get_clean
()
.
"</pre><br><br>"
;
$Data
[
$_POST
[
"ID"
]][
"from"
]
=
$_POST
[
"from"
];
$Data
[
$_POST
[
"ID"
]][
"to"
]
=
$_POST
[
"to"
];
$Data
[
$_POST
[
"ID"
]][
"SpaltenFil"
]
=
array
();
if
(
!
empty
(
$_POST
[
"filme_list"
])){
// Loop to store and display values of individual checked checkbox.
foreach
(
$_POST
[
"filme_list"
]
as
$selected
){
array_push
(
$Data
[
$_POST
[
"ID"
]][
"SpaltenFil"
],
$selected
);
//echo $selected."</br>";
}
}
file_put_contents
(
API_Rights
,
json_encode
(
$Data
));
}
$Data
=
json_decode
(
file_get_contents
(
API_Rights
),
true
);
ob_start
();
//var_dump($Data);
$content
.=
ob_get_clean
();
...
...
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