index.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
  14. *
  15. * Licensed under The MIT License
  16. * Redistributions of files must retain the above copyright notice.
  17. *
  18. * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
  19. * @link http://cakephp.org CakePHP(tm) Project
  20. * @since CakePHP(tm) v 0.2.9
  21. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  22. */
  23. /**
  24. * Get Cake'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. * This only needs to be changed if the "cake" directory is located
  33. * outside of the distributed structure.
  34. * Full path to the directory containing "cake". Do not add trailing directory separator
  35. */
  36. if (!defined('CAKE_CORE_INCLUDE_PATH')) {
  37. define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'lib');
  38. }
  39. require APP_DIR . DS . WEBROOT_DIR . DS . 'index.php';