mirror of
https://github.com/itflow-org/itflow
synced 2026-07-23 00:40:45 +00:00
Replace Function getSSL() with getSslCertificate()
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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']);
|
||||
|
||||
@@ -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']);
|
||||
|
||||
@@ -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']);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user