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
|
|
|
*
|
2010-10-03 16:38:58 +00:00
|
|
|
* PHP 5
|
2005-08-21 06:49:02 +00:00
|
|
|
*
|
2009-05-01 21:05:46 +00:00
|
|
|
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
|
2011-05-29 21:31:39 +00:00
|
|
|
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
|
2005-08-21 06:49:02 +00:00
|
|
|
*
|
2005-12-23 21:57:26 +00:00
|
|
|
* Licensed under The MIT License
|
|
|
|
* Redistributions of files must retain the above copyright notice.
|
2005-08-21 06:49:02 +00:00
|
|
|
*
|
2011-05-29 21:31:39 +00:00
|
|
|
* @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
|
2010-01-26 19:18:20 +00:00
|
|
|
* @link http://cakephp.org CakePHP(tm) Project
|
2008-10-30 17:30:26 +00:00
|
|
|
* @since CakePHP(tm) v 0.2.9
|
2009-05-01 21:05:46 +00:00
|
|
|
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
|
2005-05-22 23:24:09 +00:00
|
|
|
*/
|
|
|
|
/**
|
2005-05-29 19:43:59 +00:00
|
|
|
* Get Cake's root directory
|
|
|
|
*/
|
2006-05-26 05:29:17 +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
|
|
|
*/
|
2006-05-26 05:29:17 +00:00
|
|
|
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
|
2011-04-17 06:29:02 +00:00
|
|
|
define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'lib');
|
2006-05-26 05:29:17 +00:00
|
|
|
}
|
2009-05-01 21:05:46 +00:00
|
|
|
|
2007-07-25 04:38:28 +00:00
|
|
|
require APP_DIR . DS . WEBROOT_DIR . DS . 'index.php';
|