More svn:eol-style=native for XHTML files.
[xhtml-compiler.git] / common.php
blobcb8f05592a5b62c0c2da435d134a56bf0eee2478
1 <?php
3 if (!version_compare(PHP_VERSION, "5", ">=")) exit('Requires PHP 5.');
4 chdir('../'); // 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