summaryrefslogtreecommitdiffstats
path: root/application/modules/user/controllers/BootosController.php
diff options
context:
space:
mode:
authormichael pereira2011-07-07 14:01:45 +0200
committermichael pereira2011-07-07 14:01:45 +0200
commitb2c5c02e03a8c7ca73e3c787006ad854de5f336a (patch)
tree6e953f3db08013de4eb2159826a6db49bd43a87f /application/modules/user/controllers/BootosController.php
parentremove parse error (diff)
downloadpbs2-b2c5c02e03a8c7ca73e3c787006ad854de5f336a.tar.gz
pbs2-b2c5c02e03a8c7ca73e3c787006ad854de5f336a.tar.xz
pbs2-b2c5c02e03a8c7ca73e3c787006ad854de5f336a.zip
Bootos zeigt nun an welche Dateien vorhanden sind. iPXE im Resource controller implementiert
Diffstat (limited to 'application/modules/user/controllers/BootosController.php')
-rw-r--r--application/modules/user/controllers/BootosController.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/application/modules/user/controllers/BootosController.php b/application/modules/user/controllers/BootosController.php
index 9bc6a69..f7fad49 100644
--- a/application/modules/user/controllers/BootosController.php
+++ b/application/modules/user/controllers/BootosController.php
@@ -85,13 +85,17 @@ class user_BootosController extends Zend_Controller_Action
}
$this->view->bootoslist = array_reverse($this->view->bootoslist);
-
+ $this->view->resources = array();
+
$groupMapper = new Application_Model_GroupMapper();
if(count($this->view->bootoslist)>0){
foreach ($this->view->bootoslist as $bootos){
if($bootos->getDefaultkcl() == null)
$bootos->setDefaultkcl("none (edit Bootos to set KCL)");
+ $this->view->resources[$bootos->getID()]['kernel'] = is_file("../resources/bootos/".$bootos->getID()."/kernel/kernel");
+ $this->view->resources[$bootos->getID()]['initramfs'] = is_file("../resources/bootos/".$bootos->getID()."/initramfs/initramfs");
+ $this->view->resources[$bootos->getID()]['config'] = is_file("../resources/bootos/".$bootos->getID()."/config/default.tgz");
$bootos->setGroupID("[".$bootos->getGroupID()."] ".$groupMapper->find($bootos->getGroupID())->getTitle());
$bootos->setCreated(date(Zend_Registry::get('dateformat'),$bootos->getCreated()));
$bootos->setExpires(date(Zend_Registry::get('dateformat'),$bootos->getExpires()));