">
prepare("SELECT `target_domain` FROM `alias_domain` WHERE `alias_domain`= :alias_domain"); $stmt->execute(array(':alias_domain' => $alias_domain)); $DomainData = $stmt->fetch(PDO::FETCH_ASSOC); } catch(PDOException $e) { $_SESSION['return'] = array( 'type' => 'danger', 'msg' => 'MySQL: '.$e ); } if (hasDomainAccess($_SESSION['mailcow_cc_username'], $_SESSION['mailcow_cc_role'], $DomainData['target_domain'])) { ?>