Commit f47ccc35 authored by dmorley's avatar dmorley

few more back to ===

parent 4110d083
......@@ -37,7 +37,7 @@ EOF;
$row['dateupdated'],
$row['score']
);
$scheme = $row['secure'] ? 'https://' : 'http://';
$scheme = $row['secure'] === 't' ? 'https://' : 'http://';
echo <<<EOF
<entry>
<title>{$scheme}{$row['domain']}</title>
......
......@@ -42,7 +42,7 @@ $numrows = pg_num_rows($result);
<tbody>
<?php
while ($row = pg_fetch_array($result)) {
if ($row['secure']) {
if ($row['secure'] === 't') {
$scheme = 'https://';
$class = 'green';
$tip = 'This pod uses SSL encryption for traffic.';
......@@ -76,7 +76,7 @@ $numrows = pg_num_rows($result);
}
echo '<td class="' . $classver . '"><div title="' . $pre . ' version: ' . $row['shortversion'] . ' master version is: ' . $row['masterversion'] . '" data-toggle="tooltip" data-placement="bottom">' . $version . '</div></td>';
echo '<td>' . $row['uptime_alltime'] . '%</td>';
echo '<td>' . ($row['ipv6'] ? 'Yes' : 'No') . '</td>';
echo '<td>' . ($row['ipv6'] === 't' ? 'Yes' : 'No') . '</td>';
echo '<td>' . $row['responsetimems'] . '</td>';
echo '<td>' . ($row['signup'] === 't' ? 'Open' : 'Closed') . '</td>';
echo '<td>' . $row['total_users'] . '</td>';
......
......@@ -47,8 +47,8 @@ foreach ($csv as $cords) {
$row['service_xmpp'] === 't' && $feat .= '<div class="smlogo smlogo-xmpp"><img src="/images/icon-xmpp.png" width="16" height="16" title="XMPP chat server" alt="XMPP chat server"></div>';
$pod_name = htmlentities($row['name'], ENT_QUOTES);
$scheme = $row['secure'] ? 'https://' : 'http://';
$signup = $row['signup'] ? 'yes' : 'no';
$scheme = $row['secure'] === 't' ? 'https://' : 'http://';
$signup = $row['signup'] === 't' ? 'yes' : 'no';
echo <<<EOF
{
'type': 'Feature',
......
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