From: Roland Haeder Date: Thu, 31 Dec 2009 17:42:57 +0000 (+0000) Subject: A lot spaces removed, array with server_name extended (SELECT query was extended... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=386305fcc841b6975364dc988c150e86304ebe39;p=ctracker.git A lot spaces removed, array with server_name extended (SELECT query was extended, too) --- 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