Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 47 lines (42 sloc) 1.799 kB
4a87a75 - Two standard controllers -- PageController and TestsController
pies authored
1 <?PHP
cd86555 @phpnut moving cake to a sub directory
phpnut authored
2 //////////////////////////////////////////////////////////////////////////
3 // + $Id$
4 // +------------------------------------------------------------------+ //
bb71238 @phpnut change license to The MIT License
phpnut authored
5 // + Cake <https://developers.nextco.com/cake/> + //
a04f96d @phpnut modifying file headers
phpnut authored
6 // + Copyright: (c) 2005, Cake Authors/Developers + //
bb71238 @phpnut change license to The MIT License
phpnut authored
7 // + Author(s): Michal Tatarynowicz aka Pies <tatarynowicz@gmail.com> + //
8 // + Larry E. Masters aka PhpNut <nut@phpnut.com> + //
9 // + Kamil Dzielinski aka Brego <brego.dk@gmail.com> + //
cd86555 @phpnut moving cake to a sub directory
phpnut authored
10 // +------------------------------------------------------------------+ //
bb71238 @phpnut change license to The MIT License
phpnut authored
11 // + Licensed under The MIT License + //
12 // + Redistributions of files must retain the above copyright notice. + //
a04f96d @phpnut modifying file headers
phpnut authored
13 // + See: http://www.opensource.org/licenses/mit-license.php + //
cd86555 @phpnut moving cake to a sub directory
phpnut authored
14 //////////////////////////////////////////////////////////////////////////
15
16 /**
0a4a5e9 writing some docs, starting low...
brego authored
17 * This file collects requests if no mod_rewrite is avilable and / is used
18 * instead of /public/ as a web root.
4a87a75 - Two standard controllers -- PageController and TestsController
pies authored
19 *
20 * @filesource
21 * @author Cake Authors/Developers
22 * @copyright Copyright (c) 2005, Cake Authors/Developers
23 * @link https://developers.nextco.com/cake/wiki/Authors Authors/Developers
24 * @package cake
25 * @since Cake v 0.2.9
26 * @version $Revision$
27 * @modifiedby $LastChangedBy$
28 * @lastmodified $Date$
29 * @license http://www.opensource.org/licenses/mit-license.php The MIT License
30 */
31 /**
32 * Get Cake's root directory
cd86555 @phpnut moving cake to a sub directory
phpnut authored
33 */
4a87a75 - Two standard controllers -- PageController and TestsController
pies authored
34 define ('DS', DIRECTORY_SEPARATOR);
35 define ('ROOT', dirname(__FILE__).DS);
cd86555 @phpnut moving cake to a sub directory
phpnut authored
36
37 /**
0a4a5e9 writing some docs, starting low...
brego authored
38 * We need to redefine some constants and variables, so that Cake knows it is
39 * working without mod_rewrite.
40 */
cd86555 @phpnut moving cake to a sub directory
phpnut authored
41 define ('BASE_URL', $_SERVER['SCRIPT_NAME']);
42
43 $_GET['url'] = ltrim($_SERVER['PATH_INFO'],'/');
44
4a87a75 - Two standard controllers -- PageController and TestsController
pies authored
45 require (ROOT.'public/dispatch.php');
46
b2ba766 @phpnut fixing my local working copy
phpnut authored
47 ?>
Something went wrong with that request. Please try again.