isRegistered() ) { if( isset( $_REQUEST["sub"] ) && strlen( $_REQUEST["sub"] ) == 32 && ($subInfo = BitMailer::lookupSubscription( array( 'url_code' => $_REQUEST["sub"] ) )) ) { BitMailer::trackMail( $subInfo['url_code'] ); } } // open the file in a binary mode $trackImage = $gBitSystem->getPreference( 'newsletter_tracking_image', NEWSLETTERS_PKG_PATH.'images/track.gif' ); if( $fp = fopen( $trackImage, 'rb') ) { // send the right headers header( "Content-Type: image/png" ); header( "Content-Length: " . filesize( $trackImage ) ); // dump the picture and stop the script fpassthru( $fp ); } exit; ?>