<?php

/*
+---------------------------------------------------------------------------+
| Revive Adserver                                                           |
| http://www.revive-adserver.com                                            |
|                                                                           |
| Copyright: See the COPYRIGHT.txt file.                                    |
| License: GPLv2 or later, see the LICENSE.txt file.                        |
+---------------------------------------------------------------------------+
*/

/**
 * @package    OpenXPlugin
 * @subpackage DeliveryLimitations
 */

if (!isset($GLOBALS['_MAX']['_GEOCACHE']['city'])) {
    $pathPlugins = dirname(__FILE__);
    require $pathPlugins.'/data/res-iso3166.inc.php';
    require $pathPlugins.'/Country.res.inc.php';

    foreach ($OA_Geo_ISO3166_MaxMind as $k => $v) {
        unset($res[$k]);
    }

    $res = array('' => $this->translate('---Any---')) + $res;

    $GLOBALS['_MAX']['_GEOCACHE']['city'] = $res;
} else {
    $res = $GLOBALS['_MAX']['_GEOCACHE']['city'];
}

?>
