From ee2892a16ac18d432a899909f595ba6d5ec41eaa Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 30 Sep 2010 13:23:08 +0000 Subject: [PATCH] Load bootstrap methods from file git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19872 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../goto/Device/class_InstallRecipe.inc | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/gosa-plugins/goto/admin/systems/goto/Device/class_InstallRecipe.inc b/gosa-plugins/goto/admin/systems/goto/Device/class_InstallRecipe.inc index e130e0fdf..b8edebc7f 100644 --- a/gosa-plugins/goto/admin/systems/goto/Device/class_InstallRecipe.inc +++ b/gosa-plugins/goto/admin/systems/goto/Device/class_InstallRecipe.inc @@ -90,12 +90,28 @@ class InstallRecipe extends plugin $this->kickstartNTPServerList->setWidth("100%"); $this->kickstartNTPServerList->setHeight("70px"); + // Load list of bootstrap methods. + $this->__missingBoostrapList = $this->getBootstrapMethods(); + } + + function getBootstrapMethods() + { + $str = file_get_contents('/home/hickert/bootstrap.json'); + $items = json_decode($str, TRUE); + if(is_array($items)){ + $ret = array(); + foreach($items as $bst){ + $ret[$bst['name']]= $bst['title']; + } + return($ret); + } + return(NULL); } + function execute() { - if($this->setKickstartRootPasswordHash){ $this->dialog = TRUE; $smarty = get_smarty(); -- 2.30.2