Replace Function getSSL() with getSslCertificate()

This commit is contained in:
johnnyq
2026-07-14 17:54:31 -04:00
parent 52b5063066
commit 21a23e79b0
5 changed files with 5 additions and 5 deletions

View File

@@ -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";

View File

@@ -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']);

View File

@@ -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']);

View File

@@ -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']);

View File

@@ -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