Source for file track.php
Documentation is available at track.php
* Copyright (c) 2005 bitweaver.org
* All Rights Reserved. See below for details and a complete list of authors.
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See http://www.gnu.org/copyleft/lesser.html for details
* @author spider <spider@steelsun.com>
require_once( '../kernel/setup_inc.php' );
include_once( NEWSLETTERS_PKG_PATH. 'BitNewsletterMailer.php' );
if( isset ( $_REQUEST["sub"] ) || $gBitUser->isRegistered() ) {
// open the file in a binary mode
$trackImage = $gBitSystem->getConfig( 'newsletter_tracking_image', NEWSLETTERS_PKG_PATH. 'images/track.gif' );
if( $fp = fopen( $trackImage, 'rb') ) {
// send the right headers
header( "Content-Type: image/png" );
// dump the picture and stop the script
|