From 04cf3914433415713303361dcdef3bf864d98444 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 14 Aug 2007 10:55:56 +0000 Subject: [PATCH] Added DNS and DHCP enable disable options into setup step 2 git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7059 594d385d-05f5-0310-b6e9-bd551577e9d8 --- contrib/gosa.conf | 10 ++++++++++ setup/class_setupStep_Config2.inc | 16 ++++++++++++++++ setup/setup_config2.tpl | 24 ++++++++++++++++++++++++ 3 files changed, 50 insertions(+) diff --git a/contrib/gosa.conf b/contrib/gosa.conf index 86e1d7b9f..3bbcdd2e0 100644 --- a/contrib/gosa.conf +++ b/contrib/gosa.conf @@ -173,6 +173,16 @@ {else} +{/if} +{if $cv.generic_settings.enableDNS} + +{else} + +{/if} +{if $cv.generic_settings.enableDHCP} + +{else} + {/if} diff --git a/setup/class_setupStep_Config2.inc b/setup/class_setupStep_Config2.inc index aa60c34c8..553bdef89 100644 --- a/setup/class_setupStep_Config2.inc +++ b/setup/class_setupStep_Config2.inc @@ -33,6 +33,8 @@ class Step_Config2 extends setup_step "vacationdir_active" => FALSE); var $generic_settings = array( "enableCopyPaste" => false, + "enableDNS" => false, + "enableDHCP" => false, "wws_ou" => "ou=winstations", "wws_ou_active" => FALSE, "snapshot_active" => FALSE, @@ -122,6 +124,14 @@ class Step_Config2 extends setup_step # $this->enableFAI_management = TRUE; } + if(is_array($tmp) && isset($tmp['dhcpClass'])){ + $this->generic_settings['enableDHCP'] = TRUE; + } + + if(is_array($tmp) && isset($tmp['dNSZone'])){ + $this->generic_settings['enableDNS'] = TRUE; + } + $this->called = TRUE; } @@ -179,6 +189,12 @@ class Step_Config2 extends setup_step if(isset($_POST['enableCopyPaste'])){ $this->generic_settings['enableCopyPaste'] = get_post('enableCopyPaste'); } + if(isset($_POST['enableDNS'])){ + $this->generic_settings['enableDNS'] = get_post('enableDNS'); + } + if(isset($_POST['enableDHCP'])){ + $this->generic_settings['enableDHCP'] = get_post('enableDHCP'); + } if(isset($_POST['wws_ou_active'])){ $this->generic_settings['wws_ou_active'] = TRUE; diff --git a/setup/setup_config2.tpl b/setup/setup_config2.tpl index bce647ec1..e216ddcdc 100644 --- a/setup/setup_config2.tpl +++ b/setup/setup_config2.tpl @@ -98,6 +98,30 @@ +
+
+ {t}Enable DNS extension{/t} +
+
+ + +
+
+ +
+
+ {t}Enable DHCP extension{/t} +
+
+ + +
+
+
{t}Enable FAI release management{/t} -- 2.30.2