diff --git a/plugins/admin/systems/class_servGeneric.inc b/plugins/admin/systems/class_servGeneric.inc
index f685d2703b27c397e6fd7ad6626a53f1e0e79ce7..0c43263ff4966c65c7d412ee442c5df95f1719b3 100644 (file)
var $orig_dn= "";
/* attribute list for save action */
- var $attributes= array("cn", "description");
+ var $attributes= array("cn", "description","gotoMode");
var $objectclasses= array("top", "GOhard", "goServer");
+ var $gotoMode= "locked";
+
var $netConfigDNS;
+ var $modes = array();
function servgeneric ($config, $dn= NULL)
{
plugin::plugin ($config, $dn);
+ $this->modes["active"]= _("Activated");
+ $this->modes["locked"]= _("Locked");
+ $this->modes["memcheck"]= _("Memory test");
+ $this->modes["sysinfo"]= _("System analysis");
+
/* Set base */
if ($this->dn == "new"){
$ui= get_userinfo();
$smarty->assign("actions", array("wake" => _("Wake up")));
}
-
/* Show main page */
$smarty->assign("netconfig", $this->netConfigDNS->execute());
+ $smarty->assign("modes", $this->modes);
return($smarty->fetch (get_template_path('server.tpl', TRUE)));
}