boot.php 685 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace datainf\lib;
  3. ini_set('date.timezone', 'Asia/Shanghai');
  4. ini_set('memory_limit', '512M');
  5. /**
  6. *
  7. * Created by PhpStorm.
  8. * User: Administrator
  9. * Date: 2019/5/20
  10. * Time: 9:19
  11. */
  12. use datainf\lib\GlobConfigs;
  13. class boot
  14. {
  15. public static function init()
  16. {
  17. self::loadConsts();
  18. self::loadfunction();
  19. }
  20. public static function loadConsts()
  21. {
  22. require_once(realpath(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'Mconsts.php');
  23. GlobConfigs::getInstance()->getAll();
  24. }
  25. public static function loadfunction()
  26. {
  27. require_once(realpath(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'functions.php');
  28. }
  29. }