From: hickert Date: Fri, 13 Apr 2007 08:27:59 +0000 (+0000) Subject: Added strict_units flag to setup X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=45d2271f7625336d3e413f05691ab45a4e1ee251;p=gosa.git Added strict_units flag to setup git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6045 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/contrib/gosa.conf b/contrib/gosa.conf index bdd67a00a..44541fd3d 100644 --- a/contrib/gosa.conf +++ b/contrib/gosa.conf @@ -299,6 +299,11 @@ {/if} {if $cv.optional.auto_network_hook_active} auto_network_hook="{$cv.optional.auto_network_hook} " +{/if} +{if $cv.optional.strict_units} + strict_units="true" +{else} + strict_units="false" {/if} lang="{$cv.lang_selected}" theme="{$cv.theme}" diff --git a/setup/class_setupStep_Config3.inc b/setup/class_setupStep_Config3.inc index 846868ffb..93a3656cd 100644 --- a/setup/class_setupStep_Config3.inc +++ b/setup/class_setupStep_Config3.inc @@ -24,6 +24,7 @@ class Step_Config3 extends setup_step { var $optional = array( "enableCopyPaste" => false, + "strict_units" => false, "forceglobals" => true, "forcessl" => false, "warnssl" => true, @@ -77,9 +78,7 @@ class Step_Config3 extends setup_step { $smarty = get_smarty(); $smarty->assign("bool",array(FALSE => _("No"), TRUE => _("Yes"))); - $smarty->assign("optional", $this->optional); - foreach($this->attributes as $attr){ $smarty->assign($attr,$this->$attr); } @@ -102,7 +101,7 @@ class Step_Config3 extends setup_step } } - foreach(array("noprimarygroup","enableCopyPaste","forceglobals","forcessl","warnssl","compile","debuglevel","session_lifetime","smbhash") as $name){ + foreach(array("strict_units","noprimarygroup","enableCopyPaste","forceglobals","forcessl","warnssl","compile","debuglevel","session_lifetime","smbhash") as $name){ if(isset($_POST[$name])){ $this->optional[$name] = stripslashes($_POST[$name]); } diff --git a/setup/setup_config2.tpl b/setup/setup_config2.tpl index 76f2aacf0..b7810aae5 100644 --- a/setup/setup_config2.tpl +++ b/setup/setup_config2.tpl @@ -113,7 +113,7 @@
- {t}Strict units{/t} + {t}Relaxed naming policies{/t}
+ {html_options options=$bool selected=$optional.strict_units} + +
+
+ {t}Infos in FAQ{/t}  + ! +
+
+
{t}PPd path{/t}