function adserve_bootstrap in Advertisement 6
Same name and namespace in other branches
- 5.2 adserve.inc \adserve_bootstrap()
- 5 adserve.inc \adserve_bootstrap()
- 6.3 adserve.inc \adserve_bootstrap()
- 6.2 adserve.inc \adserve_bootstrap()
- 7 adserve.inc \adserve_bootstrap()
Include the necessary files and call the Drupal bootstrap.
5 calls to adserve_bootstrap()
- adserve_ad in ./
adserve.inc - The main adserve logic.
- adserve_counter_image in ./
imageserve.inc - Generate a tiny image with GD, used to count when an ad has been displayed on a cached page.
- adserve_increment in ./
adserve.inc - Increment ad counters. Increment in cache if enabled.
- ad_cache_file_rebuild in cache/
file/ ad_cache_file.inc - Bootstrap drupal, then run ad_cache_file_build() from ad.module which will rebuild all cache files.
- ad_cache_memcache_get_ad in cache/
memcache/ ad_cache_memcache.inc
File
- ./
adserve.inc, line 628 - Configuration.
Code
function adserve_bootstrap($bootstrap = NULL) {
adserve_include_drupal();
// If no specific bootstrap is specified, do a full bootstrap.
if (!isset($bootstrap)) {
$bootstrap = DRUPAL_BOOTSTRAP_FULL;
}
if (adserve_variable('debug')) {
echo "Drupal bootstrap '" . $bootstrap . "'.<br />\n";
}
drupal_bootstrap($bootstrap);
}