';
$html .= ' | ';
$html .= htmlspecialchars($variable);
$html .= ' | ';
$html .= ' ';
// TODO change to regexp or something, to allow for negative match
if (isset(${"{$type}_variables_alerts"}[$variable])
&& ${"{$type}_variables_alerts"}[$variable] == $serverReplicationVariable
) {
$html .= '';
} elseif (isset(${"{$type}_variables_oks"}[$variable])
&& ${"{$type}_variables_oks"}[$variable] == $serverReplicationVariable
) {
$html .= '';
} else {
$html .= '';
}
// allow wrapping long table lists into multiple lines
static $variables_wrap = array(
'Replicate_Do_DB', 'Replicate_Ignore_DB',
'Replicate_Do_Table', 'Replicate_Ignore_Table',
'Replicate_Wild_Do_Table', 'Replicate_Wild_Ignore_Table');
if (in_array($variable, $variables_wrap)) {
$html .= htmlspecialchars(str_replace(
',',
', ',
$serverReplicationVariable
));
} else {
$html .= htmlspecialchars($serverReplicationVariable);
}
$html .= '';
$html .= ' | ';
$html .= '
';
}
$html .= '