X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=setup%2Fclass_setupStep_Config1.inc;h=1087b6a2b18af2da7ebc52cb32659aba184de84c;hb=484c83ff60fc5a427dd9e18be1c504d3dbb6e337;hp=8d4cf4f969e7e4ad43987f6af7b1937aa3278505;hpb=9c711551eae81c5c9914fb785b00869b31c70f83;p=gosa.git diff --git a/setup/class_setupStep_Config1.inc b/setup/class_setupStep_Config1.inc index 8d4cf4f96..1087b6a2b 100644 --- a/setup/class_setupStep_Config1.inc +++ b/setup/class_setupStep_Config1.inc @@ -29,6 +29,7 @@ class Step_Config1 extends setup_step var $uidbase = 1000; var $krbsasl = FALSE; var $strict = TRUE; + var $compressed = TRUE; var $header_image = "images/ldapserver.png"; var $account_expiration =FALSE; @@ -37,7 +38,6 @@ class Step_Config1 extends setup_step var $encryption = "crypt"; var $theme = "default"; - var $errorlvl = FALSE; var $include_personal_title = FALSE; @@ -55,14 +55,14 @@ class Step_Config1 extends setup_step var $crypt_methods = array(); - var $attributes = array("peopleou","groupou","peopledn","uidbase","encryption","theme","errorlvl","krbsasl", + var $attributes = array("compressed","peopleou","groupou","peopledn","uidbase","encryption","theme","krbsasl", "base_hook","base_hook_active","account_expiration","strict","include_personal_title"); function Step_Config1() { $this->update_strings(); - $tmp = @passwordMethod::get_available_methods_if_not_loaded(); + $tmp = @passwordMethod::get_available_methods(); foreach($tmp['name'] as $name){ $this->crypt_methods[$name] = $name; } @@ -146,7 +146,7 @@ class Step_Config1 extends setup_step /* Get attributes */ foreach($this->attributes as $attr){ if(isset($_POST[$attr])){ - $this->$attr = validate($_POST[$attr]); + $this->$attr = validate(get_post($attr)); } } @@ -164,7 +164,7 @@ class Step_Config1 extends setup_step if(isset($_POST['minid_active'])){ $this->id_settings['minid_active'] = TRUE; if(isset($_POST['minid'])){ - $this->id_settings['minid'] = $_POST['minid']; + $this->id_settings['minid'] = get_post('minid'); } }else{ $this->id_settings['minid_active'] = FALSE; @@ -174,7 +174,7 @@ class Step_Config1 extends setup_step if(isset($_POST['idgen_active'])){ $this->id_settings['idgen_active'] = TRUE; if(isset($_POST['idgen'])){ - $this->id_settings['idgen'] = $_POST['idgen']; + $this->id_settings['idgen'] = get_post('idgen'); } }else{ $this->id_settings['idgen_active'] = FALSE; @@ -184,7 +184,7 @@ class Step_Config1 extends setup_step if(isset($_POST['pwdiffer_active'])){ $this->pwd_rules['pwdiffer_active'] = TRUE; if(isset($_POST['pwdiffer'])){ - $this->pwd_rules['pwdiffer'] = $_POST['pwdiffer']; + $this->pwd_rules['pwdiffer'] = get_post('pwdiffer'); } }else{ $this->pwd_rules['pwdiffer_active'] = FALSE; @@ -194,7 +194,7 @@ class Step_Config1 extends setup_step if(isset($_POST['pwminlen_active'])){ $this->pwd_rules['pwminlen_active'] = TRUE; if(isset($_POST['pwminlen'])){ - $this->pwd_rules['pwminlen'] = $_POST['pwminlen']; + $this->pwd_rules['pwminlen'] = get_post('pwminlen'); } }else{ $this->pwd_rules['pwminlen_active'] = FALSE; @@ -204,7 +204,7 @@ class Step_Config1 extends setup_step if(isset($_POST['externalpwdhook_active'])){ $this->pwd_rules['externalpwdhook_active'] = TRUE; if(isset($_POST['externalpwdhook'])){ - $this->pwd_rules['externalpwdhook'] = $_POST['externalpwdhook']; + $this->pwd_rules['externalpwdhook'] = get_post('externalpwdhook'); } }else{ $this->pwd_rules['externalpwdhook_active'] = FALSE; @@ -214,7 +214,7 @@ class Step_Config1 extends setup_step if(isset($_POST['base_hook_active'])){ $this->pwd_rules['base_hook_active'] = TRUE; if(isset($_POST['base_hook'])){ - $this->pwd_rules['base_hook'] = $_POST['base_hook']; + $this->pwd_rules['base_hook'] = get_post('base_hook'); } }else{ $this->pwd_rules['base_hook_active'] = FALSE;