Merge branch 'master' of https://github.com/mailcow/mailcow-dockerized
commit
fe1e9f3d15
|
@ -11,7 +11,7 @@ SPF_FAIL_NO_DKIM {
|
|||
score = 10;
|
||||
}
|
||||
SOGO_CONTACT_EXCLUDE_FWD_HOST {
|
||||
expression = "WHITELISTED_FWD_HOST & ~SOGO_CONTACT";
|
||||
expression = "-WHITELISTED_FWD_HOST & ~SOGO_CONTACT";
|
||||
}
|
||||
SOGO_CONTACT_SPOOFED {
|
||||
expression = "(R_SPF_PERMFAIL | R_SPF_SOFTFAIL | R_SPF_FAIL) & ~SOGO_CONTACT";
|
||||
|
|
|
@ -23,7 +23,7 @@ function admin($_action, $_data = null) {
|
|||
$_SESSION['return'][] = array(
|
||||
'type' => 'danger',
|
||||
'log' => array(__FUNCTION__, $_action, $_data_log),
|
||||
'msg' => 'username_invalid'
|
||||
'msg' => array('username_invalid', $username)
|
||||
);
|
||||
return false;
|
||||
}
|
||||
|
@ -261,7 +261,7 @@ function admin($_action, $_data = null) {
|
|||
':admin' => $_data
|
||||
));
|
||||
$row = $stmt->fetch(PDO::FETCH_ASSOC);
|
||||
if (empty($row)) {
|
||||
if (empty($row)) {
|
||||
return false;
|
||||
}
|
||||
$admindata['username'] = $row['username'];
|
||||
|
|
|
@ -35,7 +35,7 @@ function domain_admin($_action, $_data = null) {
|
|||
$_SESSION['return'][] = array(
|
||||
'type' => 'danger',
|
||||
'log' => array(__FUNCTION__, $_action, $_data_log),
|
||||
'msg' => 'username_invalid'
|
||||
'msg' => array('username_invalid', $username)
|
||||
);
|
||||
return false;
|
||||
}
|
||||
|
@ -44,12 +44,12 @@ function domain_admin($_action, $_data = null) {
|
|||
WHERE `username` = :username");
|
||||
$stmt->execute(array(':username' => $username));
|
||||
$num_results[] = count($stmt->fetchAll(PDO::FETCH_ASSOC));
|
||||
|
||||
|
||||
$stmt = $pdo->prepare("SELECT `username` FROM `admin`
|
||||
WHERE `username` = :username");
|
||||
$stmt->execute(array(':username' => $username));
|
||||
$num_results[] = count($stmt->fetchAll(PDO::FETCH_ASSOC));
|
||||
|
||||
|
||||
$stmt = $pdo->prepare("SELECT `username` FROM `domain_admins`
|
||||
WHERE `username` = :username");
|
||||
$stmt->execute(array(':username' => $username));
|
||||
|
@ -379,7 +379,7 @@ function domain_admin($_action, $_data = null) {
|
|||
}
|
||||
$stmt = $pdo->query("SELECT DISTINCT
|
||||
`username`
|
||||
FROM `domain_admins`
|
||||
FROM `domain_admins`
|
||||
WHERE `username` IN (
|
||||
SELECT `username` FROM `admin`
|
||||
WHERE `superadmin`!='1'
|
||||
|
@ -415,7 +415,7 @@ function domain_admin($_action, $_data = null) {
|
|||
':domain_admin' => $_data
|
||||
));
|
||||
$row = $stmt->fetch(PDO::FETCH_ASSOC);
|
||||
if (empty($row)) {
|
||||
if (empty($row)) {
|
||||
return false;
|
||||
}
|
||||
$domainadmindata['username'] = $row['username'];
|
||||
|
|
Loading…
Reference in New Issue