File/ck.php

Description
Includes
 require_once ('init-delivery.php') (line 37)
 require_once (phpAds_path.'/libraries/lib-log.inc.php') (line 39)
Functions
convertMaxParams (line 72)

Populate variables from a specially encoded string. This is used because in a click URL, a parameter could possibly be another URL.

void convertMaxParams ()
MAX_parse_str (line 187)

Mimic PHP's parse_str functionality (including decoding values), only allow passing in a delimiter.

void MAX_parse_str (string $qs, string &$aArr, [string $delim = '&'])
  • string $qs: The string in which to parse
  • string $aArr: The array in which to store the values
  • string $delim: The delimiter on which to parse the value
_getDestinationUrl (line 133)

Get the URL that this click will redirect to. This method first checks to see if the URL is passed in. If not, it checks the banner from the cache or database. As a last resort, it either uses the default banner URL or the referer.

  • return: The destination URL
string _getDestinationUrl (integer $adId)
  • integer $adId: The ID of the advertisement that was clicked

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