Version 4.5.0
No files matched your search
|
Before Width: | Height: | Size: 131 B After Width: | Height: | Size: 83 B |
|
Before Width: | Height: | Size: 379 B After Width: | Height: | Size: 268 B |
|
Before Width: | Height: | Size: 281 B After Width: | Height: | Size: 195 B |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 314 B After Width: | Height: | Size: 204 B |
|
Before Width: | Height: | Size: 294 B After Width: | Height: | Size: 213 B |
|
Before Width: | Height: | Size: 394 B After Width: | Height: | Size: 278 B |
|
Before Width: | Height: | Size: 293 B After Width: | Height: | Size: 201 B |
|
Before Width: | Height: | Size: 358 B After Width: | Height: | Size: 230 B |
|
Before Width: | Height: | Size: 376 B After Width: | Height: | Size: 243 B |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 538 B After Width: | Height: | Size: 340 B |
|
Before Width: | Height: | Size: 456 B |
|
Before Width: | Height: | Size: 362 B After Width: | Height: | Size: 223 B |
|
Before Width: | Height: | Size: 350 B After Width: | Height: | Size: 349 B |
|
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 375 B |
|
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 453 B |
|
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 349 B |
|
Before Width: | Height: | Size: 508 B After Width: | Height: | Size: 314 B |
|
Before Width: | Height: | Size: 137 B After Width: | Height: | Size: 95 B |
|
Before Width: | Height: | Size: 843 B After Width: | Height: | Size: 187 B |
|
Before Width: | Height: | Size: 438 B After Width: | Height: | Size: 258 B |
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* @brief View tracking for email advertisements
|
||||
* @author <a href='https://www.invisioncommunity.com'>Invision Power Services, Inc.</a>
|
||||
* @copyright (c) Invision Power Services, Inc.
|
||||
* @license https://www.invisioncommunity.com/legal/standards/
|
||||
* @package Invision Community
|
||||
* @since 6 Dec 2018
|
||||
*/
|
||||
|
||||
/* Init */
|
||||
define('REPORT_EXCEPTIONS', TRUE);
|
||||
require_once str_replace( 'applications/core/interface/email/views.php', '', str_replace( '\\', '/', __FILE__ ) ) . 'init.php';
|
||||
|
||||
/* Track advertisement views */
|
||||
if( isset( \IPS\Request::i()->ads ) AND \IPS\Request::i()->ads )
|
||||
{
|
||||
$ads = explode( ',', \IPS\Request::i()->ads );
|
||||
$ads = array_map( "intval", $ads );
|
||||
|
||||
\IPS\Db::i()->update( 'core_advertisements', "ad_email_views=COALESCE(ad_email_views,0)+1", array( 'ad_id IN(' . implode( ',', $ads ) . ')' ) );
|
||||
}
|
||||
|
||||
/* Outputs a 1x1 transparent gif, disabling additional parsing we don't need */
|
||||
\IPS\Output::i()->sendOutput( base64_decode( "R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" ), 200, 'image/gif', array( 'Expires' => 0, 'Pragma' => 'no-cache', 'Cache-Control' => 'no-cache, no-store, must-revalidate' ), FALSE, FALSE, FALSE, FALSE );
|
||||
|
Before Width: | Height: | Size: 343 B After Width: | Height: | Size: 225 B |
|
Before Width: | Height: | Size: 439 B After Width: | Height: | Size: 285 B |
|
Before Width: | Height: | Size: 603 B After Width: | Height: | Size: 354 B |