function _debug_echo in Advertisement 6.2
Same name and namespace in other branches
- 5.2 adserve.inc \_debug_echo()
- 5 adserve.inc \_debug_echo()
- 6.3 adserve.inc \_debug_echo()
- 6 adserve.inc \_debug_echo()
- 7 adserve.inc \_debug_echo()
Dump debug message to screen; set custom error handler.
24 calls to _debug_echo()
- adserve_cache in ./
adcache.inc - Wrapper for calling adserve_cache functions.
- adserve_cache_display in ./
adcache.inc - Default function for displaying advertisements. This is not generally replaced by ad cache modules.
- adserve_cache_display_ad in ./
adcache.inc - Load and display an advertisement directly from the database.
- adserve_cache_get_ad_ids in ./
adcache.inc - Default wrapper function for displaying advertisements. This generally is not replaced by ad caches modules.
- adserve_cache_hook in ./
adcache.inc - Invoke the appropraite hook.
File
- ./
adserve.inc, line 236 - Configuration.
Code
function _debug_echo($text) {
static $error_handler = FALSE;
static $time = 0;
if (adserve_variable('debug')) {
if ($time < time()) {
$time = time();
echo '--> Time mark: ' . date('H:i:s', $time) . "<br />\n";
_debug_memory();
}
if (!$error_handler) {
set_error_handler('_debug_error_handler');
$error_handler = TRUE;
}
echo "{$text}<br />\n";
}
}