Location: PHPKode > scripts > HackerTrap > hackertrap/403.php
<?php
#
#  GreatWebScripts    http://www.GreatWebScripts.com
#
#  Copyright (c)2006, GreatWebScripts . All rights reserved.
#
#  No portion of this content may be copied, distributed or reproduced for any
#  reason without the express written consent of the owner. Federal copyright
#  law prohibits unauthorized reproduction by any means and imposes severe fines
#  for violation.
#

#
#  $RCSfile: 403.php,v $ $Revision: 1.3 $   $Date: 2008-01-25 22:17:03-05 $
#

//
// Error Logger: 403 (Forbidden Errors)
//
define ("GWS_GUARD", true);
global $hacktrap_db;

include_once ("./hacktrap.inc.php");
if (file_exists (CONFIG_FILE)) include_once ("./hacktrap_db_inc.php");


// Connect to database
ConnectDB (FALSE);
if (!$hacktrap_db)
{
  header("HTTP/1.0 403 Forbidden");
  die ("Page Not Found!");
}
ReadConfigurationParms();
include_once ("./hacktrap_logging.php");

// Log the error
$status = log_error (403);

// Check for already-blocked (banned) IP
if ($status & STATUS_BLOCKED)
{
  // Check for customized file
  if (file_exists ('./templates/bannedIP_html.php'))
    include_once ('./templates/bannedIP_html.php');
  else
    include_once ('./templates/bannedIP_html-dist.php');
}
else
{
  // Check for customized file
  if (file_exists ("./templates/403_html.php"))
    include_once ('./templates/403_html.php');
  else
    include_once ('./templates/403_html-dist.php');
} //include_once (if ($status & STATUS_BLOCKED))






?>
Return current item: HackerTrap