replaced eval()
This commit is contained in:
parent
2c948fdf74
commit
b78fe9c363
|
@ -55,11 +55,8 @@ function StatusMessage($MessageTyp,$MessageHeadline,$MessageText,$MessageVariabl
|
||||||
$MessageHeadline = "<h2 " . $class . ">" . $MessageHeadline . "</h2>"; // Format $MessageHeadline
|
$MessageHeadline = "<h2 " . $class . ">" . $MessageHeadline . "</h2>"; // Format $MessageHeadline
|
||||||
$MessageText = "<p " . $class . ">" . $MessageText . "</p>"; // Format $MessageText
|
$MessageText = "<p " . $class . ">" . $MessageText . "</p>"; // Format $MessageText
|
||||||
$format = "<div " . $class . ">\n<br>\n<table>\n<tr>\n<td>" . $MessageTyp . "</td>\n<td>" . $MessageHeadline . $MessageText . "</td>\n</tr>\n</table>\n<br>\n</div>\n";
|
$format = "<div " . $class . ">\n<br>\n<table>\n<tr>\n<td>" . $MessageTyp . "</td>\n<td>" . $MessageHeadline . $MessageText . "</td>\n</tr>\n</table>\n<br>\n</div>\n";
|
||||||
for($i=0;$i<count($MessageVariables);$i++) {
|
array_unshift($MessageVariables, $format);
|
||||||
$variables .= "," . $MessageVariables[$i];
|
call_user_func_array('printf',$MessageVariables);
|
||||||
}
|
|
||||||
$command = 'printf("' . addslashes($format) . '"' . $variables . ');';
|
|
||||||
eval($command);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Use the three replace functions on the submitted Text. */
|
/* Use the three replace functions on the submitted Text. */
|
||||||
|
|
Loading…
Reference in New Issue