From f2c905017fe44af2a2534b2ff3f2bf8923fc8837 Mon Sep 17 00:00:00 2001 From: cajus Date: Thu, 20 Oct 2005 07:52:34 +0000 Subject: [PATCH] Added pre coded tasks git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1628 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiHookEntry.inc | 8 ++++---- plugins/admin/fai/faiHookEntry.tpl | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/plugins/admin/fai/class_faiHookEntry.inc b/plugins/admin/fai/class_faiHookEntry.inc index 70ed9f856..5e28e3898 100644 --- a/plugins/admin/fai/class_faiHookEntry.inc +++ b/plugins/admin/fai/class_faiHookEntry.inc @@ -13,7 +13,9 @@ class faiHookEntry extends plugin var $objectclasses= array(); var $orig_cn = ""; - + var $tasks = array("chboot", "configure", "debconf", "extrbase", "faiend", "finish", + "install", "instsoft", "mirror", "mountdisks", "partition", "prepareapt", + "savelog", "softupdate", "sysinfo"," updatebase"); var $Object_dn = ""; var $Object_cn = ""; var $Object_FAItask = ""; @@ -55,6 +57,7 @@ class faiHookEntry extends plugin $this->Object_FAIscript = $str; } } + $smarty->assign("tasks", $this->tasks); /* Magic quotes GPC, escapes every ' " \, to solve some security risks * If we post the escaped strings they will be escaped again @@ -89,9 +92,6 @@ class faiHookEntry extends plugin function check() { $message= array(); - if(empty($this->Object_FAItask)) { - $message[]=_("Please enter a value for task."); - } if(empty($this->Object_FAIscript)) { $message[]=_("Please enter a value for script."); } diff --git a/plugins/admin/fai/faiHookEntry.tpl b/plugins/admin/fai/faiHookEntry.tpl index 78fe9d369..1af7c5a63 100644 --- a/plugins/admin/fai/faiHookEntry.tpl +++ b/plugins/admin/fai/faiHookEntry.tpl @@ -31,11 +31,11 @@ - - - + -- 2.30.2