mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Removed indentation to satisfy coding standards in webroot/index.php in app/
This commit is contained in:
parent
dc0d05516a
commit
1253529c44
1 changed files with 31 additions and 31 deletions
|
@ -21,9 +21,9 @@
|
||||||
/**
|
/**
|
||||||
* Use the DS to separate the directories in other defines
|
* Use the DS to separate the directories in other defines
|
||||||
*/
|
*/
|
||||||
if (!defined('DS')) {
|
if (!defined('DS')) {
|
||||||
define('DS', DIRECTORY_SEPARATOR);
|
define('DS', DIRECTORY_SEPARATOR);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* These defines should only be edited if you have cake installed in
|
* These defines should only be edited if you have cake installed in
|
||||||
* a directory layout other than the way it is distributed.
|
* a directory layout other than the way it is distributed.
|
||||||
|
@ -34,16 +34,16 @@
|
||||||
* The full path to the directory which holds "app", WITHOUT a trailing DS.
|
* The full path to the directory which holds "app", WITHOUT a trailing DS.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
if (!defined('ROOT')) {
|
if (!defined('ROOT')) {
|
||||||
define('ROOT', dirname(dirname(dirname(__FILE__))));
|
define('ROOT', dirname(dirname(dirname(__FILE__))));
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* The actual directory name for the "app".
|
* The actual directory name for the "app".
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
if (!defined('APP_DIR')) {
|
if (!defined('APP_DIR')) {
|
||||||
define('APP_DIR', basename(dirname(dirname(__FILE__))));
|
define('APP_DIR', basename(dirname(dirname(__FILE__))));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The absolute path to the "cake" directory, WITHOUT a trailing DS.
|
* The absolute path to the "cake" directory, WITHOUT a trailing DS.
|
||||||
|
@ -63,30 +63,30 @@
|
||||||
* Change at your own risk.
|
* Change at your own risk.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
if (!defined('WEBROOT_DIR')) {
|
if (!defined('WEBROOT_DIR')) {
|
||||||
define('WEBROOT_DIR', basename(dirname(__FILE__)));
|
define('WEBROOT_DIR', basename(dirname(__FILE__)));
|
||||||
}
|
}
|
||||||
if (!defined('WWW_ROOT')) {
|
if (!defined('WWW_ROOT')) {
|
||||||
define('WWW_ROOT', dirname(__FILE__) . DS);
|
define('WWW_ROOT', dirname(__FILE__) . DS);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
|
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
|
||||||
if (function_exists('ini_set')) {
|
if (function_exists('ini_set')) {
|
||||||
ini_set('include_path', ROOT . DS . 'lib' . PATH_SEPARATOR . ini_get('include_path'));
|
ini_set('include_path', ROOT . DS . 'lib' . PATH_SEPARATOR . ini_get('include_path'));
|
||||||
}
|
|
||||||
if (!include('Cake' . DS . 'bootstrap.php')) {
|
|
||||||
$failed = true;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if (!include(CAKE_CORE_INCLUDE_PATH . DS . 'Cake' . DS . 'bootstrap.php')) {
|
|
||||||
$failed = true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (!empty($failed)) {
|
if (!include ('Cake' . DS . 'bootstrap.php')) {
|
||||||
trigger_error("CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your " . DS . "cake core directory and your " . DS . "vendors root directory.", E_USER_ERROR);
|
$failed = true;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
if (!include (CAKE_CORE_INCLUDE_PATH . DS . 'Cake' . DS . 'bootstrap.php')) {
|
||||||
|
$failed = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!empty($failed)) {
|
||||||
|
trigger_error("CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your " . DS . "cake core directory and your " . DS . "vendors root directory.", E_USER_ERROR);
|
||||||
|
}
|
||||||
|
|
||||||
App::uses('Dispatcher', 'Routing');
|
App::uses('Dispatcher', 'Routing');
|
||||||
|
|
||||||
$Dispatcher = new Dispatcher();
|
$Dispatcher = new Dispatcher();
|
||||||
$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));
|
$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));
|
||||||
|
|
Loading…
Reference in a new issue