Commit aa88da12 authored by Nico Schallehn's avatar Nico Schallehn

test

parent 3b625f99
...@@ -172,14 +172,30 @@ if($_GET["action"] == "filme"){ ...@@ -172,14 +172,30 @@ if($_GET["action"] == "filme"){
file_put_contents(API_Rights, json_encode($rights)); file_put_contents(API_Rights, json_encode($rights));
} }
if(file_exists(API_Rights)){ if(file_exists(API_Rights)){
$Data = json_decode(file_get_contents(API_Rights), true);
if(isset($_POST)){ if(isset($_POST)){
ob_start(); ob_start();
var_dump($_POST); var_dump($_POST);
$content .= "<pre>".ob_get_clean()."</pre><br><br>"; $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(); ob_start();
//var_dump($Data); //var_dump($Data);
$content .= ob_get_clean(); $content .= ob_get_clean();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment