Commit 68c0e995 authored by David Morley's avatar David Morley

show location, clean to city/state

parent 1c736007
......@@ -19,7 +19,7 @@
echo "Months Monitored: " . $row["monthsmonitored"] . "<br>";
echo "Response Time: " . $row["responsetimelast7"] . "<br>";
echo "User Rating: ". $row["userrating"] . "<br>";
echo "Country: ". $row["country"] . "<br>";
echo "Server Location: ". $row["country"] . "<br>";
}
pg_free_result($result);
pg_close($dbh);
......
......@@ -156,7 +156,6 @@ $ipv6="yes";
curl_close($hostip);
$iparray = explode(",",$ipraw);
if ($iparray[1] != "-") {$ipdata = "Country: $iparray[1]\n";}
if ($iparray[2] != "-") {$ipdata .= "Region: $iparray[2]\n";}
if ($iparray[3] != "-") {$ipdata .= "City: $iparray[3]\n";}
echo $ipdata;
......
......@@ -12,6 +12,7 @@ od last updated from the main Diaspora code.">?</a></th>
<th>Rating<a class="tipsy" title="User and Admin rating for this pod.">?</a></th>
<th>Response Time<a class="tipsy" title="Average response time for <?php echo date("F") ?>.">?</a></th>
<th>Ipv6<a class="tipsy" title="Does this pod look to have ipv6">?</a></th>
<th>Location<a class="tipsy" title="Pod location, based on IP Geolocation">?</a></th>
</tr>
</thead>
<tbody>
......@@ -51,7 +52,8 @@ echo "✪";
echo "</div></a></td>";
echo "<td>" . $row["responsetimelast7"] . "</td>";
echo "<td class='tipsy' title='IP Address ".$row["ip"]." Ip Data ".$row["country"]." '>" . $row["ipv6"] . "</td></tr>\n";
echo "<td class='tipsy' title='IP Address ".$row["ip"]." '>" . $row["ipv6"] . "</td>\n";
echo "<td class='tipsy' title='IP Address ".$row["ip"]." '>" . $row["country"] . "</td></tr>\n";
}
pg_free_result($result);
pg_close($dbh);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment