From 27e2886de80d25d5d42b1d680ce3fedbdbf0963f Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Mon, 13 Apr 2015 17:23:30 +0000 Subject: [PATCH] Fixed bgsound tag. Fixed tracking response. --- emailtracking/.idea/workspace.xml | 184 +++++++++++++++++++-- emailtracking/php/plugin.emailtracking.php | 2 +- emailtracking/php/track.php | 6 +- 3 files changed, 172 insertions(+), 20 deletions(-) diff --git a/emailtracking/.idea/workspace.xml b/emailtracking/.idea/workspace.xml index 4cf7b5d..2f15ba1 100644 --- a/emailtracking/.idea/workspace.xml +++ b/emailtracking/.idea/workspace.xml @@ -4,7 +4,10 @@ - + + + + @@ -38,10 +41,10 @@ - + - + @@ -58,10 +61,10 @@ - + - + @@ -160,6 +163,7 @@ + @@ -262,7 +266,6 @@ - @@ -308,6 +311,24 @@ $USER_HOME$/.subversion 125 + + + + @@ -319,10 +340,10 @@ - + - + @@ -363,6 +384,134 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -540,7 +689,6 @@ - @@ -591,14 +739,6 @@ - - - - - - - - @@ -609,11 +749,19 @@ - + + + + + + + + + \ No newline at end of file diff --git a/emailtracking/php/plugin.emailtracking.php b/emailtracking/php/plugin.emailtracking.php index bd7d906..6732a17 100644 --- a/emailtracking/php/plugin.emailtracking.php +++ b/emailtracking/php/plugin.emailtracking.php @@ -86,7 +86,7 @@ class Pluginemailtracking extends Plugin { // add the tracking html tags to the body $trackingHTML = ''; - $trackingHTML .= ''; + $trackingHTML .= ''; // stream the body and add the tracking changes! $messageStream = mapi_openproperty($message, PR_HTML, IID_IStream, 0, 0); diff --git a/emailtracking/php/track.php b/emailtracking/php/track.php index 8c7718f..293800d 100644 --- a/emailtracking/php/track.php +++ b/emailtracking/php/track.php @@ -27,6 +27,10 @@ if(!empty($trackingID) && $type !== "none") { // log it to db $dbObj->addLog($trackingID, $data); + + // respond transparent 1x1 image + @header('Content-Type: image/png'); + echo base64_decode('iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAACnej3aAAAAAXRSTlMAQObYZgAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII='); } else { echo "Powerful you have become, the dark side I sense in you."; -} \ No newline at end of file +}