国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
976B

  1. <?php
  2. if (!defined('DEDEINC')) exit('dedebiz');
  3. /**
  4. * @file
  5. * Convenience file that registers autoload handler for HTML Purifier.
  6. * It also does some sanity checks.
  7. */
  8. if (function_exists('spl_autoload_register') && function_exists('spl_autoload_unregister')) {
  9. // We need unregister for our pre-registering functionality
  10. HTMLPurifier_Bootstrap::registerAutoload();
  11. if (function_exists('__autoload')) {
  12. // Be polite and ensure that userland autoload gets retained
  13. spl_autoload_register('__autoload');
  14. }
  15. } elseif (!function_exists('__autoload')) {
  16. require dirname(__FILE__) . '/HTMLPurifier.autoload-legacy.php';
  17. }
  18. // phpcs:ignore PHPCompatibility.IniDirectives.RemovedIniDirectives.zend_ze1_compatibility_modeRemoved
  19. if (ini_get('zend.ze1_compatibility_mode')) {
  20. trigger_error("HTML Purifier is not compatible with zend.ze1_compatibility_mode; please turn it off", E_USER_ERROR);
  21. }
  22. // vim: et sw=4 sts=4