Prevent missing index error.
[xhtml-compiler.git] / common.php
blob98e8276cf25a22fe6c0f8cd31a103e83570d00e8
1 <?php
3 if (!version_compare(PHP_VERSION, "5", ">=")) exit('Requires PHP 5.');
5 // set working directory to parent directory (slightly hacky)
6 // if we want this to be able to be included in other apps,
7 // this must be removed
8 chdir( dirname(__FILE__) . '/../');
10 require_once 'htmlpurifier/HTMLPurifier.auto.php';
11 require_once 'configdoc/ConfigDoc.auto.php';
12 require_once 'functions.php';
14 require_once 'XHTMLCompiler.php';
15 require_once 'XHTMLCompiler/PHP.php';
16 require_once 'XHTMLCompiler/Exception.php';
18 require_once 'XHTMLCompiler/Page.php';
19 require_once 'XHTMLCompiler/File.php';
20 require_once 'XHTMLCompiler/Directory.php';
22 require_once 'XHTMLCompiler/RSSFeed.php';
24 require_once 'XHTMLCompiler/Filter.php';
25 require_once 'XHTMLCompiler/FilterManager.php';
26 require_once 'XHTMLCompiler/TextFilter.php';
27 require_once 'XHTMLCompiler/DOMFilter.php';
29 set_exception_handler('xhtmlcompiler_exception_handler');
30 XHTMLCompiler::getInstance(); // invoke the super-object