Version 5.0.0 beta 1

This commit is contained in:
Neo committed 2025-12-19 16:27:35 -08:00
1 parent 25ddeb65d6
commit 15c7beabc5
6736 files changed
+627902 -497943

No files matched your search

+9 -4
View File
@@ -9,17 +9,22 @@
*/
/* Init */
use IPS\Db;
use IPS\Output;
use IPS\Request;
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 )
if( isset( Request::i()->ads ) AND Request::i()->ads )
{
$ads = explode( ',', \IPS\Request::i()->ads );
$ads = explode( ',', 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 ) . ')' ) );
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', \IPS\Output::getNoCacheHeaders(), FALSE, FALSE, FALSE, FALSE );
Output::i()->sendOutput( base64_decode( "R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" ), 200, 'image/gif', Output::getNoCacheHeaders(), FALSE, FALSE, FALSE, FALSE );