index.php 655 B

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