From 119ced43c00d8cc40c0f31da25b5829e9d7c0631 Mon Sep 17 00:00:00 2001 From: Sebastian Schmelzer Date: Wed, 11 Jan 2012 17:54:11 +0100 Subject: add favico --- application/layouts/default.phtml | 2 ++ application/modules/fbgui/layouts/rz.phtml | 2 ++ application/modules/user/layouts/user.phtml | 3 +++ public/favicon.ico | Bin 0 -> 4286 bytes public/index.php | 20 +++++++++++++------- public/settergetter.php | 26 +++++++++++++------------- setup/pbs.sql | 2 +- 7 files changed, 34 insertions(+), 21 deletions(-) create mode 100644 public/favicon.ico diff --git a/application/layouts/default.phtml b/application/layouts/default.phtml index a808047..90217f8 100644 --- a/application/layouts/default.phtml +++ b/application/layouts/default.phtml @@ -3,6 +3,8 @@ + + getRequest(); $this->headTitle()->append(ucwords($request->getControllerName())); diff --git a/application/modules/fbgui/layouts/rz.phtml b/application/modules/fbgui/layouts/rz.phtml index cecf38e..82dc5ba 100644 --- a/application/modules/fbgui/layouts/rz.phtml +++ b/application/modules/fbgui/layouts/rz.phtml @@ -2,6 +2,8 @@ + + getRequest(); diff --git a/application/modules/user/layouts/user.phtml b/application/modules/user/layouts/user.phtml index 6e29106..215ef02 100644 --- a/application/modules/user/layouts/user.phtml +++ b/application/modules/user/layouts/user.phtml @@ -1,6 +1,9 @@ doctype(); ?> + + + getRequest(); $this->headTitle()->append(ucwords($request->getControllerName())); diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..8618a97 Binary files /dev/null and b/public/favicon.ico differ diff --git a/public/index.php b/public/index.php index 7934852..b631d50 100644 --- a/public/index.php +++ b/public/index.php @@ -9,6 +9,7 @@ * * General information about OpenSLX can be found at http://openslx.org/ */ + // Define path to application directory defined('APPLICATION_PATH') || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application')); @@ -27,15 +28,20 @@ set_include_path(implode(PATH_SEPARATOR, array( require_once 'Zend/Application.php'; // Create application -$application = new Zend_Application( - APPLICATION_ENV, - APPLICATION_PATH . '/configs/application.ini' -); +try { + $application = new Zend_Application( + APPLICATION_ENV, + APPLICATION_PATH . '/configs/application.ini' + ); +} catch (Zend_Config_Exception $e) { + echo "

application.ini not found

"; + echo "
make sure you copied and modified application.ini.dist to application.ini"; +} // Set Session lifetime -if(stristr($_SERVER['HTTP_USER_AGENT'], 'prebootGUI')) - { Zend_Session::setOptions(array('cookie_lifetime' => null)); } -else { +if(stristr($_SERVER['HTTP_USER_AGENT'], 'prebootGUI')) { + Zend_Session::setOptions(array('cookie_lifetime' => null)); +} else { Zend_Session::setOptions(array('cookie_lifetime' => null)); Zend_Session::setOptions(array('gc_maxlifetime' => '1800')); } diff --git a/public/settergetter.php b/public/settergetter.php index 42cda16..f618eda 100644 --- a/public/settergetter.php +++ b/public/settergetter.php @@ -9,23 +9,23 @@ * * General information about OpenSLX can be found at http://openslx.org/ */ + function print_a($v) { echo"
"; print_r($v); echo"
"; } + function setget($name) { $withdash = $name; $withoutdash = substr($name, 1); return - ' public function get'.ucfirst($withoutdash).'() - { - return $this->'.$withdash.'; -} -public function set'.ucfirst($withoutdash).'($'.$withdash.') -{ -$this->'.$withdash.' = $'.$withdash.'; -} -'; + 'public function get'.ucfirst($withoutdash).'() { + return $this->'.$withdash.'; + } + public function set'.ucfirst($withoutdash).'($'.$withdash.') { + $this->'.$withdash.' = $'.$withdash.'; + }'; } + if(isset($_POST['submit'])) { $ar = explode("\n", trim($_POST['variables'])); @@ -41,11 +41,11 @@ else { ?> Jeweils ein Variablenname pro Zeile : -
+
'> - -
+
+