header("Location: list-domain.php"); # no domains (for this admin at least) - redirect to domain list
header("Location: list.php?table=domain"); # no domains (for this admin at least) - redirect to domain list
exit;
exit;
}
}
@ -59,14 +59,14 @@ if ((is_array ($list_domains) and sizeof ($list_domains) > 0)) {
if(!in_array($fDomain, $list_domains)) {
if(!in_array($fDomain, $list_domains)) {
flash_error( $PALANG['invalid_parameter'] );
flash_error( $PALANG['invalid_parameter'] );
unset($_SESSION['list-virtual:domain']);
unset($_SESSION['list-virtual:domain']);
header("Location: list-domain.php"); # invalid domain, or not owned by this admin
header("Location: list.php?table=domain"); # invalid domain, or not owned by this admin
exit;
exit;
}
}
if (!check_owner(authentication_get_username(), $fDomain)) {
if (!check_owner(authentication_get_username(), $fDomain)) {
flash_error( $PALANG['invalid_parameter'] . " If you see this message, please open a bugreport"); # this check is most probably obsoleted by the in_array() check above
flash_error( $PALANG['invalid_parameter'] . " If you see this message, please open a bugreport"); # this check is most probably obsoleted by the in_array() check above
unset($_SESSION['list-virtual:domain']);
unset($_SESSION['list-virtual:domain']);
header("Location: list-domain.php"); # domain not owned by this admin
header("Location: list.php?table=domain"); # domain not owned by this admin