From: Roland Häder Date: Tue, 28 Aug 2018 19:14:55 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ec4b273e132b95520af0751951c3e2f3fb333984;p=ctracker.git Continued: - let's also include request method in mails - ops, also need to distinguish between different request methods but with same remaining data --- 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'] . '