2008-05-30 11:40:08 +00:00
|
|
|
<?php
|
|
|
|
/* SVN FILE: $Id$ */
|
|
|
|
/**
|
|
|
|
* Basic Cake functionality.
|
|
|
|
*
|
|
|
|
* Core functions for including other source files, loading models and so forth.
|
|
|
|
*
|
|
|
|
* PHP versions 4 and 5
|
|
|
|
*
|
2008-10-30 17:30:26 +00:00
|
|
|
* CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org)
|
|
|
|
* Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
|
2008-05-30 11:40:08 +00:00
|
|
|
*
|
|
|
|
* Licensed under The MIT License
|
|
|
|
* Redistributions of files must retain the above copyright notice.
|
|
|
|
*
|
|
|
|
* @filesource
|
2008-10-30 17:30:26 +00:00
|
|
|
* @copyright Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
|
|
|
|
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
|
|
|
|
* @package cake
|
|
|
|
* @subpackage cake.cake
|
|
|
|
* @since CakePHP(tm) v 0.2.9
|
|
|
|
* @version $Revision$
|
|
|
|
* @modifiedby $LastChangedBy$
|
|
|
|
* @lastmodified $Date$
|
|
|
|
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
|
2008-05-30 11:40:08 +00:00
|
|
|
*/
|
|
|
|
if (!defined('PHP5')) {
|
2008-11-08 02:54:07 +00:00
|
|
|
define('PHP5', (PHP_VERSION >= 5));
|
2008-05-30 11:40:08 +00:00
|
|
|
}
|
2009-08-01 12:36:57 +00:00
|
|
|
if (!defined('E_DEPRECATED')) {
|
|
|
|
define('E_DEPRECATED', 8192);
|
|
|
|
}
|
|
|
|
error_reporting(E_ALL & ~E_DEPRECATED);
|
2008-05-30 11:40:08 +00:00
|
|
|
/**
|
|
|
|
* Configuration, directory layout and standard libraries
|
|
|
|
*/
|
|
|
|
if (!isset($bootstrap)) {
|
|
|
|
require CORE_PATH . 'cake' . DS . 'basics.php';
|
|
|
|
$TIME_START = getMicrotime();
|
|
|
|
require CORE_PATH . 'cake' . DS . 'config' . DS . 'paths.php';
|
|
|
|
require LIBS . 'object.php';
|
|
|
|
require LIBS . 'inflector.php';
|
|
|
|
require LIBS . 'configure.php';
|
|
|
|
}
|
|
|
|
require LIBS . 'cache.php';
|
|
|
|
|
|
|
|
Configure::getInstance();
|
2008-06-11 15:47:47 +00:00
|
|
|
|
2008-05-30 11:40:08 +00:00
|
|
|
$url = null;
|
|
|
|
|
2009-11-07 22:53:14 +00:00
|
|
|
require CAKE . 'dispatcher.php';
|
2008-05-30 11:40:08 +00:00
|
|
|
?>
|