index.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /**
  3. * Laravel - A clean and classy framework for PHP web development.
  4. *
  5. * @package Laravel
  6. * @version 1.5.0
  7. * @author Taylor Otwell
  8. * @link http://laravel.com
  9. */
  10. // --------------------------------------------------------------
  11. // The path to the application directory.
  12. // --------------------------------------------------------------
  13. define('APP_PATH', realpath('../application').'/');
  14. // --------------------------------------------------------------
  15. // The path to the system directory.
  16. // --------------------------------------------------------------
  17. define('SYS_PATH', realpath($system = '../system').'/');
  18. // --------------------------------------------------------------
  19. // The path to the public directory.
  20. // --------------------------------------------------------------
  21. define('PUBLIC_PATH', realpath(__DIR__).'/');
  22. // --------------------------------------------------------------
  23. // The path to the packages directory.
  24. // --------------------------------------------------------------
  25. define('PACKAGE_PATH', realpath('../packages').'/');
  26. // --------------------------------------------------------------
  27. // The path to the modules directory.
  28. // --------------------------------------------------------------
  29. define('MODULE_PATH', realpath('../modules').'/');
  30. // --------------------------------------------------------------
  31. // The path to the storage directory.
  32. // --------------------------------------------------------------
  33. define('STORAGE_PATH', realpath('../storage').'/');
  34. // --------------------------------------------------------------
  35. // The path to the directory containing the system directory.
  36. // --------------------------------------------------------------
  37. define('BASE_PATH', realpath(str_replace('system', '', $system)).'/');
  38. // --------------------------------------------------------------
  39. // Launch Laravel.
  40. // --------------------------------------------------------------
  41. require SYS_PATH.'laravel.php';