2006-01-17 05:13:38 +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
|
|
|
|
*
|
2007-02-02 10:39:45 +00:00
|
|
|
* CakePHP(tm) : Rapid Development Framework <http://www.cakephp.org/>
|
|
|
|
* Copyright 2005-2007, Cake Software Foundation, Inc.
|
2006-05-26 05:29:17 +00:00
|
|
|
* 1785 E. Sahara Avenue, Suite 490-204
|
|
|
|
* Las Vegas, Nevada 89104
|
2006-01-17 05:13:38 +00:00
|
|
|
*
|
|
|
|
* Licensed under The MIT License
|
|
|
|
* Redistributions of files must retain the above copyright notice.
|
|
|
|
*
|
|
|
|
* @filesource
|
2007-02-02 10:39:45 +00:00
|
|
|
* @copyright Copyright 2005-2007, Cake Software Foundation, Inc.
|
|
|
|
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
|
2006-05-26 05:29:17 +00:00
|
|
|
* @package cake
|
|
|
|
* @subpackage cake.cake
|
2007-02-02 10:39:45 +00:00
|
|
|
* @since CakePHP(tm) v 0.2.9
|
2006-05-26 05:29:17 +00:00
|
|
|
* @version $Revision$
|
|
|
|
* @modifiedby $LastChangedBy$
|
|
|
|
* @lastmodified $Date$
|
|
|
|
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
|
2006-01-17 05:13:38 +00:00
|
|
|
*/
|
2006-08-06 18:00:49 +00:00
|
|
|
if (!defined('PHP5')) {
|
2006-08-08 16:38:02 +00:00
|
|
|
define ('PHP5', (phpversion() >= 5));
|
2006-08-06 18:00:49 +00:00
|
|
|
}
|
2006-01-17 05:13:38 +00:00
|
|
|
/**
|
|
|
|
* Configuration, directory layout and standard libraries
|
|
|
|
*/
|
2006-05-26 05:29:17 +00:00
|
|
|
if (!isset($bootstrap)) {
|
|
|
|
require CORE_PATH . 'cake' . DS . 'basics.php';
|
2007-08-05 02:03:18 +00:00
|
|
|
$TIME_START = getMicrotime();
|
2006-05-26 05:29:17 +00:00
|
|
|
require CORE_PATH . 'cake' . DS . 'config' . DS . 'paths.php';
|
2007-07-25 04:38:28 +00:00
|
|
|
require LIBS . 'object.php';
|
2007-08-16 08:39:12 +00:00
|
|
|
require LIBS . 'inflector.php';
|
2007-07-25 04:38:28 +00:00
|
|
|
require LIBS . 'configure.php';
|
2006-05-26 05:29:17 +00:00
|
|
|
}
|
2007-08-16 08:39:12 +00:00
|
|
|
require APP_PATH . 'config' . DS . 'core.php';
|
2007-04-30 07:38:47 +00:00
|
|
|
require LIBS . 'cache.php';
|
2006-05-26 05:29:17 +00:00
|
|
|
require LIBS . 'session.php';
|
|
|
|
require LIBS . 'security.php';
|
2007-08-20 01:58:44 +00:00
|
|
|
require LIBS . 'string.php';
|
2007-04-30 07:38:47 +00:00
|
|
|
|
2007-06-20 06:15:35 +00:00
|
|
|
if (isset($cakeCache)) {
|
2007-04-30 07:38:47 +00:00
|
|
|
$cache = 'File';
|
|
|
|
$settings = array();
|
|
|
|
|
2007-06-20 06:15:35 +00:00
|
|
|
if (isset($cakeCache[0])) {
|
2007-04-30 07:38:47 +00:00
|
|
|
$cache = $cakeCache[0];
|
|
|
|
}
|
2007-06-20 06:15:35 +00:00
|
|
|
if (isset($cakeCache[1])) {
|
2007-04-30 07:38:47 +00:00
|
|
|
$settings = $cakeCache[1];
|
|
|
|
}
|
|
|
|
Cache::engine($cache, $settings);
|
|
|
|
} else {
|
|
|
|
Cache::engine();
|
|
|
|
}
|
2007-08-05 02:03:18 +00:00
|
|
|
|
2007-04-30 09:12:49 +00:00
|
|
|
Configure::store(null, 'class.paths');
|
|
|
|
Configure::load('class.paths');
|
2007-08-16 05:44:06 +00:00
|
|
|
|
|
|
|
if (defined('DEBUG')) {
|
|
|
|
Configure::write('debug', DEBUG);
|
|
|
|
}
|
2007-04-14 21:35:48 +00:00
|
|
|
/**
|
|
|
|
* Check for IIS Server
|
|
|
|
*/
|
|
|
|
if (!defined('SERVER_IIS') && php_sapi_name() == 'isapi') {
|
|
|
|
define('SERVER_IIS', true);
|
|
|
|
}
|
2006-02-25 19:20:18 +00:00
|
|
|
|
2007-08-05 02:03:18 +00:00
|
|
|
$url = null;
|
2006-05-26 05:29:17 +00:00
|
|
|
require CAKE . 'dispatcher.php';
|
2006-01-17 05:13:38 +00:00
|
|
|
?>
|