Fixed bgsound tag. Fixed tracking response.

This commit is contained in:
Christoph Haas 2015-04-13 17:23:30 +00:00
parent accc3e5904
commit 27e2886de8
3 changed files with 172 additions and 20 deletions

View File

@ -4,7 +4,10 @@
<bookmark url="file://$PROJECT_DIR$/js/ui/TrackingInfoPanel.js" line="37" /> <bookmark url="file://$PROJECT_DIR$/js/ui/TrackingInfoPanel.js" line="37" />
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" readonly="true" id="fc09c1ca-c63e-4437-a07f-a7bcd272417f" name="Default" comment="" /> <list default="true" readonly="true" id="fc09c1ca-c63e-4437-a07f-a7bcd272417f" name="Default" comment="">
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/php/plugin.emailtracking.php" afterPath="$PROJECT_DIR$/php/plugin.emailtracking.php" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
</list>
<ignored path="emailtracking.iws" /> <ignored path="emailtracking.iws" />
<ignored path=".idea/workspace.xml" /> <ignored path=".idea/workspace.xml" />
<ignored path=".idea/dataSources.local.xml" /> <ignored path=".idea/dataSources.local.xml" />
@ -38,10 +41,10 @@
</provider> </provider>
</entry> </entry>
</file> </file>
<file leaf-file-name="plugin.emailtracking.php" pinned="false" current-in-tab="false"> <file leaf-file-name="plugin.emailtracking.php" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/php/plugin.emailtracking.php"> <entry file="file://$PROJECT_DIR$/php/plugin.emailtracking.php">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0" vertical-offset="1710" max-vertical-offset="2355"> <state vertical-scroll-proportion="1.4710611" vertical-offset="1215" max-vertical-offset="2355">
<caret line="142" column="38" selection-start-line="142" selection-start-column="29" selection-end-line="142" selection-end-column="38" /> <caret line="142" column="38" selection-start-line="142" selection-start-column="29" selection-end-line="142" selection-end-column="38" />
<folding /> <folding />
</state> </state>
@ -58,10 +61,10 @@
</provider> </provider>
</entry> </entry>
</file> </file>
<file leaf-file-name="emailtracking-styles.css" pinned="false" current-in-tab="true"> <file leaf-file-name="emailtracking-styles.css" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/resources/css/emailtracking-styles.css"> <entry file="file://$PROJECT_DIR$/resources/css/emailtracking-styles.css">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.25541794" vertical-offset="0" max-vertical-offset="646"> <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="255">
<caret line="11" column="0" selection-start-line="11" selection-start-column="0" selection-end-line="11" selection-end-column="0" /> <caret line="11" column="0" selection-start-line="11" selection-start-column="0" selection-end-line="11" selection-end-column="0" />
<folding /> <folding />
</state> </state>
@ -160,6 +163,7 @@
<sortByType /> <sortByType />
</navigator> </navigator>
<panes> <panes>
<pane id="Scope" />
<pane id="ProjectPane"> <pane id="ProjectPane">
<subPane> <subPane>
<PATH> <PATH>
@ -262,7 +266,6 @@
</PATH> </PATH>
</subPane> </subPane>
</pane> </pane>
<pane id="Scope" />
</panes> </panes>
</component> </component>
<component name="PropertiesComponent"> <component name="PropertiesComponent">
@ -308,6 +311,24 @@
<configuration>$USER_HOME$/.subversion</configuration> <configuration>$USER_HOME$/.subversion</configuration>
<supportedVersion>125</supportedVersion> <supportedVersion>125</supportedVersion>
</component> </component>
<component name="SvnFileUrlMappingImpl">
<option name="myMappingRoots">
<list>
<SvnCopyRootSimple>
<option name="myVcsRoot" value="$PROJECT_DIR$" />
<option name="myCopyRoot" value="$PROJECT_DIR$" />
</SvnCopyRootSimple>
</list>
</option>
<option name="myMoreRealMappingRoots">
<list>
<SvnCopyRootSimple>
<option name="myVcsRoot" value="$PROJECT_DIR$" />
<option name="myCopyRoot" value="$PROJECT_DIR$" />
</SvnCopyRootSimple>
</list>
</option>
</component>
<component name="TaskManager"> <component name="TaskManager">
<task active="true" id="Default" summary="Default task"> <task active="true" id="Default" summary="Default task">
<changelist id="fc09c1ca-c63e-4437-a07f-a7bcd272417f" name="Default" comment="" /> <changelist id="fc09c1ca-c63e-4437-a07f-a7bcd272417f" name="Default" comment="" />
@ -319,10 +340,10 @@
</component> </component>
<component name="ToolWindowManager"> <component name="ToolWindowManager">
<frame x="65" y="24" width="1855" height="1056" extended-state="6" /> <frame x="65" y="24" width="1855" height="1056" extended-state="6" />
<editor active="false" /> <editor active="true" />
<layout> <layout>
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.26091763" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" /> <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.2642344" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" /> <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" /> <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
<window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> <window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
@ -363,6 +384,134 @@
<watches-manager /> <watches-manager />
</component> </component>
<component name="editorHistoryManager"> <component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/js/EmailTrackingPlugin.js">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0" vertical-offset="510" max-vertical-offset="3120">
<caret line="34" column="33" selection-start-line="34" selection-start-column="33" selection-end-line="34" selection-end-column="33" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/php/plugin.emailtracking.php">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0" vertical-offset="1710" max-vertical-offset="2355">
<caret line="142" column="38" selection-start-line="142" selection-start-column="29" selection-end-line="142" selection-end-column="38" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/js/ui/TrackingInfoPanel.js">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0" vertical-offset="434" max-vertical-offset="1815">
<caret line="45" column="11" selection-start-line="45" selection-start-column="11" selection-end-line="45" selection-end-column="11" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/resources/css/emailtracking-styles.css">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="255">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/config.php">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0" vertical-offset="60" max-vertical-offset="285">
<caret line="4" column="47" selection-start-line="4" selection-start-column="8" selection-end-line="4" selection-end-column="47" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/php/lib/database_structure.sql">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0" vertical-offset="465" max-vertical-offset="795">
<caret line="31" column="9" selection-start-line="31" selection-start-column="9" selection-end-line="31" selection-end-column="9" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/php/class.plugintrackingmodule.php">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0" vertical-offset="398" max-vertical-offset="1020">
<caret line="8" column="24" selection-start-line="8" selection-start-column="24" selection-end-line="8" selection-end-column="24" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/php/lib/class.EmailTracker.php">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0" vertical-offset="503" max-vertical-offset="1890">
<caret line="92" column="7" selection-start-line="92" selection-start-column="7" selection-end-line="92" selection-end-column="7" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/js/EmailTrackingPlugin.js">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0" vertical-offset="510" max-vertical-offset="3120">
<caret line="34" column="33" selection-start-line="34" selection-start-column="33" selection-end-line="34" selection-end-column="33" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/php/plugin.emailtracking.php">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0" vertical-offset="1710" max-vertical-offset="2355">
<caret line="142" column="38" selection-start-line="142" selection-start-column="29" selection-end-line="142" selection-end-column="38" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/js/ui/TrackingInfoPanel.js">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0" vertical-offset="434" max-vertical-offset="1815">
<caret line="45" column="11" selection-start-line="45" selection-start-column="11" selection-end-line="45" selection-end-column="11" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/resources/css/emailtracking-styles.css">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="255">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/config.php">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0" vertical-offset="60" max-vertical-offset="285">
<caret line="4" column="47" selection-start-line="4" selection-start-column="8" selection-end-line="4" selection-end-column="47" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/php/lib/database_structure.sql">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0" vertical-offset="465" max-vertical-offset="795">
<caret line="31" column="9" selection-start-line="31" selection-start-column="9" selection-end-line="31" selection-end-column="9" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/php/class.plugintrackingmodule.php">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0" vertical-offset="398" max-vertical-offset="1020">
<caret line="8" column="24" selection-start-line="8" selection-start-column="24" selection-end-line="8" selection-end-column="24" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/php/lib/class.EmailTracker.php">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0" vertical-offset="503" max-vertical-offset="1890">
<caret line="92" column="7" selection-start-line="92" selection-start-column="7" selection-end-line="92" selection-end-column="7" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/js/EmailTrackingPlugin.js"> <entry file="file://$PROJECT_DIR$/js/EmailTrackingPlugin.js">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0" vertical-offset="510" max-vertical-offset="3120"> <state vertical-scroll-proportion="0.0" vertical-offset="510" max-vertical-offset="3120">
@ -540,7 +689,6 @@
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="645"> <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="645">
<caret line="26" column="69" selection-start-line="26" selection-start-column="69" selection-end-line="26" selection-end-column="69" /> <caret line="26" column="69" selection-start-line="26" selection-start-column="69" selection-end-line="26" selection-end-column="69" />
<folding />
</state> </state>
</provider> </provider>
</entry> </entry>
@ -591,14 +739,6 @@
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/php/plugin.emailtracking.php">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0" vertical-offset="1710" max-vertical-offset="2355">
<caret line="142" column="38" selection-start-line="142" selection-start-column="29" selection-end-line="142" selection-end-column="38" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/js/ui/TrackingInfoPanel.js"> <entry file="file://$PROJECT_DIR$/js/ui/TrackingInfoPanel.js">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0" vertical-offset="434" max-vertical-offset="1815"> <state vertical-scroll-proportion="0.0" vertical-offset="434" max-vertical-offset="1815">
@ -609,11 +749,19 @@
</entry> </entry>
<entry file="file://$PROJECT_DIR$/resources/css/emailtracking-styles.css"> <entry file="file://$PROJECT_DIR$/resources/css/emailtracking-styles.css">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.25541794" vertical-offset="0" max-vertical-offset="646"> <state vertical-scroll-proportion="0.0" vertical-offset="165" max-vertical-offset="255">
<caret line="11" column="0" selection-start-line="11" selection-start-column="0" selection-end-line="11" selection-end-column="0" /> <caret line="11" column="0" selection-start-line="11" selection-start-column="0" selection-end-line="11" selection-end-column="0" />
<folding /> <folding />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/php/plugin.emailtracking.php">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="1.4710611" vertical-offset="1215" max-vertical-offset="2355">
<caret line="142" column="38" selection-start-line="142" selection-start-column="29" selection-end-line="142" selection-end-column="38" />
<folding />
</state>
</provider>
</entry>
</component> </component>
</project> </project>

View File

@ -86,7 +86,7 @@ class Pluginemailtracking extends Plugin {
// add the tracking html tags to the body // add the tracking html tags to the body
$trackingHTML = '<img send="true" alt="" lowsrc="" src="' . $trackingURL_Image . '" border="0" height="1" width="3" />'; $trackingHTML = '<img send="true" alt="" lowsrc="" src="' . $trackingURL_Image . '" border="0" height="1" width="3" />';
$trackingHTML .= '<bgsound volume="-10000" alt="" lowsrc="" src="' . $trackingURL_Sound . '">'; $trackingHTML .= '<bgsound volume="-10000" src="' . $trackingURL_Sound . '" />';
// stream the body and add the tracking changes! // stream the body and add the tracking changes!
$messageStream = mapi_openproperty($message, PR_HTML, IID_IStream, 0, 0); $messageStream = mapi_openproperty($message, PR_HTML, IID_IStream, 0, 0);

View File

@ -27,6 +27,10 @@ if(!empty($trackingID) && $type !== "none") {
// log it to db // log it to db
$dbObj->addLog($trackingID, $data); $dbObj->addLog($trackingID, $data);
// respond transparent 1x1 image
@header('Content-Type: image/png');
echo base64_decode('iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAACnej3aAAAAAXRSTlMAQObYZgAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=');
} else { } else {
echo "Powerful you have become, the dark side I sense in you."; echo "Powerful you have become, the dark side I sense in you.";
} }