diff --git a/db/pull.php b/db/pull.php index a49038db19c0148a37af5181068ccacd0994b633..24a26948cd10c4117b05493d8dd7db29c0e5ebaf 100644 --- a/db/pull.php +++ b/db/pull.php @@ -195,6 +195,7 @@ if (strpos($row[$i]['pingdomurl'], "pingdom.com")) { $ping = curl_init(); $thismonth = "/".date("Y")."/".date("m"); curl_setopt($ping, CURLOPT_URL, $row[$i]['pingdomurl'].$thismonth); +if ($debug) {echo $row[$i]['pingdomurl'].$thismonth;} curl_setopt($ping, CURLOPT_POST, 0); curl_setopt($ping, CURLOPT_HEADER, 1); curl_setopt($ping, CURLOPT_RETURNTRANSFER, 1); diff --git a/show.php b/show.php index 5c7e21e0169c6a47a0e92b4b39c19d2426606794..79a7238d7ef5ca6c70c7f24b507f7093bb9e5591 100644 --- a/show.php +++ b/show.php @@ -31,7 +31,23 @@ $tt=0; $numrows = pg_num_rows($result); while ($row = pg_fetch_array($result)) { $tt=$tt+1; -if ($row["secure"] == "true") {$method = "https://";$class="green";$tip="This pod uses SSL encryption for traffic.";} else {$method = "http://";$class="red";$tip="This pod does not offer SSL";} +if ($row["secure"] == "true") { +$method = "https://"; +$class="green"; +$tip="This pod uses SSL encryption for traffic.";} + +else { +$method = "http://"; +$class="red"; +$tip="This pod does not offer SSL"; +} +$verdiff = str_replace(".", "", $row["masterversion"]) - str_replace('.', '', $row["shortversion"]); + + +$tip.="\n This pod {$row["domain"]} has been watched for {$row["monthsmonitored"]} months and its average ping time is {$row["responsetimelast7"]} with uptime of {$row["uptimelast7"]} this month and was last checked on {$row["dateupdated"]}. "; +$tip.="Code base is {$row["shortversion"]} and the current github base is {$row["masterversion"]}. "; +$tip.="This pod is {$verdiff} versions behind the current code. This pods IP {$row["ip"]} has IPv6 {$row["ipv6"]} and is located in {$row["country"]}. On a score of -20 to +20 this pod is a {$row["score"]} right now, all data is checked every hour."; + //if ($tt == "3") {echo "";} echo "
" . $method . $row["domain"] . "
"; // echo "" . $row["status"] . ""; @@ -45,8 +61,6 @@ development code";} elseif (!$row["shortversion"]) unknown code";} else {$version=$row["shortversion"];$pre="This pod runs production code";} -$verdiff = str_replace(".", "", $row["masterversion"]) - str_replace('.', '', $row["shortversion"]); -//echo is_numeric($verdiff); if ($row["shortversion"] == $row["masterversion"] && $row["shortversion"] != "") {$classver = "green";} elseif ($verdiff > 6) {$classver = "red";} else {$classver = "black";} echo "
{$version}
"; echo "" . $row["uptimelast7"] . "";