From: hickert Date: Thu, 30 Sep 2010 13:23:08 +0000 (+0000) Subject: Load bootstrap methods from file X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ee2892a16ac18d432a899909f595ba6d5ec41eaa;p=gosa.git Load bootstrap methods from file git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19872 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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();