2005-07-04 00:48:04 +00:00
|
|
|
<?php
|
2005-05-15 21:41:38 +00:00
|
|
|
/**
|
2005-10-18 22:27:39 +00:00
|
|
|
* Requests collector.
|
2006-02-16 09:29:28 +00:00
|
|
|
*
|
2005-05-29 19:43:59 +00:00
|
|
|
* This file collects requests if:
|
2011-10-18 17:06:29 +00:00
|
|
|
* - no mod_rewrite is available or .htaccess files are not supported
|
2011-06-20 00:28:40 +00:00
|
|
|
* - requires App.baseUrl to be uncommented in app/Config/core.php
|
2009-05-01 21:05:46 +00:00
|
|
|
* - app/webroot is not set as a document root.
|
2005-08-21 06:49:02 +00:00
|
|
|
*
|
2017-06-10 21:33:55 +00:00
|
|
|
* CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
|
2017-06-10 22:10:52 +00:00
|
|
|
* Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
|
2005-08-21 06:49:02 +00:00
|
|
|
*
|
2005-12-23 21:57:26 +00:00
|
|
|
* Licensed under The MIT License
|
2013-02-08 12:22:51 +00:00
|
|
|
* For full copyright and license information, please see the LICENSE.txt
|
2005-12-23 21:57:26 +00:00
|
|
|
* Redistributions of files must retain the above copyright notice.
|
2005-08-21 06:49:02 +00:00
|
|
|
*
|
2017-06-10 22:10:52 +00:00
|
|
|
* @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
|
2017-06-10 21:33:55 +00:00
|
|
|
* @link https://cakephp.org CakePHP(tm) Project
|
2008-10-30 17:30:26 +00:00
|
|
|
* @since CakePHP(tm) v 0.2.9
|
2013-05-30 22:11:14 +00:00
|
|
|
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
2005-05-22 23:24:09 +00:00
|
|
|
*/
|
2012-04-30 23:41:43 +00:00
|
|
|
|
2005-05-22 23:24:09 +00:00
|
|
|
/**
|
2013-09-27 17:36:43 +00:00
|
|
|
* Get CakePHP's root directory
|
2005-05-29 19:43:59 +00:00
|
|
|
*/
|
2012-04-30 23:41:43 +00:00
|
|
|
define('APP_DIR', 'app');
|
|
|
|
define('DS', DIRECTORY_SEPARATOR);
|
|
|
|
define('ROOT', dirname(__FILE__));
|
|
|
|
define('WEBROOT_DIR', 'webroot');
|
|
|
|
define('WWW_ROOT', ROOT . DS . APP_DIR . DS . WEBROOT_DIR . DS);
|
|
|
|
|
2006-02-16 09:29:28 +00:00
|
|
|
/**
|
2009-05-01 21:05:46 +00:00
|
|
|
* This only needs to be changed if the "cake" directory is located
|
|
|
|
* outside of the distributed structure.
|
|
|
|
* Full path to the directory containing "cake". Do not add trailing directory separator
|
2006-02-16 09:29:28 +00:00
|
|
|
*/
|
2012-04-30 23:41:43 +00:00
|
|
|
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
|
|
|
|
define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'lib');
|
|
|
|
}
|
2009-05-01 21:05:46 +00:00
|
|
|
|
2012-04-30 23:41:43 +00:00
|
|
|
require APP_DIR . DS . WEBROOT_DIR . DS . 'index.php';
|