You are here

function adserve_invoke_file in Advertisement 5.2

Same name and namespace in other branches
  1. 5 adserve.inc \adserve_invoke_file()
  2. 6.3 adserve.inc \adserve_invoke_file()
  3. 6 adserve.inc \adserve_invoke_file()
  4. 6.2 adserve.inc \adserve_invoke_file()
  5. 7 adserve.inc \adserve_invoke_file()

Invoke a function in the specified file.

File

./adserve.inc, line 176

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;
}