summaryrefslogtreecommitdiff
path: root/scripts/mass-revoke.php
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/mass-revoke.php')
-rw-r--r--[-rwxr-xr-x]scripts/mass-revoke.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/scripts/mass-revoke.php b/scripts/mass-revoke.php
index 18c036b..14192b6 100755..100644
--- a/scripts/mass-revoke.php
+++ b/scripts/mass-revoke.php
@@ -44,37 +44,37 @@ while($in_string = rtrim(fgets($in))) {
$query = "UPDATE `domaincerts` SET `revoked`='1970-01-01 10:00:01'
where `id`='$cert_recid' AND `revoked`<'1970-01-01 10:00:01'";
- if (!mysql_query($query)) {
+ if (!mysqli_query($_SESSION['mconn'], $query)) {
$num_failures++;
}
- $num_domain+=mysql_affected_rows();
+ $num_domain+=mysqli_affected_rows($_SESSION['mconn']);
} else if ($cert_type == "EmailCert") {
$query = "UPDATE `emailcerts` SET `revoked`='1970-01-01 10:00:01'
where `id`='$cert_recid' AND `revoked`<'1970-01-01 10:00:01'";
- if (!mysql_query($query)) {
+ if (!mysqli_query($_SESSION['mconn'], $query)) {
$num_failures++;
}
- $num_client+=mysql_affected_rows();
+ $num_client+=mysqli_affected_rows($_SESSION['mconn']);
} else if ($cert_type == "OrgServerCert") {
$query = "UPDATE `orgdomaincerts` SET `revoked`='1970-01-01 10:00:01'
where `id`='$cert_recid' AND `revoked`<'1970-01-01 10:00:01'";
- if (!mysql_query($query)) {
+ if (!mysqli_query($_SESSION['mconn'], $query)) {
$num_failures++;
}
- $num_orgdomain+=mysql_affected_rows();
+ $num_orgdomain+=mysqli_affected_rows($_SESSION['mconn']);
} else if ($cert_type == "OrgEmailCert") {
$query = "UPDATE `orgemailcerts` SET `revoked`='1970-01-01 10:00:01'
where `id`='$cert_recid' AND `revoked`<'1970-01-01 10:00:01'";
- if (!mysql_query($query)) {
+ if (!mysqli_query($_SESSION['mconn'], $query)) {
$num_failures++;
}
- $num_orgclient+=mysql_affected_rows();
+ $num_orgclient+=mysqli_affected_rows();
}
}