]> dev.renevier.net Git - syj.git/blobdiff - public/index.php
add mapquest layer back
[syj.git] / public / index.php
index f38470ed27adac05dfd59c47fdd09b915792d073..b2a875f860cac7448b26d3d358d51f792880f1dd 100644 (file)
@@ -1,32 +1,5 @@
 <?php
 
-// Define path to application directory
-defined('APPLICATION_PATH')
-    || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));
+require_once ('init.php');
 
-// Define application environment
-defined('APPLICATION_ENV')
-    || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
-
-// set include directories to '.' and ../library
-set_include_path('.' . PATH_SEPARATOR . realpath(APPLICATION_PATH . '/../library'));
-
-/** Zend_Application */
-require_once 'Zend/Application.php';
-
-// Create application, bootstrap, and run
-$application = new Zend_Application(
-    APPLICATION_ENV,
-    APPLICATION_PATH . '/configs/application.ini'
-);
-
-# we use this function as a marker so xgettext knows it must extract this
-# string. This function can be used when string must be translated, but not at
-# the place it's called. For example, Zend_Form uses a translator to translate
-# string it has been given. So, we must pass it a non translated string.
-function __($str) {
-    return $str;
-}
-
-$application->bootstrap()
-            ->run();
+$application->bootstrap()->run();