prepare("SELECT * FROM `alias` WHERE `address`= :address AND `goto` != :goto AND ( `domain` IN ( SELECT `domain` FROM `domain_admins` WHERE `active`='1' AND `username`= :username ) OR 'admin'= :admin )"); $stmt->execute(array( ':address' => $alias, ':goto' => $alias, ':username' => $_SESSION['mailcow_cc_username'], ':admin' => $_SESSION['mailcow_cc_role'] )); $result = $stmt->fetch(PDO::FETCH_ASSOC); } catch(PDOException $e) { $_SESSION['return'] = array( 'type' => 'danger', 'msg' => 'MySQL: '.$e ); } if ($result !== false) { ?>


">
prepare("SELECT * FROM `domain_admins` WHERE `username`= :domain_admin"); $stmt->execute(array( ':domain_admin' => $domain_admin )); $result = $stmt->fetch(PDO::FETCH_ASSOC); } catch(PDOException $e) { $_SESSION['return'] = array( 'type' => 'danger', 'msg' => 'MySQL: '.$e ); } if ($result !== false) { ?>


">
prepare("SELECT * FROM `domain` WHERE `domain`='".$domain."' AND ( `domain` IN ( SELECT `domain` from `domain_admins` WHERE `active`='1' AND `username` = :username ) OR 'admin'= :admin )"); $stmt->execute(array( ':username' => $_SESSION['mailcow_cc_username'], ':admin' => $_SESSION['mailcow_cc_role'] )); $result = $stmt->fetch(PDO::FETCH_ASSOC); } catch(PDOException $e) { $_SESSION['return'] = array( 'type' => 'danger', 'msg' => 'MySQL: '.$e ); } if ($result !== false) { ?>

">

._domainkey
v=DKIM1;k=rsa;t=s;s=email;p=
prepare("SELECT * FROM `alias_domain` WHERE `alias_domain`= :alias_domain AND ( `target_domain` IN ( SELECT `domain` FROM `domain_admins` WHERE `active`='1' AND `username`= :username ) OR 'admin'= :admin )"); $stmt->execute(array( ':alias_domain' => $alias_domain, ':username' => $_SESSION['mailcow_cc_username'], ':admin' => $_SESSION['mailcow_cc_role'] )); $result = $stmt->fetch(PDO::FETCH_ASSOC); } catch(PDOException $e) { $_SESSION['return'] = array( 'type' => 'danger', 'msg' => 'MySQL: '.$e ); } if ($result !== false) { ?>

">

._domainkey
prepare("SELECT `username`, `domain`, `name`, `quota`, `active` FROM `mailbox` WHERE `username` = :username1"); $stmt->execute(array( ':username1' => $mailbox, )); $result = $stmt->fetch(PDO::FETCH_ASSOC); } catch(PDOException $e) { $_SESSION['return'] = array( 'type' => 'danger', 'msg' => 'MySQL: '.$e ); } if ($result !== false && hasDomainAccess($_SESSION['mailcow_cc_username'], $_SESSION['mailcow_cc_role'], $result['domain'])) { $left_m = remaining_specs($result['domain'], $_GET['mailbox'])['left_m']; ?>

">