<?php
	$basname =basename($_SERVER['PHP_SELF']);
	if(!isset($_REQUEST['device_width']) && $basname =="afr.php")
	{
	echo '<script>window.location.search += "'.((count($_GET))? '&':'?' ).'device_width="+window.screen.width</script>';
	exit;
	} 
	
/*
+---------------------------------------------------------------------------+
| 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
 */

require_once MAX_PATH . '/lib/max/Delivery/limitations.delivery.php';
require_once 'handset.php';
/**
 * Check to see if this impression contains the valid domain.
 *
 * @param string $limitation The domain limitation.
 * @param string $op The string operator.
 * @param array $aParams An array of additional parameters to be checked.
 * @return boolean Whether this impression's domain passes this limitation's test.
 */
 
 
function MAX_checkClient_Mobilescreenwidth($limitation, $op, $aParams = array())
{
	
	//~ if($GLOBALS['_MAX']['device']['device_type'] != "Phone")
	//~ {
	//~ return false;
	//~ } 
	
	$aParams['device_width'] =  $GLOBALS['_MAX']['device']['device_width'];
   
   
     return   MAX_limitationMatchNumeric('device_width', $limitation, $op, $aParams);
    
}


?>





