start.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /*
  3. | -------------------------------------------------------------
  4. | Check PHP Version
  5. | -------------------------------------------------------------
  6. | Check minimum version requirement of Cygnite
  7. | and trigger exception is not satisfied
  8. |
  9. */
  10. if (version_compare(PHP_VERSION, '5.3', '<') === true) {
  11. @set_magic_quotes_runtime(0); // Kill magic quotes
  12. die('Require PHP v5.3.8 or More! \n');
  13. }
  14. /*
  15. |--------------------------------------------------------------------------
  16. | Check Extensions
  17. |--------------------------------------------------------------------------
  18. |
  19. | Cygnite requires a few extensions to function. We will check if
  20. | extensions loaded. If not we'll just exit from here.
  21. |
  22. */
  23. if ( ! extension_loaded('mcrypt')) {
  24. echo 'Cygnite requires Mcrypt PHP extension.'.PHP_EOL;
  25. exit(1);
  26. }
  27. require 'initialize'.EXT;
  28. /*
  29. |--------------------------------------------------------------------------
  30. | Bootstrap process
  31. |--------------------------------------------------------------------------
  32. |
  33. | Booting process is done lets start the application
  34. */
  35. return $app->run();