File/lg.php

Description
Includes
 require_once (phpAds_path.'/libraries/lib-log.inc.php') (line 39)
 require_once ('init-delivery.php') (line 37)
Functions
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

  1. Check to see if the ad is capped, and if so, increment the value by 1
  2. Check to see if the ad is blocked, and if so, update the date/time that it was viewed.
  3. 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'

Documentation generated on Fri, 11 Feb 2005 18:13:27 +0000 by phpDocumentor 1.3.0RC3