Commit cefa3453 authored by Nico Schallehn's avatar Nico Schallehn

test

parent 61852f1f
...@@ -9,7 +9,10 @@ class Media { ...@@ -9,7 +9,10 @@ class Media {
if(file_exists($configfile)){ if(file_exists($configfile)){
echo $this->Console->getColoredString("Hinweis:","black", "light_gray")." Configfile: ".$configfile." geladen!"; echo $this->Console->getColoredString("Hinweis:","black", "light_gray")." Configfile: ".$configfile." geladen!".PHP_EOL.PHP_EOL;
$dateihandle = fopen($this->configfile,"r");
$this->config = json_decode(fread($dateihandle, filesize($this->configfile)));
} }
else{ else{
echo $this->Console->getColoredString("Hinweis:","black", "light_gray")." Configfile: ".$configfile." exisitiert nicht! Es werden defaults geladen!".PHP_EOL; echo $this->Console->getColoredString("Hinweis:","black", "light_gray")." Configfile: ".$configfile." exisitiert nicht! Es werden defaults geladen!".PHP_EOL;
...@@ -28,6 +31,10 @@ class Media { ...@@ -28,6 +31,10 @@ class Media {
} }
} }
public function config_show(){
var_dump($this->config);
}
public function config_save(){ public function config_save(){
$dateihandle = fopen($this->configfile,"w"); $dateihandle = fopen($this->configfile,"w");
......
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