Added heaer and 2 constants
This commit is contained in:
@@ -1,9 +1,17 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/*************************************************************************************/
|
||||||
|
/* This file is part of the Thelia package. */
|
||||||
|
/* */
|
||||||
|
/* Copyright (c) OpenStudio */
|
||||||
|
/* email : dev@thelia.net */
|
||||||
|
/* web : http://www.thelia.net */
|
||||||
|
/* */
|
||||||
|
/* For the full copyright and license information, please view the LICENSE.txt */
|
||||||
|
/* file that was distributed with this source code. */
|
||||||
|
/*************************************************************************************/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* Thelia essential definitions
|
||||||
* @file
|
|
||||||
* Functions needed for Thelia bootstrap
|
|
||||||
*/
|
*/
|
||||||
define('DS' , DIRECTORY_SEPARATOR);
|
define('DS' , DIRECTORY_SEPARATOR);
|
||||||
define('THELIA_ROOT' , rtrim(realpath(dirname(__DIR__)), DS) . DS);
|
define('THELIA_ROOT' , rtrim(realpath(dirname(__DIR__)), DS) . DS);
|
||||||
@@ -11,6 +19,8 @@ define('THELIA_LOCAL_DIR' , THELIA_ROOT . 'local' . DS);
|
|||||||
define('THELIA_CONF_DIR' , THELIA_LOCAL_DIR . 'config' . DS);
|
define('THELIA_CONF_DIR' , THELIA_LOCAL_DIR . 'config' . DS);
|
||||||
define('THELIA_MODULE_DIR' , THELIA_LOCAL_DIR . 'modules' . DS);
|
define('THELIA_MODULE_DIR' , THELIA_LOCAL_DIR . 'modules' . DS);
|
||||||
define('THELIA_WEB_DIR' , THELIA_ROOT . 'web' . DS);
|
define('THELIA_WEB_DIR' , THELIA_ROOT . 'web' . DS);
|
||||||
|
define('THELIA_CACHE_DIR' , THELIA_ROOT . 'cache' . DS);
|
||||||
|
define('THELIA_LOG_DIR' , THELIA_ROOT . 'log' . DS);
|
||||||
define('THELIA_TEMPLATE_DIR' , THELIA_ROOT . 'templates' . DS);
|
define('THELIA_TEMPLATE_DIR' , THELIA_ROOT . 'templates' . DS);
|
||||||
|
|
||||||
$loader = require __DIR__ . "/vendor/autoload.php";
|
$loader = require __DIR__ . "/vendor/autoload.php";
|
||||||
@@ -21,6 +31,7 @@ if (!file_exists(THELIA_CONF_DIR . 'database.yml') && !defined('THELIA_INSTALL_M
|
|||||||
define('THELIA_INSTALL_MODE', true);
|
define('THELIA_INSTALL_MODE', true);
|
||||||
} else {
|
} else {
|
||||||
$request = \Thelia\Core\HttpFoundation\Request::createFromGlobals();
|
$request = \Thelia\Core\HttpFoundation\Request::createFromGlobals();
|
||||||
header('location: '.$request->getUriForPath('/install'));
|
header('Location: '.$request->getUriForPath('/install'));
|
||||||
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user