* @package BcWe core * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ */ If (!defined("IN_BCWE_ADMIN")) { die("Dieses Script kann nicht ausserhalb des Frameworks laufen!"); } $addnav["right"]=FALSE; $session->page_begin("config", True); class config_panel extends admin_module{ function output(){ global $module,$config,$db,$panel,$admin,$module,$root,$firephp,$log,$lang; if(isset($_POST["send"]) && $_POST["send"]==1){ foreach($_POST as $post=>$value){ if($post!="send" and $config[$post]!=$value){ $field=$db->escape($post); $update=$db->escape($value); $db->query("UPDATE " . $config["prefix"] . "config SET `value`='".$update."' WHERE `name`='".$field."'"); } } $result = $db->query("SELECT name, value FROM " . $config["prefix"] . "config"); while ($row = $db->fetch_array($result)){ $config[$row["name"]] = $row["value"]; } } $result = $db->query("SELECT * FROM `" . $config["prefix"] . "config` v LEFT JOIN `" . $config["prefix"] . "config_categories` c ON v.`category`=c.`cid`"); while ($row = $db->fetch_array($result)){ $data[$row["categoryname"]][]=$row; } $panel->title="Konfiguration"; $panel->form(array("action"=>$config["path"]."/admin/index.php?panel=config")); $panel->content.="
".$v["title"]." ".$v["description"]." ".$panel->get_option($v["option"],$v["name"],$config[$v["name"]])." |