Base for a static organization website

index.php 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. * Get CakePHP's root directory
  24. */
  25. define('APP_DIR', 'app');
  26. define('DS', DIRECTORY_SEPARATOR);
  27. define('ROOT', dirname(__FILE__));
  28. define('WEBROOT_DIR', 'webroot');
  29. define('WWW_ROOT', ROOT . DS . APP_DIR . DS . WEBROOT_DIR . DS);
  30. /**
  31. * This only needs to be changed if the "cake" directory is located
  32. * outside of the distributed structure.
  33. * Full path to the directory containing "cake". Do not add trailing directory separator
  34. */
  35. if (!defined('CAKE_CORE_INCLUDE_PATH')) {
  36. define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'lib');
  37. }
  38. require APP_DIR . DS . WEBROOT_DIR . DS . 'index.php';