X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Ffilter%2Fforced_filter.php;h=9362149e37d6551eb0fbc73e6964970d93018c19;hp=418746971fd938552f9d3ff759cf80fa18506d13;hb=cd7d344ea7007cfa20413acd3e03e50f0ab86d86;hpb=63f159414369b5ea19a8ca75d8cd8033c45d8341 diff --git a/inc/filter/forced_filter.php b/inc/filter/forced_filter.php index 418746971f..9362149e37 100644 --- a/inc/filter/forced_filter.php +++ b/inc/filter/forced_filter.php @@ -16,7 +16,7 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2012 by Mailer Developer Team * + * Copyright (c) 2009 - 2013 by Mailer Developer Team * * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -107,11 +107,11 @@ function FILTER_FORCED_CHANGE_CAMPAIGN_VALIDATE_DATA ($filterData) { if ((!is_string($filterData['new_status'])) || (empty($filterData['new_status']))) { // Abort here, not fine //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'newStatus[' . gettype($filterData['new_status']) . ']=' . $filterData['new_status'] . ' - EXIT!'); - $filterData['abort'] = false; + $filterData['abort'] = FALSE; } elseif ($filterData['data']['forced_campaign_status'] != $filterData['prev_status']) { // Status is not like prevStatus //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, $filterData['data']['forced_campaign_status'] . '!=' . $filterData['prev_status'] . ' - EXIT!'); - $filterData['abort'] = false; + $filterData['abort'] = FALSE; } // END - if // Return filter data @@ -119,5 +119,27 @@ function FILTER_FORCED_CHANGE_CAMPAIGN_VALIDATE_DATA ($filterData) { return $filterData; } +// Filter for handling click on forced ad +function FILTER_HANDLE_FORCED_AD_CLICK ($filterData) { + // Are all required parameters set? + //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!'); + die(__FUNCTION__.': CALLED!'); + + // Return filter data + //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!'); + return $filterData; +} + +// Filter for handling viewing forced banner +function FILTER_HANDLE_FORCED_AD_VIEW ($filterData) { + // Are all required parameters set? + //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!'); + die(__FUNCTION__.': CALLED!'); + + // Return filter data + //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!'); + return $filterData; +} + // [EOF] ?>