index 77d4c6474607dd0fdc0832d54c7476dc460322e6..91fd12ccc4ebfbaf52cb145a2f95be34ecb7f999 100644 (file)
return ($msg);
}
+function get_link($function_name) {
+ $result= "<a href='http://de.php.net/manual/en/function.";
+
+ /* Replace all underscores with hyphens (phpdoc convention) */
+ $function_name= str_replace("_", "-", $function_name);
+
+ /* Append to base URL */
+ $result.= $function_name.".php'>$function_name</a>";
+
+ return $result;
+}
+
function perform_additional_function_checks(&$faults) {
global $check_globals;
}
}
+ $msg.= "<h1>"._("PHP detailed function inspection")."</h1>";
/* Only print message, if function is not callable */
foreach($functions as $key => $fn_name) {
if(!is_callable($fn_name)) {
- $msg.= check ( $faults, _(sprintf("Checking for optional function %s", $fn_name)),
- _(sprintf("The function $fn_name is used by GOsa. There is no information if it's optional or required yet.",$fn_name)),
- is_callable($fn_name), TRUE);
+ $msg.= check ($faults, sprintf(_("Checking for function <b>%s</b>"), get_link($fn_name)),
+ sprintf(_("The function <b>%s</b> is used by GOsa. There is no information if it's optional or required yet."),get_link($fn_name)),
+ is_callable($fn_name), false);
}
}
return $msg;
$smarty = get_smarty();
$smarty->assign ("content", get_template_path('setup_introduction.tpl'));
$smarty->assign ("tests", perform_php_checks($faults));
+ $smarty->assign ("detailed_tests", perform_additional_function_checks($faults));
/* This var is true if anything went wrong */
if ($faults){