index.php 641 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * @author Open Mind
  4. * @date 09/04/2018
  5. * @time 11:33
  6. */
  7. //error_reporting(E_ALL);
  8. // Init Framework
  9. require_once 'lib/f3/base.php';
  10. /** @var \Base $f3 */
  11. $f3 = \Base::instance();
  12. // Initialize App Menu
  13. $f3->set('GLOBALMENU', array());
  14. // Load Utility Class
  15. require_once "src/OpenMind/System/OMUtils.php";
  16. // Initialize Util library
  17. $frameworkUtils = new \OpenMind\System\OMUtils();
  18. // PHP Check Version
  19. $frameworkUtils->DieByOldPhpVersion();
  20. // Load configuration
  21. $frameworkUtils->LoadEncryptedConfig('cfg/config.bin');
  22. // Dynamic Module Loading
  23. $frameworkUtils->PluginLoader('src/');
  24. // Run Framework!!
  25. $f3->run();