Merge branch 'main' into fix-gpg-expiry-date-calculation
This commit is contained in:
commit
ec8c828069
1 changed files with 5 additions and 5 deletions
|
@ -1273,19 +1273,19 @@ function get_user_agreements($memid, $type=null, $active=null){
|
|||
select 1 from `domaincerts` join `domains`
|
||||
on `domaincerts`.`domid` = `domains`.`id`
|
||||
where `domains`.`memid` = '$uid'
|
||||
and `revoked`>NOW()";
|
||||
}else{
|
||||
and `domaincerts`.`revoked` > NOW()";
|
||||
} else {
|
||||
$query1 = "
|
||||
select 1 from `domaincerts` join `domains`
|
||||
on `domaincerts`.`domid` = `domains`.`id`
|
||||
where `domains`.`memid` = '$uid'
|
||||
and `expire`>( SUBDATE( NOW(), 90 ))
|
||||
and `revoked`<`created`";
|
||||
and `domaincerts`.`expire` > ( SUBDATE( NOW(), 90 ))
|
||||
and `domaincerts`.`revoked` < `domaincerts`.`created`";
|
||||
$query2 = "
|
||||
select 1 from `domaincerts` join `domains`
|
||||
on `domaincerts`.`domid` = `domains`.`id`
|
||||
where `domains`.`memid` = '$uid'
|
||||
and `revoked`>( SUBDATE( NOW(), 90 ))";
|
||||
and `domaincerts`.`revoked` > ( SUBDATE( NOW(), 90 ))";
|
||||
}
|
||||
$res = mysql_query($query1);
|
||||
$r1 = mysql_num_rows($res)>0;
|
||||
|
|
Loading…
Reference in a new issue