00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 if (!defined('DS')) {
00031 define('DS', DIRECTORY_SEPARATOR);
00032 }
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043 if (!defined('ROOT')) {
00044 define('ROOT', dirname(dirname(dirname(__FILE__))));
00045 }
00046
00047
00048
00049
00050 if (!defined('APP_DIR')) {
00051 define('APP_DIR', basename(dirname(dirname(__FILE__))));
00052 }
00053
00054
00055
00056
00057 if (!defined('CAKE_CORE_INCLUDE_PATH')) {
00058 define('CAKE_CORE_INCLUDE_PATH', ROOT);
00059 }
00060
00061
00062
00063
00064
00065
00066 if (!defined('WEBROOT_DIR')) {
00067 define('WEBROOT_DIR', basename(dirname(__FILE__)));
00068 }
00069 if (!defined('WWW_ROOT')) {
00070 define('WWW_ROOT', dirname(__FILE__) . DS);
00071 }
00072 if (!defined('CORE_PATH')) {
00073 if (function_exists('ini_set') && ini_set('include_path', CAKE_CORE_INCLUDE_PATH . PATH_SEPARATOR . ROOT . DS . APP_DIR . DS . PATH_SEPARATOR . ini_get('include_path'))) {
00074 define('APP_PATH', null);
00075 define('CORE_PATH', null);
00076 } else {
00077 define('APP_PATH', ROOT . DS . APP_DIR . DS);
00078 define('CORE_PATH', CAKE_CORE_INCLUDE_PATH . DS);
00079 }
00080 }
00081 if (!include(CORE_PATH . 'cake' . DS . 'bootstrap.php')) {
00082 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);
00083 }
00084 if (isset($_GET['url']) && $_GET['url'] === 'favicon.ico') {
00085 return;
00086 } else {
00087 $Dispatcher = new Dispatcher();
00088 $Dispatcher->dispatch($url);
00089 }
00090 if (Configure::read() > 0) {
00091 echo "<!-- " . round(getMicrotime() - $TIME_START, 4) . "s -->";
00092 }
00093 ?>