staticloader.php 494 B

123456789101112131415161718192021222324
  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. require_once('api/libs/api.quicksearch.php');
  8. //preventing loading of icecream on PHP < 5.6
  9. if (PHP_VERSION_ID >= 50638) {
  10. require_once('api/libs/api.ic.php');
  11. }
  12. $system = new YALFCore();
  13. $yalfLibs = $system->getLibs();
  14. if (!empty($yalfLibs)) {
  15. foreach ($yalfLibs as $eachLibPath => $eachYalfLayer) {
  16. require_once($eachLibPath);
  17. }
  18. }