3 if (!version_compare(PHP_VERSION
, "5", ">=")) exit('Requires PHP 5.');
4 chdir( dirname(__FILE__
) . '/../'); // set working directory to parent directory (slightly hacky)
6 require_once 'htmlpurifier/HTMLPurifier.auto.php';
7 require_once 'functions.php';
9 require_once 'XHTMLCompiler.php';
10 require_once 'XHTMLCompiler/PHP.php';
11 require_once 'XHTMLCompiler/Exception.php';
13 require_once 'XHTMLCompiler/Page.php';
14 require_once 'XHTMLCompiler/File.php';
15 require_once 'XHTMLCompiler/Directory.php';
17 require_once 'XHTMLCompiler/RSSFeed.php';
19 require_once 'XHTMLCompiler/Filter.php';
20 require_once 'XHTMLCompiler/FilterManager.php';
21 require_once 'XHTMLCompiler/TextFilter.php';
22 require_once 'XHTMLCompiler/DOMFilter.php';
24 set_exception_handler('xhtmlcompiler_exception_handler');
25 XHTMLCompiler
::getInstance(); // invoke the super-object