From: hickert Date: Tue, 3 Apr 2007 11:02:49 +0000 (+0000) Subject: Updated gosa.conf creation. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=01575ee421376c7c11e6cc85a4e1a5dddb1207b8;p=gosa.git Updated gosa.conf creation. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5959 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/contrib/gosa.conf b/contrib/gosa.conf index 260ce431c..296794d67 100644 --- a/contrib/gosa.conf +++ b/contrib/gosa.conf @@ -21,8 +21,10 @@ path="plugins/gofax/faxaccount" /> - + @@ -86,7 +88,9 @@ - + @@ -149,7 +153,7 @@ - {servKolab} + %%VERGESESN KOLAB TAB %% @@ -182,7 +186,7 @@ - {kolabAccount} + %%VERGESESN KOLAB TAB %% @@ -194,9 +198,11 @@ database="OGo" datahost="localhost" /> - - - + @@ -235,44 +241,120 @@ -
- - - - + + > + + + + diff --git a/setup/class_setupStep6.inc b/setup/class_setupStep6.inc index 754f9ff7f..d5afff820 100644 --- a/setup/class_setupStep6.inc +++ b/setup/class_setupStep6.inc @@ -44,7 +44,7 @@ class setup_step_6 extends setup_step "samba_sid_active" => FALSE, "samba_rid" => 1000, "samba_rid_active" => FALSE); - var $attributes = array("strict","governmentmode","sambaidmapping","minid","account_expiration"); + var $attributes = array("strict","governmentmode","sambaidmapping","account_expiration"); function setup_step_6() { diff --git a/setup/class_setupStep8.inc b/setup/class_setupStep8.inc index 8a296489f..31ff4e97e 100644 --- a/setup/class_setupStep8.inc +++ b/setup/class_setupStep8.inc @@ -37,8 +37,11 @@ class setup_step_8 extends setup_step function get_conf_data() { - return("currently not implemented."); - } + $smarty = get_smarty(); + $smarty->assign("cv",$this->parent->captured_values); + $str = $smarty->fetch(CONFIG_TEMPLATE_DIR.$this->gosa_conf_name); + return($str); + } function execute() @@ -61,13 +64,21 @@ class setup_step_8 extends setup_step /* Downlaod config */ if(isset($_POST['getconf'])){ + header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); header("Cache-Control: no-cache"); header("Pragma: no-cache"); header("Cache-Control: post-check=0, pre-check=0"); header("Content-type: text/plain"); - header('Content-Disposition: attachment; filename="gosa.conf"'); + + if (preg_match('/MSIE 5.5/', $_SERVER['HTTP_USER_AGENT']) || + preg_match('/MSIE 6.0/', $_SERVER['HTTP_USER_AGENT'])){ + header('Content-Disposition: filename="gosa.conf"'); + } else { + header('Content-Disposition: attachment; filename="gosa.conf"'); + } + echo $this->get_conf_data(); exit(); } @@ -95,7 +106,7 @@ class setup_step_8 extends setup_step }else{ $data = $this->get_conf_data(); - if(!fwrite($fp,strlen($data))){ + if(!fwrite($fp,$data)){ $err_msg = sprintf(_("Can not write file '%s'. Please check folder permission and try again. Or use the manual method if this can not be fixed anyway."),CONFIG_DIR.$this->gosa_conf_name); $abort =TRUE; }else{