|
HTMLPurifier 4.4.0
|
00001 <?php 00002 00009 if (function_exists('spl_autoload_register') && function_exists('spl_autoload_unregister')) { 00010 // We need unregister for our pre-registering functionality 00011 HTMLPurifier_Bootstrap::registerAutoload(); 00012 if (function_exists('__autoload')) { 00013 // Be polite and ensure that userland autoload gets retained 00014 spl_autoload_register('__autoload'); 00015 } 00016 } elseif (!function_exists('__autoload')) { 00017 function __autoload($class) { 00018 return HTMLPurifier_Bootstrap::autoload($class); 00019 } 00020 } 00021 00022 if (ini_get('zend.ze1_compatibility_mode')) { 00023 trigger_error("HTML Purifier is not compatible with zend.ze1_compatibility_mode; please turn it off", E_USER_ERROR); 00024 } 00025 00026 // vim: et sw=4 sts=4