summaryrefslogtreecommitdiffstats
path: root/application/modules/user/controllers/PrebootController.php
diff options
context:
space:
mode:
authorSimon2011-04-12 14:11:39 +0200
committerSimon2011-04-12 14:11:39 +0200
commitbb40ce261f84adfc03cbe9132216367affa38d6b (patch)
treea5e128f73cdf475424ee3a6cd0e9408b49fd4c59 /application/modules/user/controllers/PrebootController.php
parentDefault-User added (diff)
parentMerge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2 (diff)
downloadpbs2-bb40ce261f84adfc03cbe9132216367affa38d6b.tar.gz
pbs2-bb40ce261f84adfc03cbe9132216367affa38d6b.tar.xz
pbs2-bb40ce261f84adfc03cbe9132216367affa38d6b.zip
Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2
Diffstat (limited to 'application/modules/user/controllers/PrebootController.php')
-rw-r--r--application/modules/user/controllers/PrebootController.php13
1 files changed, 8 insertions, 5 deletions
diff --git a/application/modules/user/controllers/PrebootController.php b/application/modules/user/controllers/PrebootController.php
index e74dd3f..0a1432c 100644
--- a/application/modules/user/controllers/PrebootController.php
+++ b/application/modules/user/controllers/PrebootController.php
@@ -1,4 +1,4 @@
-<?php
+l<?php
class User_PrebootController extends Zend_Controller_Action
{
@@ -25,7 +25,7 @@ class User_PrebootController extends Zend_Controller_Action
$this->db = Zend_Db_Table::getDefaultAdapter();
} else {
$this->_helper->redirector('login', 'auth');
- }
+ }
$this->page = $this->_request->getParam('page');
}
@@ -170,10 +170,13 @@ class User_PrebootController extends Zend_Controller_Action
$prebootdate = strtotime(trim(str_replace('Last-Modified:', '', array_pop($prebootdate))));
- if(is_file("../resources/bootmedium/$prebootID/preboot.zip"))
+ if(is_file("../resources/bootmedium/$prebootID/preboot.zip")){
$prebootolddate = filemtime("../resources/bootmedium/".$prebootID."/preboot.zip");
- else
- $prebootolddate = false;
+ }else{
+ $pbsNotifier = new Pbs_Notifier();
+ $this->view->notification = $pbsNotifier->notify('There are updates available','ok');
+ return true;
+ }
//print_a($prebootname,$prebootdate,$prebootolddate);