Initial version of the tracking plugin
This commit is contained in:
commit
accc3e5904
1
emailtracking/.idea/.name
generated
Normal file
1
emailtracking/.idea/.name
generated
Normal file
@ -0,0 +1 @@
|
||||
emailtracking
|
8
emailtracking/.idea/emailtracking.iml
generated
Normal file
8
emailtracking/.idea/emailtracking.iml
generated
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="WEB_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
4
emailtracking/.idea/encodings.xml
generated
Normal file
4
emailtracking/.idea/encodings.xml
generated
Normal file
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
|
||||
</project>
|
7
emailtracking/.idea/misc.xml
generated
Normal file
7
emailtracking/.idea/misc.xml
generated
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" />
|
||||
<component name="SvnBranchConfigurationManager">
|
||||
<option name="mySupportsUserInfoFilter" value="true" />
|
||||
</component>
|
||||
</project>
|
8
emailtracking/.idea/modules.xml
generated
Normal file
8
emailtracking/.idea/modules.xml
generated
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/emailtracking.iml" filepath="$PROJECT_DIR$/.idea/emailtracking.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
5
emailtracking/.idea/scopes/scope_settings.xml
generated
Normal file
5
emailtracking/.idea/scopes/scope_settings.xml
generated
Normal file
@ -0,0 +1,5 @@
|
||||
<component name="DependencyValidationManager">
|
||||
<state>
|
||||
<option name="SKIP_IMPORT_STATEMENTS" value="false" />
|
||||
</state>
|
||||
</component>
|
6
emailtracking/.idea/vcs.xml
generated
Normal file
6
emailtracking/.idea/vcs.xml
generated
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="svn" />
|
||||
</component>
|
||||
</project>
|
619
emailtracking/.idea/workspace.xml
generated
Normal file
619
emailtracking/.idea/workspace.xml
generated
Normal file
@ -0,0 +1,619 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="BookmarkManager">
|
||||
<bookmark url="file://$PROJECT_DIR$/js/ui/TrackingInfoPanel.js" line="37" />
|
||||
</component>
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" readonly="true" id="fc09c1ca-c63e-4437-a07f-a7bcd272417f" name="Default" comment="" />
|
||||
<ignored path="emailtracking.iws" />
|
||||
<ignored path=".idea/workspace.xml" />
|
||||
<ignored path=".idea/dataSources.local.xml" />
|
||||
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
||||
<option name="TRACKING_ENABLED" value="true" />
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||
<option name="LAST_RESOLUTION" value="IGNORE" />
|
||||
</component>
|
||||
<component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
|
||||
<component name="CreatePatchCommitExecutor">
|
||||
<option name="PATCH_PATH" value="" />
|
||||
</component>
|
||||
<component name="DaemonCodeAnalyzer">
|
||||
<disable_hints />
|
||||
</component>
|
||||
<component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
|
||||
<component name="FavoritesManager">
|
||||
<favorites_list name="emailtracking" />
|
||||
</component>
|
||||
<component name="FileEditorManager">
|
||||
<leaf>
|
||||
<file leaf-file-name="EmailTrackingPlugin.js" pinned="false" current-in-tab="false">
|
||||
<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>
|
||||
</file>
|
||||
<file leaf-file-name="plugin.emailtracking.php" pinned="false" current-in-tab="false">
|
||||
<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>
|
||||
</file>
|
||||
<file leaf-file-name="TrackingInfoPanel.js" pinned="false" current-in-tab="false">
|
||||
<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>
|
||||
</file>
|
||||
<file leaf-file-name="emailtracking-styles.css" pinned="false" current-in-tab="true">
|
||||
<entry file="file://$PROJECT_DIR$/resources/css/emailtracking-styles.css">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state vertical-scroll-proportion="0.25541794" vertical-offset="0" max-vertical-offset="646">
|
||||
<caret line="11" column="0" selection-start-line="11" selection-start-column="0" selection-end-line="11" selection-end-column="0" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file leaf-file-name="config.php" pinned="false" current-in-tab="false">
|
||||
<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>
|
||||
</file>
|
||||
<file leaf-file-name="database_structure.sql" pinned="false" current-in-tab="false">
|
||||
<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>
|
||||
</file>
|
||||
<file leaf-file-name="class.plugintrackingmodule.php" pinned="false" current-in-tab="false">
|
||||
<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>
|
||||
</file>
|
||||
<file leaf-file-name="class.EmailTracker.php" pinned="false" current-in-tab="false">
|
||||
<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>
|
||||
</file>
|
||||
</leaf>
|
||||
</component>
|
||||
<component name="IdeDocumentHistory">
|
||||
<option name="CHANGED_PATHS">
|
||||
<list>
|
||||
<option value="$PROJECT_DIR$/js/ui/TrackingInfoContentPanel.js" />
|
||||
<option value="$PROJECT_DIR$/js/data/ResponseHandler.js" />
|
||||
<option value="$PROJECT_DIR$/manifest.xml" />
|
||||
<option value="$PROJECT_DIR$/php/class.plugintrackingmodule.php" />
|
||||
<option value="$PROJECT_DIR$/php/lib/database_structure.sql" />
|
||||
<option value="$PROJECT_DIR$/php/lib/class.EmailTracker.php" />
|
||||
<option value="$PROJECT_DIR$/php/track.php" />
|
||||
<option value="$PROJECT_DIR$/js/EmailTrackingPlugin.js" />
|
||||
<option value="$PROJECT_DIR$/config.php" />
|
||||
<option value="$PROJECT_DIR$/php/plugin.emailtracking.php" />
|
||||
<option value="$PROJECT_DIR$/js/ui/TrackingInfoPanel.js" />
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
<component name="JsGulpfileManager">
|
||||
<detection-done>true</detection-done>
|
||||
</component>
|
||||
<component name="PhpWorkspaceProjectConfiguration" backward_compatibility_performed="true" />
|
||||
<component name="ProjectFrameBounds">
|
||||
<option name="x" value="65" />
|
||||
<option name="y" value="24" />
|
||||
<option name="width" value="1855" />
|
||||
<option name="height" value="1056" />
|
||||
</component>
|
||||
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
|
||||
<OptionsSetting value="true" id="Add" />
|
||||
<OptionsSetting value="true" id="Remove" />
|
||||
<OptionsSetting value="true" id="Checkout" />
|
||||
<OptionsSetting value="true" id="Update" />
|
||||
<OptionsSetting value="true" id="Status" />
|
||||
<OptionsSetting value="true" id="Edit" />
|
||||
<ConfirmationsSetting value="0" id="Add" />
|
||||
<ConfirmationsSetting value="0" id="Remove" />
|
||||
</component>
|
||||
<component name="ProjectView">
|
||||
<navigator currentView="ProjectPane" proportions="" version="1">
|
||||
<flattenPackages />
|
||||
<showMembers />
|
||||
<showModules />
|
||||
<showLibraryContents />
|
||||
<hideEmptyPackages />
|
||||
<abbreviatePackageNames />
|
||||
<autoscrollToSource />
|
||||
<autoscrollFromSource />
|
||||
<sortByType />
|
||||
</navigator>
|
||||
<panes>
|
||||
<pane id="ProjectPane">
|
||||
<subPane>
|
||||
<PATH>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="emailtracking" />
|
||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
||||
</PATH_ELEMENT>
|
||||
</PATH>
|
||||
<PATH>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="emailtracking" />
|
||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
||||
</PATH_ELEMENT>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="emailtracking" />
|
||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||
</PATH_ELEMENT>
|
||||
</PATH>
|
||||
<PATH>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="emailtracking" />
|
||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
||||
</PATH_ELEMENT>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="emailtracking" />
|
||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||
</PATH_ELEMENT>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="php" />
|
||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||
</PATH_ELEMENT>
|
||||
</PATH>
|
||||
<PATH>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="emailtracking" />
|
||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
||||
</PATH_ELEMENT>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="emailtracking" />
|
||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||
</PATH_ELEMENT>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="php" />
|
||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||
</PATH_ELEMENT>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="lib" />
|
||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||
</PATH_ELEMENT>
|
||||
</PATH>
|
||||
<PATH>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="emailtracking" />
|
||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
||||
</PATH_ELEMENT>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="emailtracking" />
|
||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||
</PATH_ELEMENT>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="js" />
|
||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||
</PATH_ELEMENT>
|
||||
</PATH>
|
||||
<PATH>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="emailtracking" />
|
||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
||||
</PATH_ELEMENT>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="emailtracking" />
|
||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||
</PATH_ELEMENT>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="js" />
|
||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||
</PATH_ELEMENT>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="ui" />
|
||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||
</PATH_ELEMENT>
|
||||
</PATH>
|
||||
<PATH>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="emailtracking" />
|
||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
||||
</PATH_ELEMENT>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="emailtracking" />
|
||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||
</PATH_ELEMENT>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="js" />
|
||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||
</PATH_ELEMENT>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="data" />
|
||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||
</PATH_ELEMENT>
|
||||
</PATH>
|
||||
</subPane>
|
||||
</pane>
|
||||
<pane id="Scope" />
|
||||
</panes>
|
||||
</component>
|
||||
<component name="PropertiesComponent">
|
||||
<property name="WebServerToolWindowFactoryState" value="false" />
|
||||
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
||||
<property name="FullScreen" value="false" />
|
||||
</component>
|
||||
<component name="RecentsManager">
|
||||
<key name="CopyFile.RECENT_KEYS">
|
||||
<recent name="$PROJECT_DIR$/php/lib" />
|
||||
</key>
|
||||
</component>
|
||||
<component name="RunManager">
|
||||
<configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
|
||||
<method />
|
||||
</configuration>
|
||||
<configuration default="true" type="PhpUnitRemoteRunConfigurationType" factoryName="PHPUnit on Server">
|
||||
<method />
|
||||
</configuration>
|
||||
<configuration default="true" type="PHPUnitRunConfigurationType" factoryName="PHPUnit">
|
||||
<TestRunner />
|
||||
<method />
|
||||
</configuration>
|
||||
<configuration default="true" type="PhpLocalRunConfigurationType" factoryName="PHP Console">
|
||||
<method />
|
||||
</configuration>
|
||||
<configuration default="true" type="PhpBehatConfigurationType" factoryName="Behat">
|
||||
<BehatRunner />
|
||||
<method />
|
||||
</configuration>
|
||||
<configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
|
||||
<node-options />
|
||||
<gulpfile />
|
||||
<tasks />
|
||||
<pass-parent-envs>true</pass-parent-envs>
|
||||
<envs />
|
||||
<method />
|
||||
</configuration>
|
||||
<list size="0" />
|
||||
</component>
|
||||
<component name="ShelveChangesManager" show_recycled="false" />
|
||||
<component name="SvnConfiguration" cleanupOnStartRun="true">
|
||||
<configuration>$USER_HOME$/.subversion</configuration>
|
||||
<supportedVersion>125</supportedVersion>
|
||||
</component>
|
||||
<component name="TaskManager">
|
||||
<task active="true" id="Default" summary="Default task">
|
||||
<changelist id="fc09c1ca-c63e-4437-a07f-a7bcd272417f" name="Default" comment="" />
|
||||
<created>1425490373578</created>
|
||||
<option name="number" value="Default" />
|
||||
<updated>1425490373578</updated>
|
||||
</task>
|
||||
<servers />
|
||||
</component>
|
||||
<component name="ToolWindowManager">
|
||||
<frame x="65" y="24" width="1855" height="1056" extended-state="6" />
|
||||
<editor active="false" />
|
||||
<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="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="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="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="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Version Control" 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="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.29583332" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
|
||||
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
|
||||
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
||||
</layout>
|
||||
</component>
|
||||
<component name="Vcs.Log.UiProperties">
|
||||
<option name="RECENTLY_FILTERED_USER_GROUPS">
|
||||
<collection />
|
||||
</option>
|
||||
<option name="RECENTLY_FILTERED_BRANCH_GROUPS">
|
||||
<collection />
|
||||
</option>
|
||||
</component>
|
||||
<component name="VcsContentAnnotationSettings">
|
||||
<option name="myLimit" value="2678400000" />
|
||||
</component>
|
||||
<component name="VcsManagerConfiguration">
|
||||
<option name="myTodoPanelSettings">
|
||||
<TodoPanelSettings />
|
||||
</option>
|
||||
</component>
|
||||
<component name="XDebuggerManager">
|
||||
<breakpoint-manager />
|
||||
<watches-manager />
|
||||
</component>
|
||||
<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="0" max-vertical-offset="1815">
|
||||
<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="0" max-vertical-offset="1815">
|
||||
<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$/php/plugin.emailtracking.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="2280">
|
||||
<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$/js/EmailTrackingPlugin.js">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state vertical-scroll-proportion="0.0" vertical-offset="1155" max-vertical-offset="1890">
|
||||
<caret line="105" column="52" selection-start-line="105" selection-start-column="52" selection-end-line="105" selection-end-column="52" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/php/track.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state vertical-scroll-proportion="0.0" vertical-offset="90" max-vertical-offset="555">
|
||||
<caret line="6" column="30" selection-start-line="6" selection-start-column="30" selection-end-line="6" selection-end-column="30" />
|
||||
</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="120" max-vertical-offset="240">
|
||||
<caret line="8" column="46" selection-start-line="8" selection-start-column="8" selection-end-line="8" selection-end-column="46" />
|
||||
<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="555" max-vertical-offset="675">
|
||||
<caret line="37" column="5" selection-start-line="37" selection-start-column="5" selection-end-line="37" selection-end-column="5" />
|
||||
<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="90" max-vertical-offset="1455">
|
||||
<caret line="6" column="11" selection-start-line="6" selection-start-column="11" selection-end-line="6" selection-end-column="11" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/php/lib/medoo.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="14115">
|
||||
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/js/data/ResponseHandler.js">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state vertical-scroll-proportion="0.44117647" vertical-offset="0" max-vertical-offset="646">
|
||||
<caret line="19" column="7" selection-start-line="19" selection-start-column="7" selection-end-line="19" selection-end-column="7" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/manifest.xml">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<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" />
|
||||
<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$/php/track.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state vertical-scroll-proportion="0.50643086" vertical-offset="0" max-vertical-offset="622">
|
||||
<caret line="21" column="50" selection-start-line="21" selection-start-column="38" selection-end-line="21" selection-end-column="50" />
|
||||
</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$/js/EmailTrackingPlugin.js">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state vertical-scroll-proportion="0.0" vertical-offset="0" 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$/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/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.25541794" vertical-offset="0" max-vertical-offset="646">
|
||||
<caret line="11" column="0" selection-start-line="11" selection-start-column="0" selection-end-line="11" selection-end-column="0" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</component>
|
||||
</project>
|
198
emailtracking/build.xml
Normal file
198
emailtracking/build.xml
Normal file
@ -0,0 +1,198 @@
|
||||
<project default="all">
|
||||
<property environment="env"/>
|
||||
<property name="root-folder" value="${basedir}/../../"/>
|
||||
<property name="tools-folder" value="${root-folder}/tools/"/>
|
||||
<property name="target-folder" value="${root-folder}/deploy/plugins"/>
|
||||
|
||||
<import file="${tools-folder}/antutil.xml"/>
|
||||
|
||||
<typedef file="${tools-folder}/antlib.xml">
|
||||
<classpath>
|
||||
<pathelement location="${tools-folder}/tools.jar"/>
|
||||
</classpath>
|
||||
</typedef>
|
||||
|
||||
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
|
||||
<classpath>
|
||||
<pathelement location="${tools-folder}/lib/ant-contrib-1.0b3.jar"/>
|
||||
</classpath>
|
||||
</taskdef>
|
||||
|
||||
<!-- Determine plugin name -->
|
||||
<var name="plugin" unset="true"/>
|
||||
<basename file="${basedir}" property="plugin"/>
|
||||
|
||||
<!-- The Plugin distribution files -->
|
||||
<property name="plugin-folder" value="${plugin}"/>
|
||||
<property name="plugin-debugfile" value="${plugin}-debug.js"/>
|
||||
<property name="plugin-file" value="${plugin}.js"/>
|
||||
|
||||
<!-- The Plugin CSS files -->
|
||||
<property name="plugin-css-folder" value="resources/css"/>
|
||||
<property name="plugin-css-file" value="${plugin}.css"/>
|
||||
|
||||
<!-- Meta target -->
|
||||
<target name="all" depends="concat, compress"/>
|
||||
|
||||
<!-- Clean -->
|
||||
<target name="clean">
|
||||
<delete includeemptydirs="true" failonerror="false">
|
||||
<!-- Delete the Plugin files -->
|
||||
<fileset dir="${target-folder}/${plugin-folder}/js">
|
||||
<include name="${plugin-file}"/>
|
||||
<include name="${plugin-debugfile}"/>
|
||||
</fileset>
|
||||
</delete>
|
||||
</target>
|
||||
|
||||
<!-- Concatenates JavaScript files with automatic dependency generation -->
|
||||
<target name="concat">
|
||||
<!-- Concatenate plugin JS file -->
|
||||
<if>
|
||||
<available file="js" type="dir" />
|
||||
<then>
|
||||
<mkdir dir="${target-folder}/${plugin-folder}/js"/>
|
||||
<echo message="Concatenating: ${plugin-debugfile}"/>
|
||||
<zConcat outputFolder="${target-folder}/${plugin-folder}/js" outputFile="${plugin-debugfile}" prioritize="\w+">
|
||||
<concatfiles>
|
||||
<fileset dir="js" includes="**/*.js" />
|
||||
</concatfiles>
|
||||
</zConcat>
|
||||
</then>
|
||||
</if>
|
||||
|
||||
<!-- Concatenate plugin CSS files -->
|
||||
<if>
|
||||
<available file="${plugin-css-folder}" type="dir" />
|
||||
<then>
|
||||
<mkdir dir="${target-folder}/${plugin-folder}/${plugin-css-folder}"/>
|
||||
<echo message="Concatenating: ${plugin-css-file}"/>
|
||||
<zConcat outputFolder="${target-folder}/${plugin-folder}/${plugin-css-folder}" outputFile="${plugin-css-file}">
|
||||
<concatfiles>
|
||||
<fileset dir="${plugin-css-folder}" includes="**/*.css" />
|
||||
</concatfiles>
|
||||
</zConcat>
|
||||
</then>
|
||||
</if>
|
||||
</target>
|
||||
|
||||
<!-- Preformat the Concatenated Javascript files to improve compilation -->
|
||||
<target name="preformat" depends="concat">
|
||||
<if>
|
||||
<available file="${target-folder}/${plugin-folder}/js/${plugin-debugfile}" type="file" />
|
||||
<then>
|
||||
<echo message="Preformatting: ${plugin-debugfile}"/>
|
||||
<replaceregexp byline="true">
|
||||
<regexp pattern="(^[ ,\t]*\*[ ,\t]@.*)\{(.*)\[\]\}"/>
|
||||
<substitution expression="\1{\2\|Array}"/>
|
||||
<fileset dir="${target-folder}/${plugin-folder}/js" includes="${plugin-debugfile}"/>
|
||||
</replaceregexp>
|
||||
</then>
|
||||
</if>
|
||||
</target>
|
||||
|
||||
<!-- Compress JavaScript -->
|
||||
<target name="compress" depends="preformat">
|
||||
<if>
|
||||
<available file="${target-folder}/${plugin-folder}/js/${plugin-debugfile}" type="file" />
|
||||
<then>
|
||||
<echo message="Compiling: ${plugin-debugfile}" />
|
||||
<zCompile inputFolder="${target-folder}/${plugin-folder}/js" inputFile="${plugin-debugfile}" outputFolder="${target-folder}/${plugin-folder}/js" outputFile="${plugin-file}">
|
||||
<externs>
|
||||
var Ext = {};
|
||||
var Zarafa = {};
|
||||
var container = {};
|
||||
var _ = function(key, domain) {};
|
||||
var dgettext = function(domain, msgid) {};
|
||||
var dngettext = function(domain, msgid, msgid_plural, count) {};
|
||||
var dnpgettext = function(domain, msgctxt, msgid, msgid_plural, count) {};
|
||||
var dpgettext = function(domain, msgctxt, msgid) {};
|
||||
var ngettext = function(msgid, msgid_plural, count) {};
|
||||
var npgettext = function(msgctxt, msgid, msgid_plural, count) {};
|
||||
var pgettext = function(msgctxt, msgid) {};
|
||||
</externs>
|
||||
</zCompile>
|
||||
</then>
|
||||
</if>
|
||||
</target>
|
||||
|
||||
<!-- syntax check all PHP files -->
|
||||
<target name="validate">
|
||||
<if>
|
||||
<available file="php" filepath="${env.PATH}" />
|
||||
<then>
|
||||
<if>
|
||||
<available file="config.php" type="file" />
|
||||
<then>
|
||||
<antcall target="syntax-check">
|
||||
<param name="file" value="config.php"/>
|
||||
</antcall>
|
||||
</then>
|
||||
</if>
|
||||
<if>
|
||||
<available file="php" type="dir" />
|
||||
<then>
|
||||
<foreach target="syntax-check" param="file">
|
||||
<path>
|
||||
<fileset dir=".">
|
||||
<include name="**/*.php"/>
|
||||
</fileset>
|
||||
</path>
|
||||
</foreach>
|
||||
</then>
|
||||
</if>
|
||||
</then>
|
||||
<else>
|
||||
<echo message="WARNING: PHP not available, not performing syntax-check on php files"/>
|
||||
</else>
|
||||
</if>
|
||||
</target>
|
||||
|
||||
<target name="syntax-check">
|
||||
<echo message="validating ${file}"/>
|
||||
<exec executable="php" failonerror="true">
|
||||
<arg value="-l"/>
|
||||
<arg value="${file}"/>
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
<!-- Install all files into the target folder -->
|
||||
<target name="deploy" depends="compress, validate">
|
||||
<mkdir dir="${target-folder}/${plugin-folder}"/>
|
||||
|
||||
<!-- Copy (and validate) manifest.xml -->
|
||||
<if>
|
||||
<available file="xmllint" filepath="${env.PATH}" />
|
||||
<then>
|
||||
<exec executable="xmllint" output="${target-folder}/${plugin-folder}/manifest.xml" failonerror="true">
|
||||
<arg value="--valid"/>
|
||||
<arg value="--path"/>
|
||||
<arg value="${root-folder}/server"/>
|
||||
<arg value="manifest.xml"/>
|
||||
</exec>
|
||||
</then>
|
||||
<else>
|
||||
<echo message="WARNING: xmllint not available, not performing syntax-check on manifest.xml"/>
|
||||
<!-- xmllint is not available, so we must copy the file manually -->
|
||||
<copy todir="${target-folder}/${plugin-folder}">
|
||||
<fileset dir=".">
|
||||
<include name="manifest.xml"/>
|
||||
</fileset>
|
||||
</copy>
|
||||
</else>
|
||||
</if>
|
||||
|
||||
<!-- copy files -->
|
||||
<copy todir="${target-folder}/${plugin-folder}">
|
||||
<fileset dir=".">
|
||||
<include name="resources/**/*.*"/>
|
||||
<include name="php/**/*.php"/>
|
||||
<include name="config.php"/>
|
||||
<!-- exclude the ant script -->
|
||||
<exclude name="build.xml"/>
|
||||
<!-- CSS is generated during build -->
|
||||
<exclude name="resources/css/*.*"/>
|
||||
</fileset>
|
||||
</copy>
|
||||
</target>
|
||||
</project>
|
13
emailtracking/config.php
Normal file
13
emailtracking/config.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
DEFINE('PLUGIN_EMAILTRACKING_USER_DEFAULT_ENABLE_TRACKING', false);
|
||||
|
||||
// show logs that were done from within webapp (most probably it was yourself)...
|
||||
DEFINE('PLUGIN_EMAILTRACKING_SHOW_INTERNAL_LOGS', false);
|
||||
|
||||
DEFINE('PLUGIN_EMAILTRACKING_DB_HOST', "localhost");
|
||||
DEFINE('PLUGIN_EMAILTRACKING_DB_PORT', 3306);
|
||||
DEFINE('PLUGIN_EMAILTRACKING_DB_USER', "root");
|
||||
DEFINE('PLUGIN_EMAILTRACKING_DB_PASS', "root");
|
||||
DEFINE('PLUGIN_EMAILTRACKING_DB_DB', "emailtracking");
|
||||
DEFINE('PLUGIN_EMAILTRACKING_PUBLIC_WEBAPP_URL', "http://localhost/webapp");
|
||||
?>
|
202
emailtracking/js/EmailTrackingPlugin.js
Normal file
202
emailtracking/js/EmailTrackingPlugin.js
Normal file
@ -0,0 +1,202 @@
|
||||
Ext.namespace('Zarafa.plugins.emailtracking');
|
||||
|
||||
/**
|
||||
* @class Zarafa.plugins.emailtracking.EmailTrackingPlugin
|
||||
* @extends Zarafa.core.Plugin
|
||||
*/
|
||||
Zarafa.plugins.emailtracking.EmailTrackingPlugin = Ext.extend(Zarafa.core.Plugin, {
|
||||
/*
|
||||
* Called after constructor.
|
||||
* Registers insertion points.
|
||||
* @protected
|
||||
*/
|
||||
initPlugin : function()
|
||||
{
|
||||
Zarafa.plugins.emailtracking.EmailTrackingPlugin.superclass.initPlugin.apply(this, arguments);
|
||||
|
||||
// Tracking button in mailcreatecontentpanel
|
||||
this.registerInsertionPoint('context.mail.mailcreatecontentpanel.toolbar.options', this.showTrackButton, this);
|
||||
|
||||
// Insertion point which shows the read status
|
||||
this.registerInsertionPoint('previewpanel.toolbar.detaillinks', this.showTrackingInfo, this);
|
||||
|
||||
Zarafa.core.data.SharedComponentType.addProperty('plugin.emailtracking.ui.trackinginfopanel');
|
||||
},
|
||||
/**
|
||||
* Displays Tracking information in the previewpanel
|
||||
*
|
||||
* @return {Object} a box which on record update displays Tracking information
|
||||
*/
|
||||
showTrackingInfo : function()
|
||||
{
|
||||
return {
|
||||
xtype: 'button',
|
||||
style: 'margin-top: 4px; border: 2px solid red;',
|
||||
plugins : [ 'zarafa.recordcomponentupdaterplugin' ],
|
||||
autoEl: {
|
||||
tag: 'div',
|
||||
ref: 'trackingInfoBox'
|
||||
},
|
||||
scope : this,
|
||||
update : this.onTrackingInfo,
|
||||
handler : this.onTrackingButton
|
||||
};
|
||||
},
|
||||
|
||||
/**
|
||||
* Handler for the button which is displayed when a encrypted / signed message is openend
|
||||
* When an encrypted message is opened, we will send a request to unlock the certificate.
|
||||
* When an signed email is openend, we will show a popup with extra information about the signed message
|
||||
*/
|
||||
onTrackingButton: function(button, config)
|
||||
{
|
||||
var user = container.getUser();
|
||||
|
||||
container.getRequest().singleRequest(
|
||||
'plugintrackingmodule',
|
||||
'gettrackinglog',
|
||||
{
|
||||
'trackingid' : button.record.get("trackingcode"),
|
||||
'user' : user.getSMTPAddress()
|
||||
},
|
||||
new Zarafa.plugins.emailtracking.data.ResponseHandler({
|
||||
successCallback : this.onTrackingLogLoaded
|
||||
})
|
||||
);
|
||||
},
|
||||
|
||||
onTrackingLogLoaded: function(response) {
|
||||
if(response.status) {
|
||||
Zarafa.core.data.UIFactory.openLayerComponent(Zarafa.core.data.SharedComponentType['plugin.emailtracking.ui.trackinginfopanel'], response, {
|
||||
manager: Ext.WindowMgr
|
||||
});
|
||||
} else {
|
||||
container.getNotifier().notify('info.saved', _('Error'), "No tracking log available!");
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Function which displays information in the previewpanel.
|
||||
* In the case of a encrypted message, we either show a button to unlock the certificate
|
||||
* or shows the message that the message has been decrypted.
|
||||
* If the message is signed we display information depending on the state of the verification.
|
||||
*
|
||||
* @param {Zarafa.core.data.IPMRecord} record record which is displayed
|
||||
* @param {Boolean} contentReset force the component to perform a full update of the data.
|
||||
*/
|
||||
onTrackingInfo : function(record, resetContent) {
|
||||
// Set button.record for use in onSmimeButton
|
||||
this.record = record;
|
||||
var infoBox = this.getEl();
|
||||
|
||||
// Set smimeBox to empty value by default, to override previous S/MIME message text
|
||||
infoBox.update("");
|
||||
|
||||
if (this.record.opened) {
|
||||
// get the tracking code from the body
|
||||
var body = this.record.getBody(true);
|
||||
var trackingRegex = /(?:^|.*)track.php\?img=(.*?)(?:\"|\s|$)/g;
|
||||
var match = trackingRegex.exec(body);
|
||||
|
||||
if(match) {
|
||||
infoBox.update("This message is getting tracked (" + match[1] + ")");
|
||||
infoBox.show();
|
||||
this.record.set("trackingcode", match[1]);
|
||||
}
|
||||
} else {
|
||||
infoBox.hide();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Create button which adds some tracking specials to the mail content.
|
||||
*
|
||||
* @return {Config} creates a button for tracking email
|
||||
*/
|
||||
showTrackButton : function()
|
||||
{
|
||||
return {
|
||||
xtype : 'button',
|
||||
text : _('Track'),
|
||||
tooltip: {
|
||||
title: _('Track message'),
|
||||
text: _('Track this message and get detailed information about the current status.')
|
||||
},
|
||||
iconCls : 'icon_tracking_off',
|
||||
handler : this.onTrackButton,
|
||||
scope : this
|
||||
};
|
||||
},
|
||||
|
||||
/**
|
||||
* Handler for the sign button, when clicked it checks if the private certificate exists.
|
||||
* If we have signing already set and click it again, we unset it.
|
||||
* If we already set have encryption set, we set a special message_class for both sign+ecnrypt.
|
||||
*
|
||||
*
|
||||
* @param {Ext.button} button
|
||||
* @param {Object} config
|
||||
*/
|
||||
onTrackButton : function(button, config)
|
||||
{
|
||||
var owner = button.ownerCt;
|
||||
var record = owner.record;
|
||||
var doTrack = button.iconCls === "icon_tracking_on" ? false : true;
|
||||
if(record && doTrack) {
|
||||
button.setIconClass('icon_tracking_on');
|
||||
record.set('message_class', 'IPM.Note.Tracking');
|
||||
record.set('entryid', record.entryid);
|
||||
} else {
|
||||
record.set('message_class', 'IPM.Note');
|
||||
button.setIconClass('icon_tracking_off');
|
||||
}
|
||||
|
||||
owner.dialog.saveRecord();
|
||||
},
|
||||
|
||||
/*
|
||||
* Bid for the type of shared component
|
||||
* and the given record.
|
||||
* This will bid on calendar.dialogs.importevents
|
||||
* @param {Zarafa.core.data.SharedComponentType} type Type of component a context can bid for.
|
||||
* @param {Zarafa.mail.dialogs.MailCreateContentPanel} owner Optionally passed panel
|
||||
* @return {Number} The bid for the shared component
|
||||
*/
|
||||
bidSharedComponent : function(type, record) {
|
||||
var bid = -1;
|
||||
|
||||
switch(type) {
|
||||
case Zarafa.core.data.SharedComponentType['plugin.emailtracking.ui.trackinginfopanel']:
|
||||
bid = 1;
|
||||
break;
|
||||
}
|
||||
return bid;
|
||||
},
|
||||
|
||||
/**
|
||||
* Will return the reference to the shared component.
|
||||
* Based on the type of component requested a component is returned.
|
||||
* @param {Zarafa.core.data.SharedComponentType} type Type of component a context can bid for.
|
||||
* @param {Zarafa.mail.dialogs.MailCreateContentPanel} owner Optionally passed panel
|
||||
* @return {Ext.Component} Component
|
||||
*/
|
||||
getSharedComponent : function(type, record) {
|
||||
var component;
|
||||
|
||||
switch(type) {
|
||||
case Zarafa.core.data.SharedComponentType['plugin.emailtracking.ui.trackinginfopanel']:
|
||||
component = Zarafa.plugins.emailtracking.ui.TrackingInfoPanel;
|
||||
break;
|
||||
}
|
||||
|
||||
return component;
|
||||
}
|
||||
});
|
||||
|
||||
Zarafa.onReady(function() {
|
||||
container.registerPlugin(new Zarafa.core.PluginMetaData({
|
||||
name : 'emailtracking',
|
||||
displayName : _('Tracking Plugin'),
|
||||
pluginConstructor : Zarafa.plugins.emailtracking.EmailTrackingPlugin
|
||||
}));
|
||||
});
|
25
emailtracking/js/data/ResponseHandler.js
Normal file
25
emailtracking/js/data/ResponseHandler.js
Normal file
@ -0,0 +1,25 @@
|
||||
Ext.namespace('Zarafa.plugins.emailtracking.data');
|
||||
|
||||
/**
|
||||
* @class Zarafa.plugins.emailtracking.data.ResponseHandler
|
||||
* @extends Zarafa.core.data.AbstractResponseHandler
|
||||
*
|
||||
* Emailtracking specific response handler.
|
||||
*/
|
||||
Zarafa.plugins.emailtracking.data.ResponseHandler = Ext.extend(Zarafa.core.data.AbstractResponseHandler, {
|
||||
|
||||
/**
|
||||
* @cfg {Function} successCallback The function which
|
||||
* will be called after success request.
|
||||
*/
|
||||
successCallback : null,
|
||||
|
||||
/**
|
||||
* @param {Object} response Object contained the response data.
|
||||
*/
|
||||
doGettrackinglog : function(response) {
|
||||
this.successCallback(response);
|
||||
}
|
||||
});
|
||||
|
||||
Ext.reg('emailtracking.responsehandler', Zarafa.plugins.emailtracking.data.ResponseHandler);
|
116
emailtracking/js/ui/TrackingInfoPanel.js
Normal file
116
emailtracking/js/ui/TrackingInfoPanel.js
Normal file
@ -0,0 +1,116 @@
|
||||
Ext.namespace('Zarafa.plugins.emailtracking.ui');
|
||||
|
||||
/**
|
||||
* @class Zarafa.plugins.emailtracking.ui.TrackingInfoPanel
|
||||
* @extends Zarafa.core.ui.ContentPanel
|
||||
*
|
||||
* Show the tracking table.
|
||||
* @xtype emailtracking.trackinginfopanel
|
||||
*/
|
||||
Zarafa.plugins.emailtracking.ui.TrackingInfoPanel = Ext.extend(Zarafa.core.ui.ContentPanel, {
|
||||
|
||||
/**
|
||||
* @var object The server response
|
||||
*/
|
||||
record : null,
|
||||
|
||||
store: null,
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @param config Configuration structure
|
||||
*/
|
||||
constructor : function(config) {
|
||||
config = config || {};
|
||||
|
||||
// fill the store
|
||||
// create the data store
|
||||
this.store = new Ext.data.ArrayStore({
|
||||
fields: [
|
||||
{name: 'ip'},
|
||||
{name: 'timestamp', type: 'date'},
|
||||
{name: 'referrer'},
|
||||
{name: 'client'},
|
||||
{name: 'tracking_type'}
|
||||
]
|
||||
});
|
||||
|
||||
var data = [];
|
||||
var internals = container.getSettingsModel().get('zarafa/v1/plugins/emailtracking/internals');
|
||||
Ext.each(config.record.log, function(rec) {
|
||||
// hide entries from the own system (only external tracking will be possible!)
|
||||
|
||||
if(internals || (rec.referrer != window.location.href)) {
|
||||
data.push([rec.ip_addr, rec.timestamp, rec.referrer, rec.client, rec.tracking_type]);
|
||||
}
|
||||
});
|
||||
|
||||
this.store.loadData(data);
|
||||
|
||||
Ext.applyIf(config, {
|
||||
layout : 'fit',
|
||||
title : _('Tracking information'),
|
||||
closeOnSave : true,
|
||||
width : 340,
|
||||
height : 300,
|
||||
//Add panel
|
||||
items : [{
|
||||
xtype: "grid",
|
||||
style: 'margin-top:20px;',
|
||||
store: this.store,
|
||||
columns: [
|
||||
{
|
||||
header : 'IP Address',
|
||||
width : 75,
|
||||
sortable : true,
|
||||
dataIndex: 'ip'
|
||||
},
|
||||
{
|
||||
id : "timestamp",
|
||||
header : 'Date',
|
||||
width : 75,
|
||||
sortable : true,
|
||||
renderer : Ext.util.Format.dateRenderer('m/d/Y H:m:s'),
|
||||
dataIndex: 'timestamp'
|
||||
},
|
||||
{
|
||||
header : 'Referrer',
|
||||
width : 150,
|
||||
hidden : true,
|
||||
sortable : true,
|
||||
dataIndex: 'referrer'
|
||||
},
|
||||
{
|
||||
header : 'Client',
|
||||
width : 150,
|
||||
hidden : true,
|
||||
sortable : true,
|
||||
dataIndex: 'client'
|
||||
},
|
||||
{
|
||||
header : 'Type',
|
||||
width : 60,
|
||||
hidden : true,
|
||||
sortable : true,
|
||||
dataIndex: 'tracking_type'
|
||||
}
|
||||
],
|
||||
viewConfig: {
|
||||
forceFit: true
|
||||
},
|
||||
sm: new Ext.grid.RowSelectionModel({singleSelect:true}),
|
||||
frame: true
|
||||
|
||||
},{
|
||||
xtype: 'button',
|
||||
text: _('Close'),
|
||||
handler: this.close,
|
||||
scope: this
|
||||
}]
|
||||
});
|
||||
|
||||
Zarafa.plugins.emailtracking.ui.TrackingInfoPanel.superclass.constructor.call(this, config);
|
||||
}
|
||||
});
|
||||
|
||||
Ext.reg('emailtracking.trackinginfopanel' ,Zarafa.plugins.emailtracking.ui.TrackingInfoPanel);
|
37
emailtracking/manifest.xml
Normal file
37
emailtracking/manifest.xml
Normal file
@ -0,0 +1,37 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE plugin SYSTEM "manifest.dtd">
|
||||
<plugin version="2">
|
||||
<info>
|
||||
<version>0.1</version>
|
||||
<name>Tracking Plugin</name>
|
||||
<title>Tracking Plugin</title>
|
||||
<author>Christoph Haas</author>
|
||||
<authorURL>http://www.sprinternet.at</authorURL>
|
||||
<description>Enables Email Tracking in Webapp</description>
|
||||
</info>
|
||||
<config>
|
||||
<configfile>config.php</configfile>
|
||||
</config>
|
||||
<components>
|
||||
<component>
|
||||
<files>
|
||||
<server>
|
||||
<serverfile>php/plugin.emailtracking.php</serverfile>
|
||||
<serverfile type="module" module="plugintrackingmodule">php/class.plugintrackingmodule.php</serverfile>
|
||||
</server>
|
||||
<client>
|
||||
<clientfile load="release">js/emailtracking.js</clientfile>
|
||||
<clientfile load="debug">js/emailtracking-debug.js</clientfile>
|
||||
<clientfile load="source">js/EmailTrackingPlugin.js</clientfile>
|
||||
<clientfile load="source">js/ui/TrackingInfoPanel.js</clientfile>
|
||||
<clientfile load="source">js/data/ResponseHandler.js</clientfile>
|
||||
</client>
|
||||
<resources>
|
||||
<resourcefile load="release">resources/css/emailtracking.css</resourcefile>
|
||||
<resourcefile load="debug">resources/css/emailtracking.css</resourcefile>
|
||||
<resourcefile load="source">resources/css/emailtracking-styles.css</resourcefile>
|
||||
</resources>
|
||||
</files>
|
||||
</component>
|
||||
</components>
|
||||
</plugin>
|
62
emailtracking/php/class.plugintrackingmodule.php
Normal file
62
emailtracking/php/class.plugintrackingmodule.php
Normal file
@ -0,0 +1,62 @@
|
||||
<?php
|
||||
|
||||
require_once __DIR__ . "/lib/class.EmailTracker.php";
|
||||
|
||||
class PluginTrackingModule extends Module
|
||||
{
|
||||
|
||||
/**
|
||||
* @var EmailTracker
|
||||
*/
|
||||
private $emailTracker;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
* @param int $id unique id.
|
||||
* @param string $folderentryid Entryid of the folder. Data will be selected from this folder.
|
||||
* @param array $data list of all actions.
|
||||
*/
|
||||
function PluginEmailtrackingModule($id, $data)
|
||||
{
|
||||
$this->store = $GLOBALS['mapisession']->getDefaultMessageStore();
|
||||
parent::Module($id, $data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Executes all the actions in the $data variable.
|
||||
* @return boolean true on success of false on fialure.
|
||||
*/
|
||||
function execute()
|
||||
{
|
||||
$this->emailTracker = new EmailTracker();
|
||||
|
||||
foreach($this->data as $actionType => $actionData)
|
||||
{
|
||||
if(isset($actionType)) {
|
||||
try {
|
||||
switch($actionType)
|
||||
{
|
||||
case "gettrackinglog" :
|
||||
$data = $this->getTrackingLog($actionData);
|
||||
$this->addActionData('gettrackinglog', $data);
|
||||
$GLOBALS['bus']->addData($this->getResponseData());
|
||||
break;
|
||||
default:
|
||||
$this->handleUnknownActionType($actionType);
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
$this->sendFeedback(false, parent::errorDetailsFromException($e));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function getTrackingLog($actionData) {
|
||||
$data = array();
|
||||
$data["trackingid"] = $actionData["trackingid"];
|
||||
$data["log"] = $this->emailTracker->getAllLogs($data["trackingid"]);
|
||||
$data["status"] = true;
|
||||
|
||||
return $data;
|
||||
}
|
||||
}
|
120
emailtracking/php/lib/class.EmailTracker.php
Normal file
120
emailtracking/php/lib/class.EmailTracker.php
Normal file
@ -0,0 +1,120 @@
|
||||
<?php
|
||||
require __DIR__ . '/medoo.php';
|
||||
require_once __DIR__ . '/../../config.php';
|
||||
|
||||
class EmailTracker {
|
||||
/**
|
||||
* @var Database connector object. A medoo object.
|
||||
*/
|
||||
private $dbObj;
|
||||
|
||||
/**
|
||||
* Contructor
|
||||
*/
|
||||
function __construct() {
|
||||
$dbOptions = array(
|
||||
'database_type' => 'mysql',
|
||||
'database_name' => PLUGIN_EMAILTRACKING_DB_DB,
|
||||
'server' => PLUGIN_EMAILTRACKING_DB_HOST,
|
||||
'username' => PLUGIN_EMAILTRACKING_DB_USER,
|
||||
'password' => PLUGIN_EMAILTRACKING_DB_PASS,
|
||||
'port' => PLUGIN_EMAILTRACKING_DB_PORT,
|
||||
'charset' => 'utf8',
|
||||
);
|
||||
$this->dbObj = new medoo($dbOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
* Generates a new ID out of some values
|
||||
*
|
||||
* @param $emailId
|
||||
* @param $destAddr
|
||||
* @param $srcAddr
|
||||
* @param $subject
|
||||
* @return string
|
||||
*/
|
||||
public function getNewTrackingCode ($emailId, $destAddr, $srcAddr, $subject) {
|
||||
$currentTimeStamp = time();
|
||||
|
||||
$trackingHash = md5($emailId . $destAddr . $subject . $currentTimeStamp);
|
||||
|
||||
$data = array(
|
||||
"email_id" => $emailId,
|
||||
"destination_addr" => $destAddr,
|
||||
"source_addr" => $srcAddr,
|
||||
"subject" => $subject,
|
||||
"current_time" => date('Y-m-d H:i:s',$currentTimeStamp),
|
||||
"generated_id" => $trackingHash
|
||||
);
|
||||
$this->dbObj->insert("trackingid", $data);
|
||||
|
||||
return $trackingHash;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the database ID for the given hash
|
||||
*
|
||||
* @param $trackingHash
|
||||
* @return int
|
||||
*/
|
||||
private function getTrackingIDbyCode ($trackingHash) {
|
||||
$filter = array(
|
||||
"generated_id" => $trackingHash,
|
||||
);
|
||||
|
||||
$data = $this->dbObj->select("trackingid", "id", $filter);
|
||||
|
||||
if (is_array($data) && count($data) > 0) {
|
||||
return $data[0];
|
||||
} else {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Stores a new log entry to db
|
||||
*
|
||||
* @param $trackingHash
|
||||
* @param $data
|
||||
*/
|
||||
public function addLog($trackingHash, $data) {
|
||||
// first get the id - to add it to our new entry
|
||||
$dbID = $this->getTrackingIDbyCode($trackingHash);
|
||||
|
||||
// check if trackingHash was valid
|
||||
if($dbID != -1) {
|
||||
// build our tracking entry
|
||||
$data["trackingid_id"] = $dbID;
|
||||
|
||||
$this->dbObj->insert("trackinglog", $data);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get all Tracking logs for the specified hash.
|
||||
*
|
||||
* @param $trackingHash
|
||||
* @return array|bool
|
||||
*/
|
||||
public function getAllLogs($trackingHash) {
|
||||
// first get the id - to add it to our new entry
|
||||
$dbID = $this->getTrackingIDbyCode($trackingHash);
|
||||
|
||||
// check if trackingHash was valid
|
||||
if($dbID != -1) {
|
||||
$data = $this->dbObj->select("trackinglog", [
|
||||
"ip_addr",
|
||||
"timestamp",
|
||||
"referrer",
|
||||
"client",
|
||||
"tracking_type"
|
||||
], [
|
||||
"trackingid_id" => $dbID
|
||||
]);
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
48
emailtracking/php/lib/database_structure.sql
Normal file
48
emailtracking/php/lib/database_structure.sql
Normal file
@ -0,0 +1,48 @@
|
||||
--
|
||||
-- Database: `emailtracking`
|
||||
--
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure |