Location: PHPKode > scripts > HackerTrap > hackertrap/404.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: 404.php,v $ $Revision: 1.3 $   $Date: 2008-01-25 22:17:03-05 $
#

//
// Error Logger: 404 (Page Not Found 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 404 Not Found");
  die ("Page Not Found!");
}


ReadConfigurationParms();
include_once ("./hacktrap_logging.php");


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


// Check for a Banned Page
if ($status & STATUS_FORBIDDEN)
{
  // Check for customized file
  if (file_exists ('./templates/bannedPage_html.php'))
    include_once ('./templates/bannedPage_html.php');
  else
    include_once ('./templates/bannedPage_html-dist.php');
}
else
{
  // Check for customized file
  if (file_exists ("./templates/404_html.php"))
    include_once ('./templates/404_html.php');
  else
    include_once ('./templates/404_html-dist.php');
} //include_once (if ($status & STATUS_FORBIDDEN))

?>
Return current item: HackerTrap