staticloader.php 448 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * Including all needed APIs and Libs
  4. */
  5. require_once('api/libs/api.compat.php');
  6. require_once('api/libs/api.yalfcore.php');
  7. //preventing loading of icecream on PHP < 5.6
  8. if (PHP_VERSION_ID >= 50638) {
  9. require_once('api/libs/api.ic.php');
  10. }
  11. $system = new YALFCore();
  12. $yalfLibs = $system->getLibs();
  13. if (!empty($yalfLibs)) {
  14. foreach ($yalfLibs as $eachLibPath => $eachYalfLayer) {
  15. require_once($eachLibPath);
  16. }
  17. }