X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Fsetup%2Fclass_setupStep_Config2.inc;h=1bf1d2ff5c13f3d81c4a7dbced193141a828edfb;hb=7d0eab6bb81d3010130879061ea00542071f5b76;hp=bd01628df39d531ae33c6f43f3e77ba2b3cd802d;hpb=dd4f22b39e29cf499d9ab0bbde7ee9cfd16ff7cb;p=gosa.git diff --git a/gosa-core/setup/class_setupStep_Config2.inc b/gosa-core/setup/class_setupStep_Config2.inc index bd01628df..1bf1d2ff5 100644 --- a/gosa-core/setup/class_setupStep_Config2.inc +++ b/gosa-core/setup/class_setupStep_Config2.inc @@ -30,7 +30,7 @@ class Step_Config2 extends setup_step var $mail = "none"; var $mail_attrib = ""; var $mail_methods = array(); - var $mail_settings = array("vacationdir" => "/etc/gosa/mail/vacation_templates/", + var $mail_settings = array("vacationdir" => "/etc/gosa/vacation", "vacationdir_active" => FALSE); var $generic_settings = array( "enableCopyPaste" => false, @@ -40,7 +40,7 @@ class Step_Config2 extends setup_step "snapshot_base" => "ou=snapshots,%base%", "snapshot_user" => "%admin%", "snapshot_password" => "", - "logging" => "syslog,mysql", + "logging" => TRUE, "snapshot_server" => "%connection%"); var $samba_settings = array( "samba_sid" => "0-815-4711", @@ -131,8 +131,7 @@ class Step_Config2 extends setup_step $smarty->assign("mail_methods", reverse_html_entities($this->mail_methods)); $smarty->assign("samba_settings", reverse_html_entities($this->samba_settings)); - $smarty->assign("logging_mysql" ,preg_match("/mysql/",$this->generic_settings['logging'])); - $smarty->assign("logging_syslog",preg_match("/syslog/",$this->generic_settings['logging'])); + $smarty->assign("logging",$this->generic_settings['logging']); $smarty->assign("bool",array(FALSE => _("No"), TRUE => _("Yes"))); foreach($this->attributes as $attr){ @@ -161,14 +160,7 @@ class Step_Config2 extends setup_step } /* Get logging */ - $logging = ""; - if(isset($_POST['logging_syslog'])){ - $logging.= "syslog,"; - } - if(isset($_POST['logging_mysql'])){ - $logging.= "mysql,"; - } - $this->generic_settings['logging'] = trim($logging,","); + $this->generic_settings['logging'] = isset($_POST['logging']); /* Mail settings */ if(isset($_POST['vacationdir_active'])){