2 HTMLPurifier.auto.php without spl_autoload_register but with userland
3 __autoload() defined test
6 if (function_exists('spl_autoload_register')) {
7 echo "skip - spl_autoload_register() available";
11 function __autoload($class) {
12 echo "Autoloading $class...
14 eval("class $class {}");
16 require '../library/HTMLPurifier.auto.php';
17 require 'HTMLPurifier/PHPT/loading/_no-autoload.inc';
18 $purifier = new HTMLPurifier();
21 Autoloading HTMLPurifier...