<summary>Location {$row['city']}, {$row['state']}<![CDATA[<br/>]]>Status {$row['status']}<![CDATA[<br/>]]>Uptime last 7 days {$row['uptimelast7']}<![CDATA[<br/>]]>Response Time {$row['responsetimelast7']}<![CDATA[<br/>]]>Last Git Update {$row['hgitdate']}<![CDATA[<br/>]]>Listed for {$row['monthsmonitored']} months<![CDATA[<br/>]]>Pingdom URL <![CDATA[<A href="{$row['pingdomurl']}">{$row['pingdomurl']}</a>]]></summary>
$sql="SELECT id,domain,status,secure,score,userrating,adminrating,city,state,country,lat,long,ip,ipv6,hgitdate,hgitref,pingdomurl,pingdomlast,monthsmonitored,uptimelast7,responsetimelast7,hruntime,hencoding,dateCreated,dateUpdated,dateLaststats,hidden FROM pods";
$result=pg_query($dbh,$sql);
if(!$result){
die("Error in SQL query: ".pg_last_error());
}
$numrows=pg_num_rows($result);
//json output, thx Vipul A M for fixing this
header('Content-type: application/json');
$rows=array_values(pg_fetch_all($result));
$obj->podcount=$numrows;
$obj->pods=$rows;
printjson_encode($obj);
}else{
$i=0;
$sql="SELECT * FROM pods WHERE hidden <> 'yes' ORDER BY Hgitdate DESC, uptimelast7 DESC";
<?phpif($_GET["hidden"]=="true"){echo"<a href='http://podupti.me' class='btn danger large'>NOTICE: These pods are Hidden and have problems, click here to go to working pods</a>";}include("show.php");?>
</div>
</div>
<divid="add">
<divid="add">
Pod Host? <ustyle="cursor: pointer; cursor: hand;">Click here</u> to add/manage your listing.<br>
Pod Host? <ustyle="cursor: pointer; cursor: hand;">Click here</u> to add/manage your listing.<br>
...
@@ -112,24 +112,18 @@ is mostly because of selfsigned or openca certs, if you need a free ssl cert get
...
@@ -112,24 +112,18 @@ is mostly because of selfsigned or openca certs, if you need a free ssl cert get