index.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. * PHP 5
  11. *
  12. * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
  13. * Copyright (c), Cake Software Foundation, Inc. (http://cakefoundation.org)
  14. *
  15. * Licensed under The MIT License
  16. * For full copyright and license information, please see the LICENSE.txt
  17. * Redistributions of files must retain the above copyright notice.
  18. *
  19. * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
  20. * @link http://cakephp.org CakePHP(tm) Project
  21. * @since CakePHP(tm) v 0.2.9
  22. * @license http://www.opensource.org/licenses/mit-license.php MIT License
  23. */
  24. /**
  25. * Get Cake's root directory
  26. */
  27. define('APP_DIR', 'app');
  28. define('DS', DIRECTORY_SEPARATOR);
  29. define('ROOT', dirname(__FILE__));
  30. define('WEBROOT_DIR', 'webroot');
  31. define('WWW_ROOT', ROOT . DS . APP_DIR . DS . WEBROOT_DIR . DS);
  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. require APP_DIR . DS . WEBROOT_DIR . DS . 'index.php';