diff --git a/plugins/admin/systems/class_workstationStartup.inc b/plugins/admin/systems/class_workstationStartup.inc
index 11324ee9e23d837d4edbfa2832c1b15fe477df62..3d4d1300dbe8a2c6d3fff8f8c13efbf8f4539f2d 100644 (file)
<?php
+
class workstartup extends plugin
{
/* CLI vars */
/* Generic terminal attributes */
var $bootmode = "G";
var $goLdapServerList = array();
- var $gotoBootKernel = "";
+ var $gotoBootKernel = "default-inherited";
var $gotoKernelParameters = "";
var $gotoLdapServer = "default-inherited";
var $gotoModules = array();
var $FAIrelease = "";
var $FAIdebianMirror = "auto";
+ var $unresolved_classes = array();
/* FAI class selection */
var $InheritedFAIclass = array();
/* Contains all possible server/release/class settings */
var $FAIServRepConfig = array();
- function workstartup ($config, $dn= NULL)
+ function workstartup ($config, $dn= NULL, $parent= NULL)
{
- plugin::plugin ($config, $dn);
+ plugin::plugin ($config, $dn, $parent);
/* Creating a list of valid Mirrors
* none will not be saved to ldap.
}
}
+ /* Turn to default, if we've nothing to inherit */
+ if (!isset($this->gotoBootKernels['default-inherited']) && $this->gotoBootKernel == "default-inherited"){
+ $this->gotoBootKernel= "default";
+ }
+
if(count($this->FAIclass)==0 && $this->FAIrelease == ""){
$this->FAIdebianMirror = "inherited";
}
}
$smarty->assign("FAIdebianMirrors",$this->getFAIdebianMirrors());
+ $smarty->assign("FAIdebianMirror",$this->FAIdebianMirror);
$smarty->assign("FAIreleases",$this->getFAIreleases());
$smarty->assign("FAIrelease",$this->FAIrelease);
$smarty->assign("FAIclasses",$this->selectFriendlyClasses());
foreach($tmp as $class){
+ $marker = "";
+ if(in_array_ics($class,$this->unresolved_classes)){
+ $marker = " <font color='red'>("._("Not available in current setup").")</font>";
+ }
+
if($this->FAIdebianMirror == "inherited"){
$str = "";
}else{
$i ++ ;
$div->AddEntry(array(
- array("string"=>$class),
+ array("string"=>$class.$marker),
array("string"=>preg_replace("/\%s/",base64_encode($class),$str),"attach"=>"style='width:50px;border-right:none;'")
));
}
$eClasses .= $class." ";
}
- $this->FAIclass= array();
- print_red(sprintf(_("Can't resolve the given FAIclass(es) [%s] anyway, please check your FAI configurations, possibly some classes where deleted or renamed. !All classes have been removed from this account, press cancel if you don't want this to be saved."),$eClasses));
+ $this->unresolved_classes = $errorClasses;
+ $this->FAIdebianMirror = "auto";
+ //$this->FAIclass= array();
+ print_red(sprintf(_("Can't resolve the given FAIclass(es) [%s] anyway, please check your FAI configurations, possibly some classes where deleted or renamed. Server was reset to 'auto'."),$eClasses));
}
return($ret);
}