Schema download page

This commit is contained in:
Jamie Cameron
2010-09-17 16:15:45 -07:00
parent cf2aeec328
commit 25fc52767b
5 changed files with 29 additions and 2 deletions

View File

@ -8,6 +8,12 @@ $access{'pass'} || &error($text{'sql_ecannot'});
&error_setup($text{'sql_err'});
$p = $in{'proto'};
if ($in{'schema'}) {
# Redirect to schema download page
&redirect("schema.cgi");
return;
}
# Parse inputs
if ($p eq 'mysql' || $p eq 'postgresql' || $p eq 'ldap') {
gethostbyname($in{$p."_host"}) ||