Code

Load bootstrap methods from file
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 30 Sep 2010 13:23:08 +0000 (13:23 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 30 Sep 2010 13:23:08 +0000 (13:23 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19872 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/Device/class_InstallRecipe.inc

index e130e0fdfbbd40ef9ddf9784ecfd5604171f89e7..b8edebc7f7558d0c5e91c9a95fc8e3cb3cd9449d 100644 (file)
@@ -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();