pictcode / index.php @ 0b1b8047
履歴 | 表示 | アノテート | ダウンロード (1.42 KB)
| 1 |
<?php
|
|---|---|
| 2 |
/**
|
| 3 |
* Requests collector.
|
| 4 |
*
|
| 5 |
* This file collects requests if:
|
| 6 |
* - no mod_rewrite is available or .htaccess files are not supported
|
| 7 |
* - requires App.baseUrl to be uncommented in app/Config/core.php
|
| 8 |
* - app/webroot is not set as a document root.
|
| 9 |
*
|
| 10 |
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
|
| 11 |
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
| 12 |
*
|
| 13 |
* Licensed under The MIT License
|
| 14 |
* For full copyright and license information, please see the LICENSE.txt
|
| 15 |
* Redistributions of files must retain the above copyright notice.
|
| 16 |
*
|
| 17 |
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
| 18 |
* @link http://cakephp.org CakePHP(tm) Project
|
| 19 |
* @since CakePHP(tm) v 0.2.9
|
| 20 |
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
| 21 |
*/
|
| 22 |
|
| 23 |
/**
|
| 24 |
* Get CakePHP's root directory
|
| 25 |
*/
|
| 26 |
define('APP_DIR', 'app'); |
| 27 |
define('DS', DIRECTORY_SEPARATOR); |
| 28 |
define('ROOT', dirname(__FILE__)); |
| 29 |
define('WEBROOT_DIR', 'webroot'); |
| 30 |
define('WWW_ROOT', ROOT . DS . APP_DIR . DS . WEBROOT_DIR . DS); |
| 31 |
|
| 32 |
/**
|
| 33 |
* This only needs to be changed if the "cake" directory is located
|
| 34 |
* outside of the distributed structure.
|
| 35 |
* Full path to the directory containing "cake". Do not add trailing directory separator
|
| 36 |
*/
|
| 37 |
if (!defined('CAKE_CORE_INCLUDE_PATH')) { |
| 38 |
define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'lib'); |
| 39 |
} |
| 40 |
|
| 41 |
require APP_DIR . DS . WEBROOT_DIR . DS . 'index.php'; |