From f7c047507d98f224665bc849d2c3b86347315ba2 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 10 May 2007 12:35:15 +0000 Subject: [PATCH] Removed snapshot settings from setup git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6346 594d385d-05f5-0310-b6e9-bd551577e9d8 --- contrib/gosa.conf | 15 ----- setup/class_setupStep_Config2.inc | 36 +----------- setup/setup_config2.tpl | 97 ------------------------------- 3 files changed, 1 insertion(+), 147 deletions(-) diff --git a/contrib/gosa.conf b/contrib/gosa.conf index 89922723f..2fc84e3cc 100644 --- a/contrib/gosa.conf +++ b/contrib/gosa.conf @@ -409,21 +409,6 @@ {if $cv.samba_settings.samba_rid_active} RIDBASE="{$cv.samba_settings.samba_rid_active}" {/if} -{if $cv.generic_settings.snapshot_active} - enable_snapshot="true" -{if $cv.generic_settings.snapshot_base != ""} - snapshot_base="{$cv.generic_settings.snapshot_base}" -{/if} -{if $cv.generic_settings.snapshot_user != ""} - snapshot_user="{$cv.generic_settings.snapshot_user}" -{/if} -{if $cv.generic_settings.snapshot_password != ""} - snapshot_password="{$cv.generic_settings.snapshot_password}" -{/if} -{if $cv.generic_settings.snapshot_server != ""} - snapshot_server="{$cv.generic_settings.snapshot_server}" -{/if} -{/if} {if $cv.samba_version != 0} sambaversion="{$cv.samba_version}" {/if} diff --git a/setup/class_setupStep_Config2.inc b/setup/class_setupStep_Config2.inc index d238af045..1e3bdea5e 100644 --- a/setup/class_setupStep_Config2.inc +++ b/setup/class_setupStep_Config2.inc @@ -34,12 +34,7 @@ class Step_Config2 extends setup_step var $generic_settings = array( "enableCopyPaste" => false, "wws_ou" => "ou=winstations", - "wws_ou_active" => FALSE, - "snapshot_active" => FALSE, - "snapshot_base" => "ou=snapshots,%base%", - "snapshot_user" => "%admin%", - "snapshot_password" => "", - "snapshot_server" => "%connection%"); + "wws_ou_active" => FALSE); var $samba_settings = array( "samba_sid" => "0-815-4711", "samba_sid_active" => FALSE, @@ -109,17 +104,6 @@ class Step_Config2 extends setup_step $this->called = TRUE; } - /* Update snapshot values, with already collected values */ - foreach($this->generic_settings as $key => $value){ - foreach(array("snapshot_base","snapshot_user","snapshot_server") as $attr){ - foreach($this->parent->captured_values as $replace_name => $replace_value){ - if(is_string($replace_value)) { - $this->generic_settings[$attr] = preg_replace("/%".$replace_name."%/",$replace_value,$this->generic_settings[$attr]); - } - } - } - } - $smarty = get_smarty(); $smarty->assign("sambaDomain_found",$this->sambaDomain_found); $smarty->assign("generic_settings",$this->generic_settings); @@ -167,24 +151,6 @@ class Step_Config2 extends setup_step $this->generic_settings['wws_ou_active'] = FALSE; } - if(isset($_POST['snapshot_active'])){ - $this->generic_settings['snapshot_active'] = TRUE; - if(isset($_POST['snapshot_base'])){ - $this->generic_settings['snapshot_base'] = get_post('snapshot_base'); - } - if(isset($_POST['snapshot_user'])){ - $this->generic_settings['snapshot_user'] = get_post('snapshot_user'); - } - if(isset($_POST['snapshot_password'])){ - $this->generic_settings['snapshot_password'] = get_post('snapshot_password'); - } - if(isset($_POST['snapshot_server'])){ - $this->generic_settings['snapshot_server'] = get_post('snapshot_server'); - } - }else{ - $this->generic_settings['snapshot_active'] = FALSE; - } - /* Samba settings */ if(isset($_POST['samba_sid_active'])){ $this->samba_settings['samba_sid_active'] = TRUE; diff --git a/setup/setup_config2.tpl b/setup/setup_config2.tpl index 5b35c4ecb..c3925f22a 100644 --- a/setup/setup_config2.tpl +++ b/setup/setup_config2.tpl @@ -135,103 +135,6 @@ - -

{t}Snapshots / Undo{/t}

- {if $generic_settings.snapshot_active == FALSE} -
-
- {t}Enable snapshots{/t} -
-
-
-
-
- {t}Snapshot base{/t} -
-
- -
-
-
-
- {t}Server{/t} -
-
- -
-
-
-
- {t}User{/t} -
-
- -
-
-
-
- {t}Password{/t} -
-
- -
-
-
- - {else} -
-
- {t}Enable snapshots{/t} -
-
-
-
-
- {t}Snapshot base{/t} -
-
- -
-
-
-
- {t}Server{/t} -
-
- -
-
-
-
- {t}User{/t} -
-
- -
-
-
-
- {t}Password{/t} -
-
- -
-
-
- {/if} -- 2.30.2