2
0
mirror of https://github.com/boostorg/website.git synced 2026-01-23 06:02:18 +00:00
Files
website/doc/display_extra_docs.php
Daniel James 60ea43d74b Remove the 'zipfile' parameter, and supporting code.
Now BoostDocumentation is always from the file system. BoostArchive
always from a zipfile.
2016-03-06 22:23:05 +00:00

20 lines
394 B
PHP

<?php
if (strpos($_SERVER['REQUEST_URI'], '//') !== FALSE)
{
header("Location: http://$_SERVER[HTTP_HOST]".
preg_replace('@//+@','/', $_SERVER['REQUEST_URI']),
TRUE, 301);
exit(0);
}
require_once(dirname(__FILE__) . '/../common/code/boost.php');
$archive = new BoostDocumentation();
$archive->display_from_archive(
array(
array('', '@[.](html|htm)$@i','basic','text/html')
)
);