function adserve_invoke_file in Advertisement 6
Same name and namespace in other branches
- 5.2 adserve.inc \adserve_invoke_file()
- 5 adserve.inc \adserve_invoke_file()
- 6.3 adserve.inc \adserve_invoke_file()
- 6.2 adserve.inc \adserve_invoke_file()
- 7 adserve.inc \adserve_invoke_file()
Invoke a function in the specified file.
3 calls to adserve_invoke_file()
- adserve_ad in ./
adserve.inc - The main adserve logic.
- adserve_increment in ./
adserve.inc - Increment ad counters. Increment in cache if enabled.
- adserve_invoke_hook in ./
adserve.inc - Invoke adserve hooks, defined in adapi with adserve_HOOK.
File
- ./
adserve.inc, line 419 - Configuration.
Code
function adserve_invoke_file($function, $arg1 = NULL, $arg2 = NULL) {
$output = '';
if (function_exists($function)) {
$output = $function($arg1, $arg2);
}
else {
if (adserve_variable('debug')) {
echo "Function '{$function}' does not exist.<br />\n";
}
}
return $output;
}