Commit 4a21c5d1 authored by Nico Schallehn's avatar Nico Schallehn

test

parent db9c2958
...@@ -98,9 +98,12 @@ if($_GET["action"] == "filme"){ ...@@ -98,9 +98,12 @@ if($_GET["action"] == "filme"){
<script type="text/javascript" src="js/jquery.flexisel.js"></script></div>'; <script type="text/javascript" src="js/jquery.flexisel.js"></script></div>';
}else if($_GET["action"] == "rechte"){ }else if($_GET["action"] == "rechte"){
$titel = "Rechteverwaltung";
$content = "<h1>Rechteverwaltung</h1>";
if(!file_exists(API_Rights)){ if(!file_exists(API_Rights)){
// defaultdatei anlegen... // defaultdatei anlegen...
echo "Erzeuge Default Rechtedatei <br>".PHP_EOL; $content .= "Erzeuge Default Rechtedatei <br>".PHP_EOL;
$rights = array(1 => array( "from" => 0, $rights = array(1 => array( "from" => 0,
"to" => 100, "to" => 100,
"SpaltenFil" => array(), "SpaltenFil" => array(),
...@@ -115,7 +118,9 @@ if($_GET["action"] == "filme"){ ...@@ -115,7 +118,9 @@ if($_GET["action"] == "filme"){
} }
if(!file_exists(API_Rights)){ if(!file_exists(API_Rights)){
$Data = json_decode(file_get_contents(API_Rights)); $Data = json_decode(file_get_contents(API_Rights));
ob_start();
var_dump($Data); var_dump($Data);
$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