2
0
mirror of https://github.com/boostorg/website.git synced 2026-01-26 19:12:15 +00:00
Files
website/common/code/boost_config.php
Daniel James 029a5b902f Try to reduce the number of links on the 'bad links' report a little. Many are
just adding trailing slashes to avoid a 301 redirect.


[SVN r41546]
2007-12-01 20:01:57 +00:00

54 lines
1.1 KiB
PHP

<?php
/*
Copyright 2005-2007 Redshift Software, Inc.
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
*/
/*
BOOST_CONFIG_FILE
Path to local configuration, as a PHP source file.
BOOST_RSS_DIR
Path to directory with RSS feeds from Gmane.
ARCHIVE_PREFIX
Partial path for Boost release archives, the ZIP versions.
UNZIP
Unzip program to use to extract files from ZIPs.
ARCHIVE_FILE_PREFIX
Prefix for the root directory in the Boost ZIP archives.
*/
switch ($_SERVER['HTTP_HOST'])
{
case 'boost.org':
case 'www.boost.org':
case 'beta.boost.org':
{
define('BOOST_CONFIG_FILE','/home/grafik/www.boost.org/config.php');
}
break;
case 'localhost':
case 'boost.borg.redshift-software.com':
{
define('BOOST_CONFIG_FILE','/DevRoots/Boost/website/workplace/config.php');
}
break;
case 'boost-beta':
{
define('BOOST_CONFIG_FILE','/home/daniel/cpp/config.php');
}
break;
}
define('ARCHIVE_FILE_PREFIX', 'boost_');
require_once(BOOST_CONFIG_FILE);
?>