Skip to content
Newer
Older
100644 84 lines (73 sloc) 2.23 KB
e1f48bf @phpnut going thru trunk and cleaning up the file headers so API docs can be …
phpnut authored Jul 4, 2005
1 <?php
1dce095 @phpnut merging changes from sandboxes
phpnut authored Sep 17, 2005
2 /* SVN FILE: $Id$ */
cd86555 @phpnut moving cake to a sub directory
phpnut authored May 15, 2005
3
4 /**
6baaa11 @phpnut [1125]
phpnut authored Oct 18, 2005
5 * Requests collector.
8188061 @phpnut Merging fixes and enhancements into trunk
phpnut authored Feb 16, 2006
6 *
4234bc9 I've added some fixes and new methods, hope this gets to be in the to…
pies authored May 29, 2005
7 * This file collects requests if:
8 * - no mod_rewrite is avilable or .htaccess files are not supported
9 * - /public is not set as a web root.
fbf4d9e @phpnut merging code from sandboxes since [430]
phpnut authored Aug 21, 2005
10 *
11 * PHP versions 4 and 5
12 *
13 * CakePHP : Rapid Development Framework <http://www.cakephp.org/>
8188061 @phpnut Merging fixes and enhancements into trunk
phpnut authored Feb 16, 2006
14 * Copyright (c) 2006, Cake Software Foundation, Inc.
c7d02c8 @phpnut Merging changes to the trunk.
phpnut authored Dec 23, 2005
15 * 1785 E. Sahara Avenue, Suite 490-204
16 * Las Vegas, Nevada 89104
fbf4d9e @phpnut merging code from sandboxes since [430]
phpnut authored Aug 21, 2005
17 *
c7d02c8 @phpnut Merging changes to the trunk.
phpnut authored Dec 23, 2005
18 * Licensed under The MIT License
19 * Redistributions of files must retain the above copyright notice.
fbf4d9e @phpnut merging code from sandboxes since [430]
phpnut authored Aug 21, 2005
20 *
8188061 @phpnut Merging fixes and enhancements into trunk
phpnut authored Feb 16, 2006
21 * @filesource
73830ec @phpnut Merging fixes and enhancements into trunk
phpnut authored Jan 20, 2006
22 * @copyright Copyright (c) 2006, Cake Software Foundation, Inc.
c7d02c8 @phpnut Merging changes to the trunk.
phpnut authored Dec 23, 2005
23 * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP Project
fbf4d9e @phpnut merging code from sandboxes since [430]
phpnut authored Aug 21, 2005
24 * @package cake
25 * @since CakePHP v 0.2.9
26 * @version $Revision$
27 * @modifiedby $LastChangedBy$
4a87a75 - Two standard controllers -- PageController and TestsController
pies authored May 22, 2005
28 * @lastmodified $Date$
fbf4d9e @phpnut merging code from sandboxes since [430]
phpnut authored Aug 21, 2005
29 * @license http://www.opensource.org/licenses/mit-license.php The MIT License
4a87a75 - Two standard controllers -- PageController and TestsController
pies authored May 22, 2005
30 */
4234bc9 I've added some fixes and new methods, hope this gets to be in the to…
pies authored May 29, 2005
31
4a87a75 - Two standard controllers -- PageController and TestsController
pies authored May 22, 2005
32 /**
4234bc9 I've added some fixes and new methods, hope this gets to be in the to…
pies authored May 29, 2005
33 * Get Cake's root directory
34 */
d44a364 @phpnut merging all changes done in sandbox for next release into the trunk
phpnut authored Oct 3, 2005
35 define ('APP_DIR', 'app');
4a87a75 - Two standard controllers -- PageController and TestsController
pies authored May 22, 2005
36 define ('DS', DIRECTORY_SEPARATOR);
37 define ('ROOT', dirname(__FILE__).DS);
cd86555 @phpnut moving cake to a sub directory
phpnut authored May 15, 2005
38
8188061 @phpnut Merging fixes and enhancements into trunk
phpnut authored Feb 16, 2006
39 /**
40 * This only needs to be changed if the cake installed libs are located
41 * outside of the distributed directory structure.
42 */
43 if (!defined('CAKE_CORE_INCLUDE_PATH'))
44 {
45 //define ('CAKE_CORE_INCLUDE_PATH', FULL PATH TO DIRECTORY WHERE CAKE CORE IS INSTALLED DO NOT ADD A TRAILING DIRECTORY SEPARATOR';
46 define('CAKE_CORE_INCLUDE_PATH', ROOT);
47 }
48
49 ini_set('include_path',ini_get('include_path').PATH_SEPARATOR.CAKE_CORE_INCLUDE_PATH.PATH_SEPARATOR.ROOT.DS.APP_DIR.DS);
50
51 require_once 'cake'.DS.'basics.php';
52 require_once 'config'.DS.'core.php';
53 require_once 'cake'.DS.'config'.DS.'paths.php';
6baaa11 @phpnut [1125]
phpnut authored Oct 18, 2005
54
d44a364 @phpnut merging all changes done in sandbox for next release into the trunk
phpnut authored Oct 3, 2005
55
56 $uri = setUri();
cd86555 @phpnut moving cake to a sub directory
phpnut authored May 15, 2005
57
3f10d74 - Cake didn't work without mod_rewrite, fixed (/index.php, /libs/rout…
pies authored Jun 5, 2005
58 /**
59 * As mod_rewrite (or .htaccess files) is not working, we need to take care
8188061 @phpnut Merging fixes and enhancements into trunk
phpnut authored Feb 16, 2006
60 * of what would normally be rewritten, i.e. the static files in app/webroot/
3f10d74 - Cake didn't work without mod_rewrite, fixed (/index.php, /libs/rout…
pies authored Jun 5, 2005
61 */
217923e @phpnut Merging changes into trunk
phpnut authored Dec 22, 2005
62 if ($uri === '/' || $uri === '/index.php')
63 {
64 $_GET['url'] = '/';
65 require_once ROOT.APP_DIR.DS.WEBROOT_DIR.DS.'index.php';
66 }
67 else
68 {
69 $elements = explode('/index.php', $uri);
d44a364 @phpnut merging all changes done in sandbox for next release into the trunk
phpnut authored Oct 3, 2005
70
217923e @phpnut Merging changes into trunk
phpnut authored Dec 22, 2005
71 if(!empty($elements[1]))
72 {
73 $path = $elements[1];
74 }
75 else
76 {
77 $path = '/';
78 }
79
80 $_GET['url'] = $path;
81
82 require_once ROOT.APP_DIR.DS.WEBROOT_DIR.DS.'index.php';
83 }
b2ba766 @phpnut fixing my local working copy
phpnut authored May 21, 2005
84 ?>
Something went wrong with that request. Please try again.