From ce9d25e7e0da5f0adb63aa383c6b3c38a4f80883 Mon Sep 17 00:00:00 2001 From: fisharebest Date: Fri, 16 Apr 2010 13:00:27 +0000 Subject: --- includes/session_spider.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'includes/session_spider.php') diff --git a/includes/session_spider.php b/includes/session_spider.php index a894c8e976..f5068ac495 100644 --- a/includes/session_spider.php +++ b/includes/session_spider.php @@ -89,7 +89,7 @@ try { if ($banned_ip->comment) { $log_msg.=' ('.$banned_ip->comment.')'; } - AddToLog($log_msg); + AddToLog($log_msg, 'auth'); header('HTTP/1.1 403 Access Denied'); exit; } @@ -161,9 +161,7 @@ if ($quitReason != "") { //-- load db specific functions require_once WT_ROOT.'includes/functions/functions_db.php'; require_once WT_ROOT.'includes/authentication.php'; // -- load the authentication system - AddToLog("MSG>{$quitReason}; script terminated."); - AddToLog("UA>{$ua}<"); - AddToLog("URI>{$_SERVER["REQUEST_URI"]}<"); + AddToLog("MSG>{$quitReason}; script terminated. UA>{$ua}< >{$_SERVER["REQUEST_URI"]}<", 'auth'); } header("HTTP/1.0 403 Forbidden"); print "Hackers are not welcome here."; @@ -380,9 +378,7 @@ if(!empty($SEARCH_SPIDER)) { if ($logSpider) { //adds a message to the log that a new spider session is starting require_once WT_ROOT.'includes/authentication.php'; // -- Loaded early so AddToLog works - AddToLog("New search engine encountered: ->".$outstr."<-"); - AddToLog("UA>{$ua}<"); - AddToLog("URI>{$_SERVER["REQUEST_URI"]}<"); + AddToLog("New search engine encountered: ->".$outstr."<- UA>{$ua}< >{$_SERVER["REQUEST_URI"]}<", 'auth'); } } if(isset($_SESSION['last_spider_date'])) { @@ -390,7 +386,7 @@ if(!empty($SEARCH_SPIDER)) { //adds a message to the log that a new spider session is starting if ($logSpider) { require_once WT_ROOT.'includes/authentication.php'; // -- Loaded early so AddToLog works - AddToLog("Returning search engine last seen ".$_SESSION['spider_count']." times on ".$_SESSION['last_spider_date']." from ".$_SESSION['last_spider_ip']." ->".$outstr."<-"); + AddToLog("Returning search engine last seen ".$_SESSION['spider_count']." times on ".$_SESSION['last_spider_date']." from ".$_SESSION['last_spider_ip']." ->".$outstr."<-", 'auth'); } $_SESSION['last_spider_date'] = $spiderdate; $spidercount = 1; -- cgit v1.3