25 lines
488 B
PHP
25 lines
488 B
PHP
<?php
|
|
|
|
if (!isset($env)) {
|
|
$env = 'prod';
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @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);
|
|
}
|