Commit 1f711213 authored by Nico Schallehn's avatar Nico Schallehn

test

parent 4a21c5d1
...@@ -99,7 +99,7 @@ if($_GET["action"] == "filme"){ ...@@ -99,7 +99,7 @@ if($_GET["action"] == "filme"){
}else if($_GET["action"] == "rechte"){ }else if($_GET["action"] == "rechte"){
$titel = "Rechteverwaltung"; $titel = "Rechteverwaltung";
$content = "<h1>Rechteverwaltung</h1>"; $content = '<div class="content"><h1>Rechteverwaltung</h1>';
if(!file_exists(API_Rights)){ if(!file_exists(API_Rights)){
// defaultdatei anlegen... // defaultdatei anlegen...
...@@ -117,11 +117,12 @@ if($_GET["action"] == "filme"){ ...@@ -117,11 +117,12 @@ 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)); $Data = (file_get_contents(API_Rights));
ob_start(); ob_start();
var_dump($Data); var_dump($Data);
$content .= ob_get_clean(); $content .= ob_get_clean();
} }
$content .= "</div>";
}else if($_GET["action"] == "vergleich"){ }else if($_GET["action"] == "vergleich"){
......
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