templates/search.php, templates/list-virtual.php:

- replaced the remaining ereg_* calls with preg_* calls


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@688 a1433add-5e2c-0410-b055-b7f2511e0802
postfixadmin-2.3
Christian Boltz 16 years ago
parent dfe10bf036
commit b23620cd8a

@ -154,8 +154,8 @@ if (sizeof ($tAlias) > 0)
print " <td>" . $tAlias[$i]['address'] . "</td>\n"; print " <td>" . $tAlias[$i]['address'] . "</td>\n";
if ($CONF['alias_goto_limit'] > 0) { if ($CONF['alias_goto_limit'] > 0) {
print " <td>" . ereg_replace ( print " <td>" . preg_replace (
",", "/,/",
"<br>", "<br>",
preg_replace( preg_replace(
'/^(([^,]+,){'.$CONF['alias_goto_limit'].'})[^,]+,.*/', '/^(([^,]+,){'.$CONF['alias_goto_limit'].'})[^,]+,.*/',
@ -167,7 +167,7 @@ if (sizeof ($tAlias) > 0)
) )
) . "</td>\n"; ) . "</td>\n";
} else { } else {
print " <td>" . ereg_replace (",", "<br>", $tAlias[$i]['goto']) . "</td>\n"; print " <td>" . preg_replace ("/,/", "<br>", $tAlias[$i]['goto']) . "</td>\n";
} }
print " <td>" . $tAlias[$i]['modified'] . "</td>\n"; print " <td>" . $tAlias[$i]['modified'] . "</td>\n";

@ -76,7 +76,7 @@ if (sizeof ($tAlias) > 0)
$fSearch . "</span>", $tAlias[$i]['goto']); $fSearch . "</span>", $tAlias[$i]['goto']);
$tAlias[$i]['goto'] = $new_goto; $tAlias[$i]['goto'] = $new_goto;
} }
print " <td>" . ereg_replace (",", "<br>", $tAlias[$i]['goto']) . "</td>\n"; print " <td>" . preg_replace ("/,/", "<br>", $tAlias[$i]['goto']) . "</td>\n";
print " <td>" . $tAlias[$i]['modified'] . "</td>\n"; print " <td>" . $tAlias[$i]['modified'] . "</td>\n";
if ($CONF['special_alias_control'] == 'YES' || authentication_has_role('global-admin')) if ($CONF['special_alias_control'] == 'YES' || authentication_has_role('global-admin'))
{ {

Loading…
Cancel
Save