diff options
| author | fisharebest <fisharebest@gmail.com> | 2010-04-16 13:00:27 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2010-04-16 13:00:27 +0000 |
| commit | ce9d25e7e0da5f0adb63aa383c6b3c38a4f80883 (patch) | |
| tree | a042eb4e1e81b1c0109d4a6486b34091dff2035d /includes/session_spider.php | |
| parent | 6ad33322bf22da6c4714e69f81591425349da467 (diff) | |
| download | webtrees-ce9d25e7e0da5f0adb63aa383c6b3c38a4f80883.tar.gz webtrees-ce9d25e7e0da5f0adb63aa383c6b3c38a4f80883.tar.bz2 webtrees-ce9d25e7e0da5f0adb63aa383c6b3c38a4f80883.zip | |
Diffstat (limited to 'includes/session_spider.php')
| -rw-r--r-- | includes/session_spider.php | 12 |
1 files changed, 4 insertions, 8 deletions
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; |
