From ec4b273e132b95520af0751951c3e2f3fb333984 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 28 Aug 2018 21:14:55 +0200 Subject: [PATCH] Continued: - let's also include request method in mails - ops, also need to distinguish between different request methods but with same remaining data --- libs/lib_detector.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/libs/lib_detector.php b/libs/lib_detector.php index 627e7b6..eab50bb 100644 --- a/libs/lib_detector.php +++ b/libs/lib_detector.php @@ -257,6 +257,7 @@ Request-string : ' . crackerTrackerQueryString() . ' Filtered string : ' . $GLOBALS['ctracker_checked_get'] . ' Server : ' . crackerTrackerServerName() . ' Script : ' . crackerTrackerScriptName() . ' +Method : ' . crackerTrackerRequestMethod() . ' Referrer : ' . crackerTrackerReferer() . ' ----------------------------------------------------- '; @@ -287,10 +288,11 @@ function sendCrackerTrackerTicketMails () { function crackerTrackerSendMail ($mail, $recipient = NULL, $subject = NULL) { // Construct dummy array $rowData = [ - 'remote_addr' => determineCrackerTrackerRealRemoteAddress(), - 'proxy_addr' => getenv('REMOTE_ADDR'), - 'check_get' => $GLOBALS['ctracker_checked_get'], - 'server_name' => crackerTrackerServerName() + 'remote_addr' => determineCrackerTrackerRealRemoteAddress(), + 'proxy_addr' => getenv('REMOTE_ADDR'), + 'check_get' => $GLOBALS['ctracker_checked_get'], + 'server_name' => crackerTrackerServerName(), + 'request_method' => crackerTrackerRequestMethod(), ]; // Only send email if not yet found @@ -335,6 +337,7 @@ Request-string : ' . crackerTrackerQueryString() . ' Filtered string : ' . $GLOBALS['ctracker_checked_get'] . ' Server : ' . crackerTrackerServerName() . ' Script : ' . crackerTrackerScriptName() . ' +Method : ' . crackerTrackerRequestMethod() . ' Referrer : ' . crackerTrackerReferer() . ' ----------------------------------------------------- POST string : ' . $GLOBALS['ctracker_post_track'] . ' -- 2.39.5