delete.php: this probably allows you to delete domains

git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@512 a1433add-5e2c-0410-b055-b7f2511e0802
postfixadmin-2.3
David Goodwin 16 years ago
parent b6c2be4976
commit b64d0c0604

@ -61,7 +61,6 @@ if ($fTable == "admin")
header ("Location: $url");
}
} # ($fTable == "admin")
elseif ($fTable == "domain")
{
authentication_require_role('global-admin');
@ -87,6 +86,15 @@ elseif ($fTable == "domain")
header ("Location: $url");
}
} # ($fTable == "domain")
elseif ($fTable == "alias_domain")
{
authentication_require_role('global-admin');
$fWhere = 'domain';
if(db_delete ($table_domain_alias,$fWhere,$fDelete)) {
$url = "list-domain.php";
header ("Location: $url");
}
} # ($fTable == "alias_domain")
elseif ($fTable == "alias" or $fTable == "mailbox")
{
@ -150,7 +158,6 @@ elseif ($fTable == "alias" or $fTable == "mailbox")
if ($CONF['database_type'] == "pgsql") db_query('ROLLBACK');
}
}
else
{
flash_error($PALANG['invalid_parameter']);

Loading…
Cancel
Save