document_root = pathinfo($_SERVER['SCRIPT_FILENAME']); $this-> document_root = $this-> document_root['dirname']; $config = ' '; $filename = $this-> document_root . '/lib/plugins/twcheckliste/config.php'; if (!$handle = fopen($filename, "w+")) { print "Kann die Datei $filename nicht öffnen"; exit ; } if (!fwrite($handle, $config)) { print "Kann in die Datei $filename nicht schreiben"; exit ; } fclose($handle); } } public function html() { global $ID; $this-> document_root = pathinfo($_SERVER['SCRIPT_FILENAME']); $this-> document_root = $this-> document_root['dirname']; require_once $this-> document_root . '/lib/plugins/twcheckliste/config.php'; if ($_REQUEST['btn_speichern']) { $conf["logo"] = $_REQUEST['logo']; $conf["farbcode"] = $_REQUEST['farbcode']; $conf["footertext"] = $_REQUEST['footertext']; } echo '

' . $this -> getLang('menu') . '

' . $this -> getLang('label_config') . '


'; } } // vim:ts=4:sw=4:et:enc=utf-8: