Files
sterivein/core/bootstrap.php
Manuel Raynaud 630ac72aaa reindente some code
verify if config database file exists beforeinitializing Propel
2013-01-24 20:45:16 +01:00

20 lines
447 B
PHP

<?php
/**
*
* @file
* Functions needed for Thelia bootstrap
*/
define('THELIA_ROOT', __DIR__ .'/../');
define('THELIA_CONF_DIR', THELIA_ROOT . '/local/config');
define('THELIA_PLUGIN_DIR', THELIA_ROOT . '/local/plugins');
$loader = require __DIR__ . '/autoload.php';
if (file_exists(THELIA_ROOT . '/local/config/config_db.php')) {
require THELIA_ROOT . '/local/config/config_db.php';
} else {
define('THELIA_INSTALL_MODE',true);
}