Skip to content
This repository
Newer
Older
100644 73 lines (66 sloc) 1.986 kb
e1f48bf3 » phpnut
2005-07-04 going thru trunk and cleaning up the file headers so API docs can be …
1 <?php
1dce0955 » phpnut
2005-09-17 merging changes from sandboxes
2 /* SVN FILE: $Id$ */
cd865555 » phpnut
2005-05-15 moving cake to a sub directory
3
4 /**
6baaa112 » phpnut
2005-10-18 [1125]
5 * Requests collector.
fbf4d9ee » phpnut
2005-08-21 merging code from sandboxes since [430]
6 *
4234bc94 » pies
2005-05-29 I've added some fixes and new methods, hope this gets to be in the to…
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.
fbf4d9ee » phpnut
2005-08-21 merging code from sandboxes since [430]
10 *
11 * PHP versions 4 and 5
12 *
13 * CakePHP : Rapid Development Framework <http://www.cakephp.org/>
14 * Copyright (c) 2005, CakePHP Authors/Developers
15 *
16 * Author(s): Michal Tatarynowicz aka Pies <tatarynowicz@gmail.com>
17 * Larry E. Masters aka PhpNut <nut@phpnut.com>
18 * Kamil Dzielinski aka Brego <brego.dk@gmail.com>
19 *
20 * Licensed under The MIT License
21 * Redistributions of files must retain the above copyright notice.
22 *
4a87a753 » pies
2005-05-22 - Two standard controllers -- PageController and TestsController
23 * @filesource
fbf4d9ee » phpnut
2005-08-21 merging code from sandboxes since [430]
24 * @author CakePHP Authors/Developers
25 * @copyright Copyright (c) 2005, CakePHP Authors/Developers
26 * @link https://trac.cakephp.org/wiki/Authors Authors/Developers
27 * @package cake
28 * @since CakePHP v 0.2.9
29 * @version $Revision$
30 * @modifiedby $LastChangedBy$
4a87a753 » pies
2005-05-22 - Two standard controllers -- PageController and TestsController
31 * @lastmodified $Date$
fbf4d9ee » phpnut
2005-08-21 merging code from sandboxes since [430]
32 * @license http://www.opensource.org/licenses/mit-license.php The MIT License
4a87a753 » pies
2005-05-22 - Two standard controllers -- PageController and TestsController
33 */
4234bc94 » pies
2005-05-29 I've added some fixes and new methods, hope this gets to be in the to…
34
4a87a753 » pies
2005-05-22 - Two standard controllers -- PageController and TestsController
35 /**
4234bc94 » pies
2005-05-29 I've added some fixes and new methods, hope this gets to be in the to…
36 * Get Cake's root directory
37 */
d44a3642 » phpnut
2005-10-03 merging all changes done in sandbox for next release into the trunk
38 define ('APP_DIR', 'app');
4a87a753 » pies
2005-05-22 - Two standard controllers -- PageController and TestsController
39 define ('DS', DIRECTORY_SEPARATOR);
40 define ('ROOT', dirname(__FILE__).DS);
cd865555 » phpnut
2005-05-15 moving cake to a sub directory
41
d44a3642 » phpnut
2005-10-03 merging all changes done in sandbox for next release into the trunk
42 require_once ROOT.APP_DIR.DS.'config'.DS.'core.php';
43 require_once ROOT.APP_DIR.DS.'config'.DS.'paths.php';
44 require_once CAKE.'basics.php';
6baaa112 » phpnut
2005-10-18 [1125]
45
d44a3642 » phpnut
2005-10-03 merging all changes done in sandbox for next release into the trunk
46
47 $uri = setUri();
cd865555 » phpnut
2005-05-15 moving cake to a sub directory
48
3f10d747 » pies
2005-06-05 - Cake didn't work without mod_rewrite, fixed (/index.php, /libs/rout…
49 /**
50 * As mod_rewrite (or .htaccess files) is not working, we need to take care
6baaa112 » phpnut
2005-10-18 [1125]
51 * of what would normally be rewritten, i.e. the static files in /public
3f10d747 » pies
2005-06-05 - Cake didn't work without mod_rewrite, fixed (/index.php, /libs/rout…
52 */
d44a3642 » phpnut
2005-10-03 merging all changes done in sandbox for next release into the trunk
53 if ($uri === '/' || $uri === '/index.php')
6460f6e8 » phpnut
2005-07-10 Merging changes from revisions [337] [338] [339] [340] [341]
54 {
d44a3642 » phpnut
2005-10-03 merging all changes done in sandbox for next release into the trunk
55 $_GET['url'] = '/';
56 include_once (ROOT.APP_DIR.DS.WEBROOT_DIR.DS.'index.php');
6460f6e8 » phpnut
2005-07-10 Merging changes from revisions [337] [338] [339] [340] [341]
57 }
58 else
59 {
d44a3642 » phpnut
2005-10-03 merging all changes done in sandbox for next release into the trunk
60 $elements = explode('/index.php', $uri);
61 if(!empty($elements[1]))
6460f6e8 » phpnut
2005-07-10 Merging changes from revisions [337] [338] [339] [340] [341]
62 {
d44a3642 » phpnut
2005-10-03 merging all changes done in sandbox for next release into the trunk
63 $path = $elements[1];
6460f6e8 » phpnut
2005-07-10 Merging changes from revisions [337] [338] [339] [340] [341]
64 }
d44a3642 » phpnut
2005-10-03 merging all changes done in sandbox for next release into the trunk
65 else
6460f6e8 » phpnut
2005-07-10 Merging changes from revisions [337] [338] [339] [340] [341]
66 {
d44a3642 » phpnut
2005-10-03 merging all changes done in sandbox for next release into the trunk
67 $path = '/';
6460f6e8 » phpnut
2005-07-10 Merging changes from revisions [337] [338] [339] [340] [341]
68 }
d44a3642 » phpnut
2005-10-03 merging all changes done in sandbox for next release into the trunk
69 $_GET['url'] = $path;
70
71 include_once (ROOT.APP_DIR.DS.WEBROOT_DIR.DS.'index.php');
6460f6e8 » phpnut
2005-07-10 Merging changes from revisions [337] [338] [339] [340] [341]
72 }
b2ba7667 » phpnut
2005-05-21 fixing my local working copy
73 ?>
Something went wrong with that request. Please try again.