/cake/bootstrap.php
PHP | 48 lines | 17 code | 3 blank | 28 comment | 2 complexity | 9be046be1514c9a095d7bee6012c96be MD5 | raw file
- <?php
- /* SVN FILE: $Id$ */
- /**
- * Basic Cake functionality.
- *
- * Core functions for including other source files, loading models and so forth.
- *
- * PHP versions 4 and 5
- *
- * CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org)
- * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
- *
- * Licensed under The MIT License
- * Redistributions of files must retain the above copyright notice.
- *
- * @filesource
- * @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
- */
- if (!defined('PHP5')) {
- define('PHP5', (PHP_VERSION >= 5));
- }
- /**
- * 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();
- $url = null;
- App::import('Core', array('Dispatcher'));
- ?>