Shorten code

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1514 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana 2010-05-03 16:09:43 +00:00
parent d68a88a155
commit e5969d4eaf

View file

@ -525,10 +525,9 @@ document.getElementById('username').focus();
}
echo "<script type='text/javascript'>\n";
echo "var jushLinks = { $driver: [ '" . addcslashes(h(ME), "\\'/") . "table=\$&', /\\b(" . implode("|", $links) . ")\\b/g ] };\n";
echo "jushLinks.bac = jushLinks.$driver;\n";
echo "jushLinks.bra = jushLinks.$driver;\n";
echo "jushLinks.mssql_bra = jushLinks.$driver;\n";
echo "jushLinks.sqlite_quo = jushLinks.$driver;\n";
foreach (array("bac", "bra", "sqlite_quo", "mssql_bra") as $val) {
echo "jushLinks.$val = jushLinks.$driver;\n";
}
echo "</script>\n";
}
echo '<p><a href="' . h(ME) . 'create=">' . bold(lang('Create new table'), $_GET["create"] === "") . "</a>\n";