@ -74,21 +58,22 @@ 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']);
header("Location: list-domain.php"); # invalid domain, or not owned by this admin
header("Location: list-domain.php"); # 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']);
header("Location: list-domain.php"); # domain not owned by this admin
header("Location: list-domain.php"); # domain not owned by this admin
exit(0);
exit(0);
}
}
// store fDomain in $_SESSION so after adding/editing aliases/mailboxes we can
// store domain and page browser offset in $_SESSION so after adding/editing aliases/mailboxes we can
// take the user back to the appropriate domain listing. (see templates/menu.tpl)
// take the user back to the appropriate domain listing.