Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 62 lines (61 sloc) 2.207 kB
e1f48bf @phpnut going thru trunk and cleaning up the file headers so API docs can be …
phpnut authored
1 <?php
1dce095 @phpnut merging changes from sandboxes
phpnut authored
2 /* SVN FILE: $Id$ */
cd86555 @phpnut moving cake to a sub directory
phpnut authored
3 /**
6baaa11 @phpnut [1125]
phpnut authored
4 * Requests collector.
8188061 @phpnut Merging fixes and enhancements into trunk
phpnut authored
5 *
4234bc9 I've added some fixes and new methods, hope this gets to be in the to…
pies authored
6 * This file collects requests if:
e5c074a @phpnut Merging fixes into 1.x.x.x branched code:
phpnut authored
7 * - no mod_rewrite is avilable or .htaccess files are not supported
8 * -/public is not set as a web root.
fbf4d9e @phpnut merging code from sandboxes since [430]
phpnut authored
9 *
10 * PHP versions 4 and 5
11 *
3f2fa69 @AD7six changing tabs for spaces in comment block indentation
AD7six authored
12 * CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org)
13 * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
fbf4d9e @phpnut merging code from sandboxes since [430]
phpnut authored
14 *
c7d02c8 @phpnut Merging changes to the trunk.
phpnut authored
15 * Licensed under The MIT License
16 * Redistributions of files must retain the above copyright notice.
fbf4d9e @phpnut merging code from sandboxes since [430]
phpnut authored
17 *
8188061 @phpnut Merging fixes and enhancements into trunk
phpnut authored
18 * @filesource
3f2fa69 @AD7six changing tabs for spaces in comment block indentation
AD7six authored
19 * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
20 * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
21 * @package cake
22 * @since CakePHP(tm) v 0.2.9
23 * @version $Revision$
24 * @modifiedby $LastChangedBy$
25 * @lastmodified $Date$
26 * @license http://www.opensource.org/licenses/mit-license.php The MIT License
4a87a75 - Two standard controllers -- PageController and TestsController
pies authored
27 */
28 /**
4234bc9 I've added some fixes and new methods, hope this gets to be in the to…
pies authored
29 * Get Cake's root directory
30 */
e5c074a @phpnut Merging fixes into 1.x.x.x branched code:
phpnut authored
31 define('APP_DIR', 'app');
32 define('DS', DIRECTORY_SEPARATOR);
33 define('ROOT', dirname(__FILE__));
34 define('WEBROOT_DIR', 'webroot');
35 define('WWW_ROOT', ROOT . DS . APP_DIR . DS . WEBROOT_DIR . DS);
8188061 @phpnut Merging fixes and enhancements into trunk
phpnut authored
36 /**
37 * This only needs to be changed if the cake installed libs are located
38 * outside of the distributed directory structure.
39 */
e5c074a @phpnut Merging fixes into 1.x.x.x branched code:
phpnut authored
40 if (!defined('CAKE_CORE_INCLUDE_PATH')) {
41 //define ('CAKE_CORE_INCLUDE_PATH', FULL PATH TO DIRECTORY WHERE CAKE CORE IS INSTALLED DO NOT ADD A TRAILING DIRECTORY SEPARATOR';
42 define('CAKE_CORE_INCLUDE_PATH', ROOT);
43 }
44 if (function_exists('ini_set')) {
45 ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . CAKE_CORE_INCLUDE_PATH . PATH_SEPARATOR . ROOT . DS . APP_DIR . DS);
46 define('APP_PATH', null);
47 define('CORE_PATH', null);
48 } else {
49 define('APP_PATH', ROOT . DS . APP_DIR . DS);
50 define('CORE_PATH', CAKE_CORE_INCLUDE_PATH . DS);
51 }
52 require CORE_PATH . 'cake' . DS . 'basics.php';
43b3b1a moving some bootstrapped stuff to dispatch and updating tests, added …
gwoo authored
53 $TIME_START = getMicrotime();
e5c074a @phpnut Merging fixes into 1.x.x.x branched code:
phpnut authored
54 require CORE_PATH . 'cake' . DS . 'config' . DS . 'paths.php';
549d86a @phpnut Refactoring dispatcher.
phpnut authored
55 require LIBS . 'object.php';
bab2df6 updating bootstrap and index
gwoo authored
56 require LIBS . 'inflector.php';
549d86a @phpnut Refactoring dispatcher.
phpnut authored
57 require LIBS . 'configure.php';
217923e @phpnut Merging changes into trunk
phpnut authored
58
549d86a @phpnut Refactoring dispatcher.
phpnut authored
59 $bootstrap = true;
43b3b1a moving some bootstrapped stuff to dispatch and updating tests, added …
gwoo authored
60 $url = null;
549d86a @phpnut Refactoring dispatcher.
phpnut authored
61 require APP_DIR . DS . WEBROOT_DIR . DS . 'index.php';
b2ba766 @phpnut fixing my local working copy
phpnut authored
62 ?>
Something went wrong with that request. Please try again.