Blog-style website for karathan using the self-made Stellar Theme powered by HTML5Up http://blog.karathan.at

index.php 985B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php // @codingStandardsIgnoreFile
  2. /**
  3. * This file is part of Pico. It's copyrighted by the contributors recorded
  4. * in the version control history of the file, available from the following
  5. * original location:
  6. *
  7. * <https://github.com/picocms/Pico/blob/master/index.php.dist>
  8. *
  9. * SPDX-License-Identifier: MIT
  10. * License-Filename: LICENSE
  11. */
  12. // check PHP platform requirements
  13. if (PHP_VERSION_ID < 50306) {
  14. die('Pico requires PHP 5.3.6 or above to run');
  15. }
  16. if (!extension_loaded('dom')) {
  17. die("Pico requires the PHP extension 'dom' to run");
  18. }
  19. if (!extension_loaded('mbstring')) {
  20. die("Pico requires the PHP extension 'mbstring' to run");
  21. }
  22. // load dependencies
  23. require_once(__DIR__ . '/vendor/autoload.php');
  24. // instance Pico
  25. $pico = new Pico(
  26. __DIR__, // root dir
  27. 'config/', // config dir
  28. 'plugins/', // plugins dir
  29. 'themes/' // themes dir
  30. );
  31. // override configuration?
  32. //$pico->setConfig(array());
  33. // run application
  34. echo $pico->run();