index 93a3656cd6803ef625e2bda625bfee88d1583836..ab31a3f3f3e2c72bf006c2069d0b7a0922eda0ea 100644 (file)
class Step_Config3 extends setup_step
{
class Step_Config3 extends setup_step
{
+ var $header_image= "images/ldapserver.png";
var $optional = array(
var $optional = array(
- "enableCopyPaste" => false,
"strict_units" => false,
"forceglobals" => true,
"forcessl" => false,
"strict_units" => false,
"forceglobals" => true,
"forcessl" => false,
+ "ldapstats" => false,
"warnssl" => true,
"ppd_path" => "/var/spool/ppd/",
"ppd_path_active" => FALSE,
"warnssl" => true,
"ppd_path" => "/var/spool/ppd/",
"ppd_path_active" => FALSE,
"notifydir" => "",
"notifydir_active" => FALSE,
"notifydir" => "",
"notifydir_active" => FALSE,
- "noprimarygroup" => FALSE,
- "smbhash" => 'SMBHASH');
+ "kioskpath" => "/var/spool/kiosk",
+ "kioskpath_active" => FALSE,
+
+ "noprimarygroup" => FALSE);
function Step_Config3()
{
$this->update_strings();
function Step_Config3()
{
$this->update_strings();
-
- /* Look for samba password generation method */
- if(file_exists("/usr/bin/mkntpasswd")){
- $pwdhash = "/usr/bin/mkntpasswd";
- } elseif (preg_match("/^Usage: mkntpwd /", shell_exec ("mkntpwd 2>&1"))){
- $pwdhash= "mkntpwd";
- } else {
- $pwdhash= 'perl -MCrypt::SmbHash -e "print join(q[:], ntlmgen \$ARGV[0]), $/;"';
- }
-
- $this->optional['smbhash'] = $pwdhash;
}
function update_strings()
{
$this->s_title = _("GOsa settings 3/3");
}
function update_strings()
{
$this->s_title = _("GOsa settings 3/3");
- $this->s_title_long = _("GOsa generic settings, page 3/3");
- $this->s_info = _("This dialog allows you to setup GOsa behaviour");
+ $this->s_title_long = _("GOsa settings 3/3");
+ $this->s_info = _("Tweak some GOsa core behaviour");
}
}
foreach($this->attributes as $attr){
$smarty->assign($attr,$this->$attr);
}
foreach($this->attributes as $attr){
$smarty->assign($attr,$this->$attr);
}
-
- $smarty->assign("warnings" ,$this->check());
- $smarty->assign("warnings_cnt" ,count($this->check()));
-
return($smarty -> fetch (get_template_path("../setup/setup_config3.tpl")));
}
return($smarty -> fetch (get_template_path("../setup/setup_config3.tpl")));
}
}
}
}
}
- foreach(array("strict_units","noprimarygroup","enableCopyPaste","forceglobals","forcessl","warnssl","compile","debuglevel","session_lifetime","smbhash") as $name){
+ foreach(array("strict_units","noprimarygroup","forceglobals","forcessl","ldapstats","warnssl","compile","debuglevel","session_lifetime") as $name){
if(isset($_POST[$name])){
$this->optional[$name] = stripslashes($_POST[$name]);
}
if(isset($_POST[$name])){
$this->optional[$name] = stripslashes($_POST[$name]);
}
$this->optional['mailQueueScriptPath_active'] = FALSE;
}
$this->optional['mailQueueScriptPath_active'] = FALSE;
}
+ if(isset($_POST['kioskpath_active'])){
+ $this->optional['kioskpath_active'] = TRUE;
+ if(isset($_POST['kioskpath'])){
+ $this->optional['kioskpath'] = $_POST['kioskpath'];
+ }
+ }else{
+ $this->optional['kioskpath_active'] = FALSE;
+ }
+
if(isset($_POST['auto_network_hook_active'])){
$this->optional['auto_network_hook_active'] = TRUE;
if(isset($_POST['auto_network_hook'])){
if(isset($_POST['auto_network_hook_active'])){
$this->optional['auto_network_hook_active'] = TRUE;
if(isset($_POST['auto_network_hook'])){