0) { //Check for Security Key, Client IP and EZ ID if(isset($_REQUEST['SecurityKey']) AND isset($_REQUEST['ClientIP']) AND isset($_REQUEST['EZID'])) { //Set $AID - FastAim Administrator ID - Used to verify impression claims and authorize ad requests if(! isset($_REQUEST['AID'])) { $AID=0; } // record consumed orders $Delivery = record_consumed_orders($ConsumedID_list, $SecurityKey, $ClientIP, $EZID, $AID, $EZImp_class_obj); } else { $Delivery = 0; } // end, if(isset($_REQUEST['SecurityKey']) AND isset($_REQUEST['ClientIP']) AND isset($_REQUEST['EZID'])) } else { $Delivery = 0; } // end, if(count($ConsumedID_list) > 0) } else { $Delivery = 0; } // end, if(isset($_REQUEST['FilledID'])) # CHECK, if orders are requested ........ ?> 0) { //Check for Security Key, Client IP and EZ ID if(isset($_REQUEST['SecurityKey']) AND isset($_REQUEST['ClientIP']) AND isset($_REQUEST['EZID'])) { //Set $AID - FastAim Administrator ID - Used to verify impression claims and authorize ad requests if(! isset($_REQUEST['AID'])) { $AID=0; } // record consumed orders $Delivery = record_consumed_orders($ConsumedID_list, $SecurityKey, $ClientIP, $EZID, $AID, $EZImp_class_obj); } else { $Delivery = -1; } // end, if(isset($_REQUEST['SecurityKey']) AND isset($_REQUEST['ClientIP']) AND isset($_REQUEST['EZID'])) } else { $Delivery = 0; } // end, if(count($OrderArray) > 0) } else { $Delivery = 0; } // end, if(isset($_REQUEST['ConsumedID'])) $EZImp_class_obj->GenerateXMLReturn($Delivery); unset($EZImp_class_obj); return $Delivery; // method to call from old EZImp.php code function record_consumed_orders($ConsumedID_list, $SecurityKey, $ClientIP, $EZID, $AID, &$EZImp_class_obj) { // record consumed orders $Delivery = $EZImp_class_obj->MarkFilled($EZID, $SecurityKey, $ConsumedID_list, $AID, $ClientIP ); //$EZImp_class_obj->GenerateXMLReturn($Delivery); return $Delivery; } ?>