Commit 0d655f98 authored by MatrixCrawler's avatar MatrixCrawler

No commit message

No commit message
parent d666c9d9
......@@ -6,7 +6,7 @@
* See the COPYRIGHT file.
*/
require "config.inc.php";
require_once "config.inc.php";
/**
* Connects to database and returns the PDO Object or false
......@@ -16,19 +16,11 @@ require "config.inc.php";
*/
class DB {
/**
* Constuctor.
* @return Ambigous <boolean, PDO>
*/
function __construct() {
return DB::connectDB();
}
/**
* Connects to the DB
* @return PDO|boolean
*/
private static function connectDB() {
public static function connectDB() {
$dsn = DB_DRIVER.":dbname=".DB_NAME.";host=".DB_HOST;
if (DB_DRIVER == 'mysql') {
......
<!doctype html><html><head><meta charset="utf-8"><title>Diaspora Pod uptime - Find your new social home</title>
<meta name="keywords" content="diaspora, podupti.me, diasp, diasporg, diasp.org, facebook, open source social, open source facebook, open source social network" />
<meta name="description" content="Diaspora Pod Live Status. Find a Diaspora pod to sign up for, rate pods, find one close to you!" />
<script type="text/javascript" src="http://c807316.r16.cf2.rackcdn.com/jquery.min.js"></script>
<script type="text/javascript" src="http://c807316.r16.cf2.rackcdn.com/jquery.tablesorter.min.js"></script>
<script type="text/javascript" src="http://c807316.r16.cf2.rackcdn.com/jquery.loading.1.6.4.min.js"></script>
<script type="text/javascript" src="http://c807316.r16.cf2.rackcdn.com/jquery.tipsy.js"></script>
<?php error_reporting(E_ALL); ?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Diaspora Pod uptime - Find your new social home</title>
<meta name="keywords"
content="diaspora, podupti.me, diasp, diasporg, diasp.org, facebook, open source social, open source facebook, open source social network" />
<meta name="description"
content="Diaspora Pod Live Status. Find a Diaspora pod to sign up for, rate pods, find one close to you!" />
<script type="text/javascript"
src="http://c807316.r16.cf2.rackcdn.com/jquery.min.js"></script>
<script type="text/javascript"
src="http://c807316.r16.cf2.rackcdn.com/jquery.tablesorter.min.js"></script>
<script type="text/javascript"
src="http://c807316.r16.cf2.rackcdn.com/jquery.loading.1.6.4.min.js"></script>
<script type="text/javascript"
src="http://c807316.r16.cf2.rackcdn.com/jquery.tipsy.js"></script>
<script type="text/javascript" src="js/podup.js"></script>
<script type="text/javascript" src="http://c807316.r16.cf2.rackcdn.com/facebox.js"></script>
<script type="text/javascript" src="http://c807316.r16.cf2.rackcdn.com/jquery-ui-1.8.21.custom.min.js"></script>
<script type="text/javascript"
src="http://c807316.r16.cf2.rackcdn.com/facebox.js"></script>
<script type="text/javascript"
src="http://c807316.r16.cf2.rackcdn.com/jquery-ui-1.8.21.custom.min.js"></script>
<script src="OpenLayers.js"></script>
<link href="http://c807316.r16.cf2.rackcdn.com/jquery-ui-1.8.21.custom.css" rel="stylesheet" type="text/css"/>
<link
href="http://c807316.r16.cf2.rackcdn.com/jquery-ui-1.8.21.custom.css"
rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/newstyle.css" />
<link rel="stylesheet" href="css/facebox.css" />
<?php
$hidden = isset($_GET['hidden'])?$_GET['hidden']:null;
$lastfile = 'db/last.data';
include("vendor/mobiledetect/Mobile_Detect.php");
$detect = new Mobile_Detect();
if ($detect->isMobile()) {echo '<link rel="stylesheet" href="http://c807316.r16.cf2.rackcdn.com/mobile.css" /><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">';}
<?php
$hidden = isset ( $_GET ['hidden'] ) ? $_GET ['hidden'] : null;
$lastfile = 'db/last.data';
include ("vendor/mobiledetect/Mobile_Detect.php");
$detect = new Mobile_Detect ();
if ($detect->isMobile ()) {
echo '<link rel="stylesheet" href="http://c807316.r16.cf2.rackcdn.com/mobile.css" /><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">';
}
?>
<script type="text/javascript">
(function() {
......@@ -29,88 +46,109 @@ s.async = true;
s.src = 'http://widgets.digg.com/buttons.js';
s1.parentNode.insertBefore(s, s1);
})();
</script></head>
</script>
</head>
<body>
<header>
<div class="page-header">
<div class="row">
<div class="span6">
<h2 id="title">
DIASPORA* POD UPTIME
</h2>
</div>
<div class="span3" style="margin-top:8px;">
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style ">
<a class="addthis_button_preferred_1"></a>
<a class="addthis_button_preferred_2"></a>
<a class="addthis_button_preferred_3"></a>
<a class="addthis_button_preferred_4"></a>
<a class="addthis_button_compact"></a>
<a class="addthis_counter addthis_bubble_style"></a>
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=davidmmorley"></script>
<!-- AddThis Button END -->
</div>
<div class="span4" style="margin-top:8px;">
<a class="FlattrButton" style="display:none;" rev="flattr;button:compact;" href="http://podupti.me"></a>
</div>
<div class="span2" style="margin-top:8px;">
<a onClick="map();">Show Map View</a>
</div>
<div class="span2" style="margin-top:8px;">
<a onClick="nomap();">Show Table View</a>
</div>
</div>
</div>
</div>
</header>
<div class="container-fluid">
<div class="sidebar">
<div class="adsense2">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- podsky -->
<ins class="adsbygoogle"
style="display:inline-block;width:120px;height:600px"
data-ad-client="ca-pub-3662181805557062"
data-ad-slot="2647650630"></ins>
<script>
<header>
<div class="page-header">
<div class="row">
<div class="span6">
<h2 id="title">DIASPORA* POD UPTIME</h2>
</div>
<div class="span3" style="margin-top: 8px;">
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style ">
<a class="addthis_button_preferred_1"></a> <a
class="addthis_button_preferred_2"></a> <a
class="addthis_button_preferred_3"></a> <a
class="addthis_button_preferred_4"></a> <a
class="addthis_button_compact"></a> <a
class="addthis_counter addthis_bubble_style"></a>
</div>
<script type="text/javascript"
src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=davidmmorley"></script>
<!-- AddThis Button END -->
</div>
<div class="span4" style="margin-top: 8px;">
<a class="FlattrButton" style="display: none;"
rev="flattr;button:compact;" href="http://podupti.me"></a>
</div>
<div class="span2" style="margin-top: 8px;">
<a onClick="map();">Show Map View</a>
</div>
<div class="span2" style="margin-top: 8px;">
<a onClick="nomap();">Show Table View</a>
</div>
</div>
</div>
</div>
</header>
<div class="container-fluid">
<div class="sidebar">
<div class="adsense2">
<script async
src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- podsky -->
<ins class="adsbygoogle"
style="display: inline-block; width: 120px; height: 600px"
data-ad-client="ca-pub-3662181805557062" data-ad-slot="2647650630"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
<a
href="https://market.android.com/details?id=appinventor.ai_david_morley.DiasporaPoduptime"><img
src="http://c807316.r16.cf2.rackcdn.com/android-dude128.png"></a>
</div>
<div class="content">
<div id="map"
style="width: 80%; height: 500px; position: absolute; display: none"></div>
<div id="results">
<?php
if ($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>
<a href="https://market.android.com/details?id=appinventor.ai_david_morley.DiasporaPoduptime"><img src="http://c807316.r16.cf2.rackcdn.com/android-dude128.png"></a>
</div>
<div class="content">
<div id="map" style="width:80%;height:500px;position:absolute;display:none"></div>
<div id="results">
<?php if ($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 id="add">
Pod Host? <u style="cursor: pointer; cursor: hand;">Click here</u> to add your listing.<br>
</div>
<div id="info">
<div id="add">
Pod Host? <u style="cursor: pointer; cursor: hand;">Click here</u>
to add your listing.<br>
</div>
<div id="info">
Data last refreshed at: <?php echo date("F d Y H:i:s.", filemtime($lastfile)) ?> Pacific Time<br>
Poduptime is run by <a href="https://diasp.org/u/davidmorley" target=_new>David Morley</a> and is open source on <a href="https://github.com/diasporg/Poduptime">GitHub</a> Feel free to contribute with pull requests or bug reports!<br>
Some pods are <a href="http://podupti.me/?hidden=true">Hidden</a> since they have too many issues, see the <a href="https://github.com/diasporg/Poduptime/wiki">Wiki</a> for more.<br><br>
</div>
<div id="howto" style="display:none; margin-left:50px">
<br>
Want your pod listed?<br>
Its easy start monitoring on your pod with a free <a href="https://uptimerobot.com" target="new">Uptime Robot</a> account.<br>
Create a monitor for your pod, then in "My Settings" create a monitor-specific API key and paste below.<br>
<br><form action="db/add.php" method="post">
Monitor API Key:<input type="text" name="url" class="xlarge span8" placeholder="m58978-80abdb799f6ccf15e3e4ttwe"><br>
Pod domainname:<input type="text" name="domain" class="xlarge span4" placeholder="domain.com"><br>
Your Email:<input type="text" name="email" class="xlarge span4" placeholder="user@domain.com"><br>
<input type="submit" value="submit">
</form>
<br>Is your pod missing? If the server can not get a diaspora session its on the hidden list <a href="http://podupti.me/?hidden=true">Show</a>. This
is mostly because of selfsigned or openca certs, if you need a free ssl cert get one from startssl.com.
<br>
</div>
<!-- Piwik -->
<script type="text/javascript">
Poduptime is run by <a href="https://diasp.org/u/davidmorley"
target=_new>David Morley</a> and is open source on <a
href="https://github.com/diasporg/Poduptime">GitHub</a> Feel free
to contribute with pull requests or bug reports!<br> Some pods are <a
href="http://podupti.me/?hidden=true">Hidden</a> since they have
too many issues, see the <a
href="https://github.com/diasporg/Poduptime/wiki">Wiki</a> for
more.<br>
<br>
</div>
<div id="howto" style="display: none; margin-left: 50px">
<br> Want your pod listed?<br> Its easy start monitoring on your pod
with a free <a href="https://uptimerobot.com" target="new">Uptime
Robot</a> account.<br> Create a monitor for your pod, then in "My
Settings" create a monitor-specific API key and paste below.<br> <br>
<form action="db/add.php" method="post">
Monitor API Key:<input type="text" name="url" class="xlarge span8"
placeholder="m58978-80abdb799f6ccf15e3e4ttwe"><br> Pod domainname:<input
type="text" name="domain" class="xlarge span4"
placeholder="domain.com"><br> Your Email:<input type="text"
name="email" class="xlarge span4" placeholder="user@domain.com"><br>
<input type="submit" value="submit">
</form>
<br>Is your pod missing? If the server can not get a diaspora
session its on the hidden list <a
href="http://podupti.me/?hidden=true">Show</a>. This is mostly
because of selfsigned or openca certs, if you need a free ssl cert
get one from startssl.com. <br>
</div>
<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
......@@ -123,11 +161,16 @@ is mostly because of selfsigned or openca certs, if you need a free ssl cert get
})();
</script>
<noscript><p><img src="http://podupti.me/s/piwik.php?idsite=1" style="border:0" alt="" /></p></noscript>
<!-- End Piwik Code -->
<noscript>
<p>
<img src="http://podupti.me/s/piwik.php?idsite=1" style="border: 0"
alt="" />
</p>
</noscript>
<!-- End Piwik Code -->
<script type="text/javascript">
<script type="text/javascript">
/* <![CDATA[ */
(function() {
var s = document.createElement('script'), t = document.getElementsByTagName('script')[0];
......@@ -138,7 +181,7 @@ is mostly because of selfsigned or openca certs, if you need a free ssl cert get
})();
/* ]]> */
</script>
</div>
</div>
</div>
</div>
</body>
</html>
<meta charset="utf-8">
<meta charset="utf-8">
<!-- /* Copyright (c) 2011, David Morley. This file is licensed under the Affero General Public License version 3 or later. See the COPYRIGHT file. */ -->
<table id="myTable" class="tablesorter" width="98%">
<thead>
<tr>
<th width="220px">Diaspora Pod<a class="tipsy" title="A pod is a site for you to set up your account.">?</a></th>
<th>Version<a class="tipsy" title="Version of Diaspora this pod runs">?</a></th>
<th>Uptime<a class="tipsy" title="Percent of the time the pod is online for <?php echo date("F") ?>.">?</a></th>
<th>Signups<a class="tipsy" title="Open to public or Closed/Invite only.">?</a></th>
<th>Users<a class="tipsy" title="Number of total users on this pod.">?</a></th>
<th>Posts<a class="tipsy" title="Number of total posts on this pod.">?</a></th>
<th>Months Online<a class="tipsy" title="How many months has this pod been online? Click number for more history.">?</a></th>
<th>User Rating<a class="tipsy" title="User and Admin rating for this pod.">?</a></th>
<th>Location<a class="tipsy" title="Pod location, based on IP Geolocation">?</a></th>
</tr>
</thead>
<tbody>
<thead>
<tr>
<th width="220px">Diaspora Pod<a class="tipsy"
title="A pod is a site for you to set up your account.">?</a></th>
<th>Version<a class="tipsy" title="Version of Diaspora this pod runs">?</a></th>
<th>Uptime<a class="tipsy"
title="Percent of the time the pod is online for <?php echo date("F") ?>.">?</a></th>
<th>Signups<a class="tipsy"
title="Open to public or Closed/Invite only.">?</a></th>
<th>Users<a class="tipsy" title="Number of total users on this pod.">?</a></th>
<th>Posts<a class="tipsy" title="Number of total posts on this pod.">?</a></th>
<th>Months Online<a class="tipsy"
title="How many months has this pod been online? Click number for more history.">?</a></th>
<th>User Rating<a class="tipsy"
title="User and Admin rating for this pod.">?</a></th>
<th>Location<a class="tipsy"
title="Pod location, based on IP Geolocation">?</a></th>
</tr>
</thead>
<tbody>
<?php
$tt=0;
include('db/config.php');
$dbh = pg_connect("dbname=$pgdb user=$pguser password=$pgpass");
if (!$dbh) {
die("Error in connection: " . pg_last_error());
}
$hidden = isset($_GET['hidden'])?$_GET['hidden']:null;
if ($hidden == "true") {
$sql = "SELECT * FROM pods WHERE hidden <> 'no' ORDER BY Hgitdate DESC, uptimelast7 DESC";
} else {
$sql = "SELECT * FROM pods WHERE adminrating <> -1 AND hidden <> 'yes' ORDER BY Hgitdate DESC, uptimelast7 DESC";
}
$result = pg_query($dbh, $sql);
if (!$result) {
die("Error in SQL query: " . pg_last_error());
}
$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.";}
require_once 'db/config.inc.php';
require_once 'db/db.class.php';
else {
$method = "http://";
$class="red";
$tip="This pod does not offer SSL";
}
$verdiff = str_replace(".", "", $row["masterversion"]) - str_replace('.', '', $row["shortversion"]);
if (!$dbConnection = DB::connectDB()) {
// Database connection failed. Do nothing
echo "Could not connect to Database.";
} else {
$hidden = isset ( $_GET ['hidden'] ) ? $_GET ['hidden'] : null;
if ($hidden) {
$sql = "SELECT * FROM pods WHERE hidden <> 'no' ORDER BY Hgitdate DESC, uptimelast7 DESC";
} else {
$sql = "SELECT * FROM pods WHERE hidden <> 'yes' ORDER BY Hgitdate DESC, uptimelast7 DESC";
}
if (!$result = $dbConnection->query($sql)) {
if (DEBUG) {
echo "Error in SQl Syntax. Error: ".$dbConnection->errorInfo[2];
}
} else {
foreach ($result->fetchAll() as $row) {
echo "<tr>\n";
if ($row ["secure"] == "true") {
$method = "https://";
$class = "green";
$tip = "This pod uses SSL encryption for traffic.<br />";
} else {
$method = "http://";
$class = "red";
$tip = "This pod does not offer SSL";
}
$versionDiff = str_replace ( ".", "", $row ["masterversion"] ) - str_replace ( '.', '', $row ["shortversion"] );
$tip .= "This pod {$row["name"]} 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"]}.<br /> ";
$tip .= "Code base is {$row["shortversion"]} and the current github base is {$row["masterversion"]}. <br />";
$tip .= "This pod is {$versionDiff} versions behind the current code. This pods IP {$row["ip"]} " . ($row ["ipv6"] == "yes" ? "has" : "does not have") . " 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. Pod " . ($row ["signup"] == "1" ? "does" : "does not") . " allow new users. <br />";
echo " <td><div title='$tip' class='tipsy'><a class='$class' target='new' href='" . $method . $row ["domain"] . "'>" . $method . $row ["domain"] . "</a></div></td>\n";
if (stristr ( $row ["shortversion"], 'head' )) {
$version = ".dev code";
$pre = "This pod runs pre release development code";
} elseif (! $row ["shortversion"]) {
$version = "0";
$pre = "This pod runs unknown code";
} else {
$version = $row ["shortversion"];
$pre = "This pod runs production code";
}
if ($row ["shortversion"] == $row ["masterversion"] && $row ["shortversion"] != "") {
$classver = "green";
} elseif ($verdiff > 6) {
$classver = "red";
} else {
$classver = "black";
}
echo " <td class='$classver'><div title='{$pre} codename: {$row["longversion"]} master version is: {$row["masterversion"]}' class='tipsy'>{$version}</div></td>\n";
echo " <td>" . $row ["uptimelast7"] . "%</td>\n";
$tip.="\n This pod {$row["name"]} 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"]} ". ($row["ipv6"] == "yes" ? "has" : "does not have") ." 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. Pod " . ($row["signup"] == "1" ? "does" : "does not") . " allow new users.";
$signup = $row["signup"]==1 ? "Open":"Closed";
echo " <td>" . $signup . "</td>\n";
echo "<tr><td><div title='$tip' class='tipsy'><a class='$class' target='new' href='". $method . $row["domain"] ."'>" . $method . $row["domain"] . "</a></div></td>";
"</div></td>";
echo " <td>" . $row ["total_users"] . "</td>\n";
echo " <td>" . $row ["local_posts"] . "</td>\n";
if (stristr($row["shortversion"],'head'))
{$version=".dev code";$pre = "This pod runs pre release
development code";} elseif (!$row["shortversion"])
{$version="0";$pre = "This pod runs
unknown code";}
else
{$version=$row["shortversion"];$pre="This pod runs production code";}
if ($row["shortversion"] == $row["masterversion"] && $row["shortversion"] != "") {$classver = "green";} elseif ($verdiff > 6) {$classver = "red";} else {$classver = "black";}
echo "<td class='$classver'><div title='{$pre} codename: {$row["longversion"]} master version is: {$row["masterversion"]}' class='tipsy'>{$version}</div></td>";
echo "<td>" . $row["uptimelast7"] . "%</td>";
if ($row["signup"] == 1) {$signup="Open";} else {$signup="Closed";}
echo "<td>" . $signup . "</td>";
echo "<td>" . $row["total_users"] . "</td>";
echo "<td>" . $row["local_posts"] . "</td>";
if (strpos($row["pingdomurl"], "pingdom.com")) {$moreurl = $row["pingdomurl"];} else {$moreurl = "http://api.uptimerobot.com/getMonitors?format=json&customUptimeRatio=7-30-60-90&apiKey=".$row["pingdomurl"];}
echo "<td><div title='Last Check ".$row["dateupdated"]."' class='tipsy'><a target='new' href='".$moreurl."'>" . $row["monthsmonitored"] . "</a></div></td>";
if ($row["userrating"] >6) {$userratingclass="green";} elseif ($row["userrating"] <7) {$userratingclass="yellow";} elseif ($row["userrating"] <3) {$userratingclass="red";}
echo "<td><a rel=\"facebox\" href=\"rate.php?domain=".$row["domain"]."\"><div class='tipsy rating ".$userratingclass."' title='User rating is ".$row["userrating"]."/10 Auto Score is: " .$row["score"]. "/20'>";
if ($row["userrating"] == 0) {echo "no rating yet";}
for ($i = 0; $i < $row["userrating"]; $i++) {
echo "✪";
if (strpos($row["pingdomurl"], "pingdom.com")) {
$moreurl = $row ["pingdomurl"];
} else {
$moreurl = "http://api.uptimerobot.com/getMonitors?format=json&customUptimeRatio=7-30-60-90&apiKey=" . $row["pingdomurl"];
}
echo " <td><div title='Last Check " . $row ["dateupdated"] . "' class='tipsy'><a target='new' href='" . $moreurl . "'>" . $row ["monthsmonitored"] . "</a></div></td>\n";
if ($row ["userrating"] > 6) {
$userratingclass = "green";
} elseif ($row ["userrating"] <= 6) {
$userratingclass = "yellow";
} elseif ($row ["userrating"] < 3) {
$userratingclass = "red";
}
echo " <td><a rel=\"facebox\" href=\"rate.php?domain=" . $row ["domain"] . "\"><div class='tipsy rating " . $userratingclass . "' title='User rating is " . $row ["userrating"] . "/10 Auto Score is: " . $row ["score"] . "/20'>";
if ($row ["userrating"] == 0) {
echo "no rating yet";
}
for($i = 0; $i < $row ["userrating"]; $i ++) {
echo "✪";
}
if ($row ["adminrating"] > 6) {
$adminratingclass = "green";
} elseif ($row ["adminrating"] <= 6) {
$adminratingclass = "yellow";
} elseif ($row ["adminrating"] < 3) {
$adminratingclass = "red";
}
echo "</div><br><div class='tipsy rating " . $adminratingclass . "' backendscore='" . $row ["score"] . "' title='Poduptime Approved rating is " . $row ["adminrating"] . "'>";
for($iw = 0; $iw < $row ["adminrating"]; $iw ++) {
echo "✪";
}
echo "</div></a></td>\n";
echo " <td class='tipsy' title='" . $row ["whois"] . " '>" . $row ["country"] . "</td>\n";
echo "</tr>\n";
}
}
}
if ($row["adminrating"] >6) {$adminratingclass="green";} elseif ($row["adminrating"] <7) {$adminratingclass="yellow";} elseif ($row["adminrating"] <3) {$adminratingclass="red";}
echo "</div><br><div class='tipsy rating ".$adminratingclass."' backendscore='".$row["score"]."' title='Poduptime Approved rating is ".$row["adminrating"]."'>";
for ($iw = 0; $iw < $row["adminrating"]; $iw++) {
echo "✪";
}
echo "</div></a></td>";
echo "<td class='tipsy' title='".$row["whois"]." '>" . $row["country"] . "</td></tr>\n";
}
pg_free_result($result);
pg_close($dbh);
?>
</tbody>
</table>
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