From b2c5c02e03a8c7ca73e3c787006ad854de5f336a Mon Sep 17 00:00:00 2001 From: michael pereira Date: Thu, 7 Jul 2011 14:01:45 +0200 Subject: Bootos zeigt nun an welche Dateien vorhanden sind. iPXE im Resource controller implementiert --- application/modules/user/controllers/BootosController.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'application/modules/user/controllers/BootosController.php') 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())); -- cgit v1.2.3-55-g7522