First commit
This commit is contained in:
commit
c6e2478c40
13918 changed files with 2303184 additions and 0 deletions
28
sites/all/modules/civicrm/extern/open.php
vendored
Normal file
28
sites/all/modules/civicrm/extern/open.php
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
require_once '../civicrm.config.php';
|
||||
require_once 'CRM/Core/Config.php';
|
||||
require_once 'CRM/Core/Error.php';
|
||||
require_once 'CRM/Utils/Array.php';
|
||||
|
||||
$config = CRM_Core_Config::singleton();
|
||||
$queue_id = CRM_Utils_Array::value('q', $_GET);
|
||||
if (!$queue_id) {
|
||||
echo "Missing input parameters\n";
|
||||
exit();
|
||||
}
|
||||
|
||||
require_once 'CRM/Mailing/Event/BAO/Opened.php';
|
||||
CRM_Mailing_Event_BAO_Opened::open($queue_id);
|
||||
|
||||
$filename = "../i/tracker.gif";
|
||||
|
||||
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
|
||||
header('Content-Description: File Transfer');
|
||||
header('Content-type: image/gif');
|
||||
header('Content-Length: ' . filesize($filename));
|
||||
|
||||
header('Content-Disposition: inline; filename=tracker.gif');
|
||||
|
||||
readfile($filename);
|
||||
|
||||
exit();
|
Loading…
Add table
Add a link
Reference in a new issue