$maintenance_warning_file = "/tmp/maintenance_warning";
// maintenace warning check - added 10 May 2006 Jeffrey Hunt info@pdxi.net
if(file_exists($maintenance_warning_file))
{
// get file timestamp
$modtime = filemtime($maintenance_warning_file);
$shutting_down_time = $modtime + 900;
$time_difference = time() - $shutting_down_time;
define("MAINTENANCE_ALERT", true);
define("MAINTENANCE_TIME", $time_difference);
}
if(in_array($REMOTE_ADDR, array("203.89.227.194", "210.69.148.254", "208.23.74.100", "65.31.133.81", "24.37.81.233")) || strstr($REMOTE_ADDR, "212.188.9"))
{
header("HTTP/1.0 403 Forbidden");
echo "403 FORBIDDEN\n\n";
@ob_end_flush();
exit();
}
// check for sitesell referrers
if($HTTP_REFERER == "http://www.sitesell.com/cgi-bin/SearchIt/SearchIt.pl")
{
header("HTTP/1.0 403 Forbidden");
echo "403 FORBIDDEN\n\n";
// just in case output buffering was turned on
@ob_end_flush();
exit();
}
// Work around crazy browser bugs that mangle values passed to us
// This has been seen only in Chris's Netscape 6 browser
if ( isset($HTTP_POST_VARS) && is_array($HTTP_POST_VARS)) {
foreach(array_keys($HTTP_POST_VARS) as $postvar) {
if ( is_string($$postvar) ) {
$$postvar = str_replace(chr(169), ".",
$$postvar);
}
elseif ( is_array($$postvar) ) {
foreach (array_keys($$postvar) as $k) {
if ( is_string(${$postvar}[$k]) ) {
${$postvar}[$k] = str_replace(chr(169), ".", ${$postvar}[$k]);
}
}
}
}
}
if ( isset($HTTP_GET_VARS) && is_array($HTTP_GET_VARS)) {
foreach(array_keys($HTTP_GET_VARS) as $postvar) {
if ( is_string($$postvar) ) {
$$postvar = str_replace(chr(169), ".",
$$postvar);
}
elseif ( is_array($$postvar) ) {
foreach (array_keys($$postvar) as $k) {
if ( is_string(${$postvar}[$k]) ) {
${$postvar}[$k] = str_replace(chr(169), ".", ${$postvar}[$k]);
}
}
}
}
}
if ( ! isset($NAMEBOY_SESSION_INITIALIZED) && !$skip_session ) {
include("includes/session.inc");
}
if(!$skip_session)
{
require("engine/engine_header.inc");
}
if (!$title) { $title = $headerinfo; }
// 28 Sept 2005
// I'm overriding $title with a custom, literal title
// Jeffrey Hunt info@pdxi.net
?>
Nameboy Ultimate Domain Name Generator, search, creation, domain name lookup and domain registration
Nameboy.com will be closing for maintenance in approximately =(MAINTENANCE_TIME / 60); ?> minutes.