Exemplo n.º 1
0
 function logStatistics($mailingId, $subscriberId)
 {
     global $database;
     if ($subscriberId != 0) {
         $query = 'REPLACE INTO `#__acajoom_stats_details` ' . '( `mailing_id`, `subscriber_id`, `html`, `read`) ' . 'VALUES ( \'' . $mailingId . '\', \'' . $subscriberId . '\', \'1\', \'1\')';
         $database->setQuery($query);
         $database->query();
     }
     xmailing::updateStatsGlobal($mailingId, 0, 0, true);
     ob_end_clean();
     $filename = $GLOBALS['mosConfig_absolute_path'] . '/images/blank.png';
     $handle = fopen($filename, 'r');
     $contents = fread($handle, filesize($filename));
     fclose($handle);
     header("Content-type: image/png");
     echo $contents;
     exit;
 }
Exemplo n.º 2
0
 function logStatistics($mailingId, $subscriberId)
 {
     if (ACA_CMSTYPE) {
         $database =& JFactory::getDBO();
     } else {
         global $database;
     }
     //endif
     if ($subscriberId != 0) {
         $query = 'REPLACE INTO `#__acajoom_stats_details` ' . '( `mailing_id`, `subscriber_id`, `html`, `read`) ' . 'VALUES ( \'' . $mailingId . '\', \'' . $subscriberId . '\', \'1\', \'1\')';
         $database->setQuery($query);
         $database->query();
     }
     xmailing::updateStatsGlobal($mailingId, 0, 0, true);
     ob_end_clean();
     $filename = ACA_JPATH_ROOT . '/images/blank.png';
     $handle = fopen($filename, 'r');
     $contents = fread($handle, filesize($filename));
     fclose($handle);
     header("Content-type: image/png");
     echo $contents;
     exit;
 }