summaryrefslogtreecommitdiffstats
path: root/public/index.php
diff options
context:
space:
mode:
authorBjörn Geiger2011-06-25 17:25:07 +0200
committerBjörn Geiger2011-06-25 17:25:07 +0200
commitd8442b26f8404d5e7f1c156de167432c74a4ef46 (patch)
treed44e7f8814f0e318156e4f06f240d6cae40639a3 /public/index.php
parentSetup korrigiert (diff)
downloadpoolctrl-d8442b26f8404d5e7f1c156de167432c74a4ef46.tar.gz
poolctrl-d8442b26f8404d5e7f1c156de167432c74a4ef46.tar.xz
poolctrl-d8442b26f8404d5e7f1c156de167432c74a4ef46.zip
media ordner vom pbs2 hinzugefügt
Diffstat (limited to 'public/index.php')
-rw-r--r--public/index.php35
1 files changed, 26 insertions, 9 deletions
diff --git a/public/index.php b/public/index.php
index a7ade9f..b5ec528 100644
--- a/public/index.php
+++ b/public/index.php
@@ -1,26 +1,43 @@
<?php
-
+/*
+ * Copyright (c) 2011 - OpenSLX GmbH, RZ Uni Freiburg
+ * This program is free software distributed under the GPL version 2.
+ * See http://gpl.openslx.org/
+ *
+ * If you have any feedback please consult http://feedback.openslx.org/ and
+ * send your suggestions, praise, or complaints to feedback@openslx.org
+ *
+ * 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'));
+|| define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));
// Define application environment
defined('APPLICATION_ENV')
- || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
+|| define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
- realpath(APPLICATION_PATH . '/../library'),
- get_include_path(),
+realpath(APPLICATION_PATH . '/../library'),
+get_include_path(),
)));
/** Zend_Application */
require_once 'Zend/Application.php';
-// Create application, bootstrap, and run
+// Create application
$application = new Zend_Application(
- APPLICATION_ENV,
- APPLICATION_PATH . '/configs/application.ini'
+APPLICATION_ENV,
+APPLICATION_PATH . '/configs/application.ini'
);
+
+// Set Session lifetime
+if(stristr($_SERVER['HTTP_USER_AGENT'],'prebootGUI'))
+ Zend_Session::setOptions(array('cookie_lifetime' => null));
+else
+ Zend_Session::setOptions(array('cookie_lifetime' => '3600'));
+
+// Run bootstrap
$application->bootstrap()
- ->run(); \ No newline at end of file
+->run();