1
0
Fork 0
MySQLDumper/public/index.php
DSB 0841d9a7a3 Continued to switch the old configuration handling to the new one.
The configuration now is saved again.
(Installer is still to do)

QA
2012-08-05 17:05:08 +00:00

30 Zeilen
1 KiB
PHP

<?php
define('WORK_PATH', realpath(dirname(__FILE__) . '/../work'));
// Define path to application directory
defined('APPLICATION_PATH') || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));
defined('LIBRARY_PATH') || define('LIBRARY_PATH', realpath(dirname(__FILE__) . '/../library'));
// Define application environment
if (!defined('APPLICATION_ENV')) {
$appEnvironment = getenv('APPLICATION_ENV');
if ($appEnvironment !== false) {
define('APPLICATION_ENV', $appEnvironment);
} else {
define('APPLICATION_ENV', 'production');
}
unset($appEnvironment);
}
// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(LIBRARY_PATH, get_include_path())));
if (APPLICATION_ENV == 'development' && !class_exists('Debug')) {
include_once 'Debug.php';
}
require_once 'Zend/Application.php';
// Create application, bootstrap, and run
$application = new Zend_Application(APPLICATION_ENV, APPLICATION_PATH . '/configs/application.ini');
$application->bootstrap()->run();