index.php 617 B

123456789101112131415161718192021222324252627282930313233
  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. $f3 = \Base::instance();
  11. // Initialize App Menu
  12. $f3->set('GLOBALMENU', array());
  13. // Load Utility Class
  14. require_once "src/OpenMind/System/OMUtils.php";
  15. // Initialize Util library
  16. $frameworkUtils = new \OpenMind\System\OMUtils();
  17. // PHP Check Version
  18. $frameworkUtils->DieByOldPhpVersion();
  19. // Load configuration
  20. $frameworkUtils->LoadEncryptedConfig('cfg/config.bin');
  21. // Dynamic Module Loading
  22. $frameworkUtils->PluginLoader('src/');
  23. // Run Framework!!
  24. $f3->run();