Add maintenance query to remove memid=0 emails #2
1 changed files with 4 additions and 4 deletions
|
@ -1964,8 +1964,8 @@ function buildSubjectFromSession() {
|
||||||
|
|
||||||
$csrsubject .= buildSubjectFromSession();
|
$csrsubject .= buildSubjectFromSession();
|
||||||
|
|
||||||
$type="";
|
$type=0;
|
||||||
if($_REQUEST["ocspcert"]!="" && $_SESSION['profile']['admin'] == 1) $type="8";
|
if($_REQUEST["ocspcert"]!="" && $_SESSION['profile']['admin'] == 1) $type=8;
|
||||||
if($_SESSION['_config']['rootcert'] < 1 || $_SESSION['_config']['rootcert'] > 2)
|
if($_SESSION['_config']['rootcert'] < 1 || $_SESSION['_config']['rootcert'] > 2)
|
||||||
$_SESSION['_config']['rootcert'] = 1;
|
$_SESSION['_config']['rootcert'] = 1;
|
||||||
|
|
||||||
|
@ -1978,7 +1978,7 @@ function buildSubjectFromSession() {
|
||||||
`subject`='".mysql_real_escape_string($csrsubject)."',
|
`subject`='".mysql_real_escape_string($csrsubject)."',
|
||||||
`rootcert`='".intval($_SESSION['_config']['rootcert'])."',
|
`rootcert`='".intval($_SESSION['_config']['rootcert'])."',
|
||||||
`md`='".mysql_real_escape_string($_SESSION['_config']['hash_alg'])."',
|
`md`='".mysql_real_escape_string($_SESSION['_config']['hash_alg'])."',
|
||||||
`type`='".$type."',
|
`type`=$type,
|
||||||
`description`='".mysql_real_escape_string($_SESSION['_config']['description'])."'";
|
`description`='".mysql_real_escape_string($_SESSION['_config']['description'])."'";
|
||||||
} else {
|
} else {
|
||||||
$query = "insert into `orgdomaincerts` set
|
$query = "insert into `orgdomaincerts` set
|
||||||
|
@ -1988,7 +1988,7 @@ function buildSubjectFromSession() {
|
||||||
`subject`='".mysql_real_escape_string($csrsubject)."',
|
`subject`='".mysql_real_escape_string($csrsubject)."',
|
||||||
`rootcert`='".intval($_SESSION['_config']['rootcert'])."',
|
`rootcert`='".intval($_SESSION['_config']['rootcert'])."',
|
||||||
`md`='".mysql_real_escape_string($_SESSION['_config']['hash_alg'])."',
|
`md`='".mysql_real_escape_string($_SESSION['_config']['hash_alg'])."',
|
||||||
`type`='".$type."',
|
`type`=$type,
|
||||||
`description`='".mysql_real_escape_string($_SESSION['_config']['description'])."'";
|
`description`='".mysql_real_escape_string($_SESSION['_config']['description'])."'";
|
||||||
}
|
}
|
||||||
mysql_query($query);
|
mysql_query($query);
|
||||||
|
|
Loading…
Reference in a new issue