displayImageBeacon (line
118)
Display a 1x1 pixel gif. Include the appropriate image headers
void
displayImageBeacon
()
updateAdImpressionCookies (line
70)
Check to see if this particular ad impression needs cookies set, and set them
- Check to see if the ad is capped, and if so, increment the value by 1
- Check to see if the ad is blocked, and if so, update the date/time that it was viewed.
- Repeat for session based capping and blocking
void
updateAdImpressionCookies
(array $conf, integer $adId)
-
array
$conf: The configuration array
-
integer
$adId: The ID of the ad that was viewed
_setAdImpressionCookie (line
90)
Check to see if a value is present in the cookie or request for a given parameter. If it is, then update it.
void
_setAdImpressionCookie
(array $conf, string $varName, integer $adId, integer $time, [boolean $permanent = true], [string $type = 'cap'])
-
array
$conf: The configuration array
-
string
$varName: The name of the variable to check
-
integer
$adId: The ID of the ad that was viewed
-
integer
$time: The server time in UNIX format
-
boolean
$permanent: True if there should be a permanent cookie, false if there should be a session cookie
-
string
$type: If it is a capping cookie, then the value will be 'cap'. If it is a time limitation cookie, then the value will be 'block'