PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
| Dir : /home/jairosvt/www/publicidadaf/plugins/deliveryLimitations/Geo/ |
| Server: Linux server2.noticiasdecolima.com 4.18.0-553.30.1.el8_10.x86_64 #1 SMP Tue Nov 26 02:30:26 EST 2024 x86_64 IP: 107.161.180.42 |
| Dir : /home/jairosvt/www/publicidadaf/plugins/deliveryLimitations/Geo/Postalcode.class.php |
<?php
/*
+---------------------------------------------------------------------------+
| Revive Adserver |
| http://www.revive-adserver.com |
| |
| Copyright: See the COPYRIGHT.txt file. |
| License: GPLv2 or later, see the LICENSE.txt file. |
+---------------------------------------------------------------------------+
*/
require_once LIB_PATH . '/Extension/deliveryLimitations/DeliveryLimitations.php';
/**
* A Geo delivery limitation plugin, for filtering delivery of ads on the
* basis of the viewer's postal code (US/Canada only).
*
* Valid comparison operators:
* ==, !=,=~,!~,=x,!x
*
* @package OpenXPlugin
* @subpackage DeliveryLimitations
*/
class Plugins_DeliveryLimitations_Geo_Postalcode extends Plugins_DeliveryLimitations
{
function __construct()
{
parent::__construct();
$this->columnName = 'geo_postal_code';
$this->nameEnglish = 'Geo - US/Canada Postal Code';
}
/**
* Return if this plugin is available in the current context
*
* @return boolean
*/
function isAllowed($page = false)
{
return ((isset($GLOBALS['_MAX']['GEO_DATA']['postal_code']))
|| $GLOBALS['_MAX']['CONF']['geotargeting']['showUnavailable']);
}
}
?>