index 6dca19771618fe0b7a997b4bf08f480f6a0ab27b..e6b96b10cd333da4261ba4a26cda2fd7828709d3 100644 (file)
"vacationdir_active" => FALSE);
var $generic_settings = array( "enableCopyPaste" => false,
"vacationdir_active" => FALSE);
var $generic_settings = array( "enableCopyPaste" => false,
+ "enableDNS" => false,
+ "enableDHCP" => false,
"wws_ou" => "ou=winstations",
"wws_ou_active" => FALSE,
"snapshot_active" => FALSE,
"wws_ou" => "ou=winstations",
"wws_ou_active" => FALSE,
"snapshot_active" => FALSE,
"smbhash" => 'SMBHASH',
"samba_rid_active" => FALSE);
"smbhash" => 'SMBHASH',
"samba_rid_active" => FALSE);
- var $sambaDomain_found = FALSE;
- var $use_netatalk = FALSE;
+ var $sambaDomain_found = FALSE;
+ var $use_netatalk = FALSE;
+ var $enableFAI_management = FALSE;
+ var $enableMimeType = FALSE;
- var $attributes = array("governmentmode","sambaidmapping","cyrusunixstyle","mail","use_netatalk");
+ var $timezone = "Europe/Berlin";
+ var $timezones = array();
+
+ var $attributes = array("governmentmode","sambaidmapping","cyrusunixstyle","mail","use_netatalk","enableFAI_management","timezone","enableMimeType");
var $called = FALSE;
function Step_Config2()
var $called = FALSE;
function Step_Config2()
$pwdhash= 'perl -MCrypt::SmbHash -e "print join(q[:], ntlmgen \$ARGV[0]), $/;"';
}
$pwdhash= 'perl -MCrypt::SmbHash -e "print join(q[:], ntlmgen \$ARGV[0]), $/;"';
}
+ $this->timezones = _get_tz_zones();
$this->samba_settings['smbhash'] = $pwdhash;
}
$this->samba_settings['smbhash'] = $pwdhash;
}
if(is_array($tmp) && isset($tmp['apple-user'])) {
$this->use_netatalk = TRUE;
}
if(is_array($tmp) && isset($tmp['apple-user'])) {
$this->use_netatalk = TRUE;
}
+
+ /* Check the FAI schema is used */
+ if(is_array($tmp) && isset($tmp['FAIclass'])){
+# $this->enableFAI_management = TRUE;
+ }
+
+ /* Check the MimeType schema is used */
+ if(is_array($tmp) && isset($tmp['gotoMimeType'])){
+ $this->enableMimeType = 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;
}
$this->called = TRUE;
}
foreach($this->attributes as $attr){
$smarty->assign($attr,$this->$attr);
}
foreach($this->attributes as $attr){
$smarty->assign($attr,$this->$attr);
}
+ $smarty->assign("timezone" ,$this->timezone);
+ $smarty->assign("timezones" ,$this->timezones);
return($smarty -> fetch (get_template_path("../setup/setup_config2.tpl")));
}
return($smarty -> fetch (get_template_path("../setup/setup_config2.tpl")));
}
{
if(isset($_POST['step6_posted'])){
{
if(isset($_POST['step6_posted'])){
+ if(isset($_POST['timezone']) && isset($this->timezones['TIMEZONES'][$_POST['timezone']])){
+ $this->timezone = $_POST['timezone'];
+ }
+
/* Get attributes */
foreach($this->attributes as $attr){
if(isset($_POST[$attr])){
/* Get attributes */
foreach($this->attributes as $attr){
if(isset($_POST[$attr])){
if(isset($_POST['enableCopyPaste'])){
$this->generic_settings['enableCopyPaste'] = get_post('enableCopyPaste');
}
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;
if(isset($_POST['wws_ou_active'])){
$this->generic_settings['wws_ou_active'] = TRUE;