Ignore php.ini
[xhtml-compiler.git] / main.php
blob4fcb76c23a6233582e8330ce8fc44bf3173a252a
1 <?php
3 /**
4 * Takes a cache miss and generates the file if it is valid.
5 * @note Use ?purge=1 in order to force regeneration of the file
6 */
8 require 'common.php';
10 $xc = XHTMLCompiler::getInstance();
12 $page = get_page_from_get();
13 if ($page === false) $page = get_page_from_server();
14 $page = normalize_index($page, $xc->getConf('directory_index'));
16 $page = new XHTMLCompiler_Page($page);
17 $page->display();