All mysql_-statments replaced by their corresponding mysqli_-statements
[cacert-devel.git] / pages / account / 15.php
index 405cb44..b7a5b6c 100644 (file)
        $query = "select * from `domaincerts`,`domains` where `domaincerts`.`id`='$certid' and
                        `domains`.`memid`='".intval($_SESSION['profile']['id'])."' and
                        `domains`.`id`=`domaincerts`.`domid`";
-       $res = mysql_query($query);
-       if(mysql_num_rows($res) <= 0)
+       $res = mysqli_query($_SESSION['mconn'], $query);
+       if(mysqli_num_rows($res) <= 0)
        {
                echo _("No such certificate attached to your account.");
                showfooter();
                exit;
        }
-       $row = mysql_fetch_assoc($res);
+       $row = mysqli_fetch_assoc($res);
         $crtname=escapeshellarg($row['crt_name']);
        $cert = shell_exec("/usr/bin/openssl x509 -in $crtname");
 ?>