diff --git a/db/pull.php b/db/pull.php index 709d353d39eb6eb1a82991cf34d5c8e0aaa6b006..2a91a396c6c988cfa88ad014671935b3d3b0f588 100644 --- a/db/pull.php +++ b/db/pull.php @@ -79,7 +79,7 @@ while ($row = pg_fetch_assoc($result)) { $shortversion = $dverr[0]; $signup = ($jsonssl->openRegistrations ?? false) === true; $softwarename = $jsonssl->software->name ?? 'unknown'; - $name = $jsonssl->metadata->nodeName ?? 'null'; + $name = $jsonssl->metadata->nodeName ?? $softwarename; $total_users = $jsonssl->usage->users->total ?? 0; $active_users_halfyear = $jsonssl->usage->users->activeHalfyear ?? 0; $active_users_monthly = $jsonssl->usage->users->activeMonth ?? 0; @@ -120,7 +120,7 @@ while ($row = pg_fetch_assoc($result)) { $iplookupv4 = []; $ip = ''; - exec(escapeshellcmd('delv @' . $dnsserver . ' ' . $domain), $iplookupv4); + exec(escapeshellcmd('delv @' . $dnsserver . ' ' . $domain . ' 2>&1'), $iplookupv4); $dnssec = in_array('; fully validated', $iplookupv4, true) ?? false; $getaonly = array_values(preg_grep('/\s+IN\s+A\s+.*/', $iplookupv4)); if ($getaonly) { @@ -129,7 +129,7 @@ while ($row = pg_fetch_assoc($result)) { } $iplookupv6 = []; $ipv6 = null; - exec(escapeshellcmd('delv @' . $dnsserver . ' ' . $domain . ' AAAA '), $iplookupv6); + exec(escapeshellcmd('delv @' . $dnsserver . ' ' . $domain . ' AAAA 2>&1'), $iplookupv6); $getaaaaonly = array_values(preg_grep('/\s+IN\s+AAAA\s+.*/', $iplookupv6)); if ($getaaaaonly) { preg_match('/AAAA\s(.*)/', $getaaaaonly[0], $aaaaversion); diff --git a/go.php b/go.php index 5669157c75e0912ce51a20526348c5b9c28d6446..cedac23bf73b8190458eeb5cd95bf91925b708f7 100644 --- a/go.php +++ b/go.php @@ -32,5 +32,5 @@ if ($_domain) { $result = pg_query_params($dbh, $sql, [$row[0]['domain'], '1']); $result || die('Error in SQL query: ' . pg_last_error()); - header('Location: https://' . $row[0]['domain'] . '/users/sign_up'); + header('Location: https://' . $row[0]['domain']); } diff --git a/index.php b/index.php index 6972991f682913115580584a18cdd67f7c34ac8d..493982bda7305b58991d7a8e942548a767064246 100644 --- a/index.php +++ b/index.php @@ -9,7 +9,7 @@ $podminedit = isset($_GET['podminedit']); $simpleview = !($detailedview || $mapview || $cleanup || $podmin || $podminedit || $statsview); ?> - +
Data refreshed:
EST
Data refreshed:
EST