<?php
// We're going to grab Settings if it exists in the upper directory,
// if not, we'll include the index from the upper directory until we
// get to the Settings, and can then redirect to the main site.
if (file_exists('../Settings.php'))
{
include_once('../Settings.php');
header("Location: $boardurl");
exit();
}
elseif (file_exists('../index.php'))
include_once('../index.php');
elseif (file_exists('../../Settings.php'))
{
include_once('../../Settings.php');
header("Location: $boardurl");
exit();
}
elseif (file_exists('../../index.php'))
include_once('../../index.php');
// Something's up, as we can't find an index or setting file for
// this direct reference to your directory. So, as a safeguard to
// protect you, we'll just send them to lunabyte and get them off
// your system.
else
header("Location: http//www.lunabyte.net");
?>