index 872d8ccfa3f1fb5014480b09dbdc65ed2509094e..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,
var $sambaDomain_found = FALSE;
var $use_netatalk = FALSE;
var $enableFAI_management = FALSE;
var $sambaDomain_found = FALSE;
var $use_netatalk = FALSE;
var $enableFAI_management = FALSE;
+ var $enableMimeType = FALSE;
var $timezone = "Europe/Berlin";
var $timezones = array();
var $timezone = "Europe/Berlin";
var $timezones = array();
- var $attributes = array("governmentmode","sambaidmapping","cyrusunixstyle","mail","use_netatalk","enableFAI_management","timezone");
+ 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_timezones_array();
+ $this->timezones = _get_tz_zones();
$this->samba_settings['smbhash'] = $pwdhash;
}
$this->samba_settings['smbhash'] = $pwdhash;
}
# $this->enableFAI_management = TRUE;
}
# $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;
}
{
if(isset($_POST['step6_posted'])){
{
if(isset($_POST['step6_posted'])){
- if(isset($_POST['timezone']) && isset($this->timezones[$_POST['timezone']])){
+ if(isset($_POST['timezone']) && isset($this->timezones['TIMEZONES'][$_POST['timezone']])){
$this->timezone = $_POST['timezone'];
}
$this->timezone = $_POST['timezone'];
}
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;