From 1fabf3fd335ec9613b63478b621b8690f56266a1 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Thu, 31 Dec 2009 17:42:57 +0000 Subject: [PATCH] A lot spaces removed, array with server_name extended (SELECT query was extended, too) --- libs/lib_detector.php | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/libs/lib_detector.php b/libs/lib_detector.php index b03bdc5..add058f 100644 --- a/libs/lib_detector.php +++ b/libs/lib_detector.php @@ -132,7 +132,8 @@ function crackerTrackerSendMail ($mail) { // Construct dummy array $rowData = array( 'remote_addr' => $_SERVER['REMOTE_ADDR'], - 'check_worm' => $GLOBALS['checkworm'] + 'check_worm' => $GLOBALS['checkworm'], + 'server_name' => $_SERVER['SERVER_NAME'] ); // Only send email if not yet found @@ -199,15 +200,15 @@ function crackerTrackerLogAttack () { // Prepare array for database insert $rowData = array( - 'remote_addr' => $_SERVER['REMOTE_ADDR'], - 'user_agent' => $_SERVER['HTTP_USER_AGENT'], - 'get_data' => $_SERVER['QUERY_STRING'], - 'post_data' => $GLOBALS['post_track'], - 'check_worm' => $GLOBALS['checkworm'], - 'check_post' => $GLOBALS['check_post'], - 'server_name' => $_SERVER['SERVER_NAME'], - 'script_name' => $_SERVER['SCRIPT_NAME'], - 'referer' => $_SERVER['HTTP_REFERER'] + 'remote_addr' => $_SERVER['REMOTE_ADDR'], + 'user_agent' => $_SERVER['HTTP_USER_AGENT'], + 'get_data' => $_SERVER['QUERY_STRING'], + 'post_data' => $GLOBALS['post_track'], + 'check_worm' => $GLOBALS['checkworm'], + 'check_post' => $GLOBALS['check_post'], + 'server_name' => $_SERVER['SERVER_NAME'], + 'script_name' => $_SERVER['SCRIPT_NAME'], + 'referer' => $_SERVER['HTTP_REFERER'] ); // Insert the array in database -- 2.39.2