From 21a23e79b08d2672dc79c5ae8b6a29a22b45b020 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Tue, 14 Jul 2026 17:54:31 -0400 Subject: [PATCH] Replace Function getSSL() with getSslCertificate() --- agent/ajax.php | 2 +- agent/post/client.php | 2 +- agent/post/domain.php | 2 +- cron/certificate_refresher.php | 2 +- functions/domain.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/agent/ajax.php b/agent/ajax.php index 3d100bd9..f63380c5 100644 --- a/agent/ajax.php +++ b/agent/ajax.php @@ -25,7 +25,7 @@ if (isset($_GET['certificate_fetch_parse_json_details'])) { $name = $_GET['domain']; // Get SSL cert for domain (if exists) - $certificate = getSSL($name); + $certificate = getSslCertificate($name); if ($certificate['success'] == "TRUE") { $response['success'] = "TRUE"; diff --git a/agent/post/client.php b/agent/post/client.php index 65666de6..17ca742b 100644 --- a/agent/post/client.php +++ b/agent/post/client.php @@ -209,7 +209,7 @@ if (isset($_POST['add_client'])) { } $domain_id = mysqli_insert_id($mysqli); - $certificate = getSSL($website); + $certificate = getSslCertificate($website); if ($certificate['success'] == "TRUE") { $expire = cleanInput($certificate['expire']); diff --git a/agent/post/domain.php b/agent/post/domain.php index d1e59845..47dbdfcb 100644 --- a/agent/post/domain.php +++ b/agent/post/domain.php @@ -46,7 +46,7 @@ if (isset($_POST['add_domain'])) { $domain_id = mysqli_insert_id($mysqli); // Get SSL cert for domain (if exists) - $certificate = getSSL($name); + $certificate = getSslCertificate($name); if ($certificate['success'] == "TRUE") { $expire = escapeSql($certificate['expire']); $issued_by = escapeSql($certificate['issued_by']); diff --git a/cron/certificate_refresher.php b/cron/certificate_refresher.php index 035fe263..4bdb04de 100644 --- a/cron/certificate_refresher.php +++ b/cron/certificate_refresher.php @@ -46,7 +46,7 @@ while ($row = mysqli_fetch_assoc($sql_certificates)) { $certificate_id = intval($row['certificate_id']); $domain = escapeSql($row['certificate_domain']); - $certificate = getSSL($domain); + $certificate = getSslCertificate($domain); $expire = escapeSql($certificate['expire']); $issued_by = escapeSql($certificate['issued_by']); diff --git a/functions/domain.php b/functions/domain.php index dc0e8c08..026a334e 100644 --- a/functions/domain.php +++ b/functions/domain.php @@ -72,7 +72,7 @@ function getDnsRecords($name) // Used to automatically attempt to get SSL certificates as part of adding domains // The logic for the fetch (sync) button on the client_certificates page is in ajax.php, and allows ports other than 443 -function getSSL($full_name) +function getSslCertificate($full_name) { // Parse host and port