Skip to content

Commit

Permalink
Domain expiration dates - remove debug
Browse files Browse the repository at this point in the history
  • Loading branch information
wrongecho committed Feb 22, 2024
1 parent 66dc7e7 commit dae51c9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion cron_domain_refresher.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
$domain_name = sanitizeInput($row['domain_name']);
$current_expire = sanitizeInput($row['domain_expire']);

echo "Renewing $domain_name";
// Touch the record we're refreshing to ensure we don't loop
mysqli_query($mysqli, "UPDATE domains SET domain_updated_at = NOW() WHERE domain_id = $domain_id");

Expand Down
2 changes: 1 addition & 1 deletion post/domain.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
$whois = sanitizeInput($records['whois']);

// Add domain record
mysqli_query($mysqli,"INSERT INTO domains SET domain_name = '$name', domain_registrar = $registrar, domain_webhost = $webhost, domain_expire = $expire, domain_ip = '$a', domain_name_servers = '$ns', domain_mail_servers = '$mx', domain_txt = '$txt', domain_raw_whois = '$whois', domain_notes = '$notes', domain_client_id = $client_id") or die(mysqli_error($mysqli));
mysqli_query($mysqli,"INSERT INTO domains SET domain_name = '$name', domain_registrar = $registrar, domain_webhost = $webhost, domain_expire = $expire, domain_ip = '$a', domain_name_servers = '$ns', domain_mail_servers = '$mx', domain_txt = '$txt', domain_raw_whois = '$whois', domain_notes = '$notes', domain_client_id = $client_id");

// Get inserted ID (for linking certificate, if exists)
$domain_id = mysqli_insert_id($mysqli);
Expand Down

0 comments on commit dae51c9

Please sign in to comment.