summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
Diffstat (limited to 'application')
-rw-r--r--application/Bootstrap.php4
-rw-r--r--application/controllers/IndexController.php18
-rw-r--r--application/modules/fbgui/controllers/IndexController.php19
3 files changed, 20 insertions, 21 deletions
diff --git a/application/Bootstrap.php b/application/Bootstrap.php
index cfa09f5..8ac8651 100644
--- a/application/Bootstrap.php
+++ b/application/Bootstrap.php
@@ -3,7 +3,9 @@
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
protected function _initAutoloader()
- {
+ {
+ setlocale(LC_ALL, "de_DE.UTF-8");
+ date_default_timezone_set('Europe/Berlin');
$moduleLoader = new Zend_Application_Module_Autoloader
(
array
diff --git a/application/controllers/IndexController.php b/application/controllers/IndexController.php
index 9a65853..2972e9e 100644
--- a/application/controllers/IndexController.php
+++ b/application/controllers/IndexController.php
@@ -4,23 +4,15 @@ class IndexController extends Zend_Controller_Action
{
public function init()
- {
- /* Initialize action controller here */
- if(stristr($_SERVER['HTTP_USER_AGENT'],'prebootGUI')){
- $redirector = $this->_helper->getHelper('Redirector');
- $redirector->gotoSimple('index',
- 'Index',
- 'fbgui',
- array('keys' => array_keys($_POST),
- 'post' => $_POST
- )
- );
-
- }
+ {
+ /* Initialize action controller here */
}
public function indexAction()
{
+ if(stristr($_SERVER['HTTP_USER_AGENT'],'prebootGUI')){
+ $this->_forward('index','Index','fbgui');
+ }
// action body
}
diff --git a/application/modules/fbgui/controllers/IndexController.php b/application/modules/fbgui/controllers/IndexController.php
index 5a99feb..c55ea50 100644
--- a/application/modules/fbgui/controllers/IndexController.php
+++ b/application/modules/fbgui/controllers/IndexController.php
@@ -10,11 +10,15 @@ class Fbgui_IndexController extends Zend_Controller_Action
public function indexAction()
{
- if(isset($this->_request->getParam('post')) && $this->_request->getParam('keys')){
- $data = $this->_request->getParam('post');
- $keys = $this->_request->getParam('keys');
- $_POST = array_combine ( $keys , $data );
- }
+
+ $keys = $this->_request->getParam('keys');
+ $post = $this->_request->getParam('post');
+ if($post != '' && $keys != ''){
+ $keys = $keys;
+ $post = $post;
+ $_POST = array_combine ( $keys , $post );
+ print_a($keys, $data,$_POST);
+ }
if(isset($_POST['bootisoID'])){
// Create a session
$n = new Pbs_Session();
@@ -44,11 +48,12 @@ class Fbgui_IndexController extends Zend_Controller_Action
// Request Bootmenu
$pbsFilter = new Pbs_Filter();
$bootmenuID = $pbsFilter->evaluate();
+ print_a('bootmenuID is ',$bootmenuID);
if($bootmenuID != null){
- $this->_redirect('/dev/bootmenu/index/bootmenuid/'.$bootmenuID);
+ #$this->_redirect('/dev/bootmenu/index/bootmenuid/'.$bootmenuID);
}
else{
- $this->_redirect('/dev/auth/index/');
+ #$this->_redirect('/dev/auth/index/');
}
}
else{