Commit 4c9fe4dc authored by David Morley's avatar David Morley
Browse files

bootstrap 4 alpha 5

parent 04f9aeaf
...@@ -19,6 +19,8 @@ font-size:9px; ...@@ -19,6 +19,8 @@ font-size:9px;
margin-left: 2px !important; margin-left: 2px !important;
width: 99%; width: 99%;
} }
.tfont {
}
#results { #results {
width: 750px; width: 750px;
} }
......
<!doctype html><html><head><meta charset="utf-8"><title>Federated Pod Uptime Status - Find your new social home on a hosted pod</title> <!doctype html><html><head><meta charset="utf-8"><title>Diaspora Pod Uptime Status - Find your new social home on a hosted pod</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="keywords" content="diaspora, federated pods, podupti.me, open source social, 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!" /> <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="js/jquery-1.6.4.min.js"></script> <link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.min.css">
<script type="text/javascript" src="js/jquery.tablesorter.min.js"></script>
<script type="text/javascript" src="js/jquery.loading.1.6.4.min.js"></script>
<script type="text/javascript" src="js/jquery.tipsy.js"></script>
<script type="text/javascript" src="js/podup.js"></script>
<script type="text/javascript" src="js/facebox.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.21.custom.min.js"></script>
<link href="css/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/newstyle.css" />
<link rel="stylesheet" href="css/facebox.css" /> <link rel="stylesheet" href="css/facebox.css" />
<link rel="stylesheet" href="css/dashboard.css" />
<link rel="stylesheet" href="bower_components/jquery-ui/themes/base/jquery-ui.min.css" />
<meta property="og:url" content="https://podupti.me" /> <meta property="og:url" content="https://podupti.me" />
<meta property="og:title" content="Diaspora Pod Finder" /> <meta property="og:title" content="Diaspora Pod Finder" />
<meta property="og:type" content="website" /> <meta property="og:type" content="website" />
...@@ -22,121 +16,87 @@ $lastfile = 'db/last.data'; ...@@ -22,121 +16,87 @@ $lastfile = 'db/last.data';
$advancedview = isset($_GET['advancedview'])?$_GET['advancedview']:null; $advancedview = isset($_GET['advancedview'])?$_GET['advancedview']:null;
$mapview = isset($_GET['mapview'])?$_GET['mapview']:null; $mapview = isset($_GET['mapview'])?$_GET['mapview']:null;
$cleanup = isset($_GET['cleanup'])?$_GET['cleanup']:null; $cleanup = isset($_GET['cleanup'])?$_GET['cleanup']:null;
$podmin = isset($_GET['podmin'])?$_GET['podmin']:null;
$podminedit = isset($_GET['podminedit'])?$_GET['podminedit']:null;
?> ?>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=yes" /> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=yes">
<meta http-equiv="x-ua-compatible" content="ie=edge">
</head> </head>
<body> <body>
<div id="fb-root"></div> <nav class="navbar navbar-dark navbar-fixed-top bg-primary">
<script>(function(d, s, id) { <button type="button" class="navbar-toggler hidden-sm-up" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar" aria-label="Toggle navigation"></button>
var js, fjs = d.getElementsByTagName(s)[0]; <a class="navbar-brand" href="#">Podupti.me</a>
if (d.getElementById(id)) return; <div id="navbar" class="text-muted collapse">
js = d.createElement(s); js.id = id; <nav class="nav navbar-nav float-xs-left">
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.7&appId=559196844215273"; <a class="nav-item nav-link" href="/">Simple View</a>
fjs.parentNode.insertBefore(js, fjs); <a class="nav-item nav-link" href="/?advancedview=true">Advanced View</a>
}(document, 'script', 'facebook-jssdk'));</script> <a class="nav-item nav-link" href="/?mapview=true">Map View</a>
<header> </nav>
<div class="page-header"> </div>
</nav>
<div class="container-fluid">
<div class="row"> <div class="row">
<div class="span5"> <div class="col-sm-3 col-md-2 sidebar">
<h2 id="title"> <ul class="nav nav-sidebar">
Federated Social Pods <li class="active"><a href="/">Simple View <span class="sr-only bg-dark">(current)</span></a></li>
</h2> <li><a href="/?advancedview=true">Advanced View</a></li>
</div> <li><a href="/?mapview=true">Map View</a></li>
<div class="span2" style="margin-top:8px;"> </ul>
<div class="fb-share-button" data-href="https://podupti.me" data-layout="button_count" data-size="small" data-mobile-iframe="true"><a class="fb-xfbml-parse-ignore" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fpodupti.me%2F&amp;src=sdkpreparse">Share</a></div> <ul class="nav nav-sidebar">
</div> <li><a href="/?podmin=true">Add a pod</a></li>
<li><a href="/?podminedit=true">Edit a pod</a></li>
<div class="span2" style="margin-top:8px;"> <li><a href="https://diasporafoundation.org/">Host a pod</a></li>
<div class="g-plusone" data-size="small" data-href="https://podupti.me"></div> </ul>
</div> <ul class="nav nav-sidebar">
<div class="span2" style="margin-top:8px;"> <li><a href="https://github.com/diasporg/Poduptime">Github</a></li>
<a href="https://twitter.com/intent/tweet?button_hashtag=diaspora" class="twitter-hashtag-button" data-text="Diaspora Pod Live Status. Find a Diaspora pod to sign up for, rate pods, find one close to you!" data-url="https://podupti.me" data-related="diasporg" data-show-count="false">Tweet #diaspora</a><script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script> <li><a href="https://dia.so/support">Contact</a></li>
</div> <li><a href="https://github.com/diasporg/Poduptime/wiki">Wiki</a></li>
<li><a href="https://github.com/diasporg/Poduptime/wiki/API">API</a></li>
</div> </ul>
</div> <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
</div> <ins class="adsbygoogle"
</header> style="display:block"
<div class="container-fluid"> data-ad-client="ca-pub-3662181805557062"
<div class="content"> data-ad-slot="2195215834"
<?php data-ad-format="auto"></ins>
if ($advancedview) { <script>
echo <<<EOF (adsbygoogle = window.adsbygoogle || []).push({});
<div id="adadv"> </script>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <br>
<!-- poduptimenew --> Data last refreshed: <br><?php echo date("F d Y H:i:s.", filemtime($lastfile)) ?> EST
<ins class="adsbygoogle" </div>
style="display:inline-block;width:300px;height:250px" <div class="main col-md-10 offset-md-2">
data-ad-client="ca-pub-3662181805557062" <a href='random.php' class='btn btn-sm btn-success'>Confused? Auto pick a pod for you.</a>
data-ad-slot="3969028081"></ins> <div class="row placeholders">
<script> </div>
(adsbygoogle = window.adsbygoogle || []).push({}); <div class="table-responsive">
</script> <?php
</div> if ($advancedview) {
EOF; include("showfull.php");
} elseif ($cleanup) {echo ""; } elseif ($mapview) {
} else { include("showmap.php");
echo <<<EOF } elseif ($podmin) {
<div id="ad"> include("podmin.php");
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> } elseif ($podminedit) {
<!-- poduptimenew --> include("podminedit.php");
<ins class="adsbygoogle"
style="display:inline-block;width:300px;height:250px"
data-ad-client="ca-pub-3662181805557062"
data-ad-slot="3969028081"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
EOF;
}
?>
<div id="results">
<?php
if ($advancedview) {
echo "<a href='http://podupti.me' class='btn danger large'>NOTICE: This view shows all pods in all states, some offline, click here to go to list of pods open for signup</a><br>";
include("showfull.php");
} elseif ($mapview) {
include("showmap.php");
} elseif ($cleanup) { } elseif ($cleanup) {
include("cleanup.php"); include("cleanup.php");
} else { } else {
echo "<a href='random.php' class='btn danger large'>Confused and just want to sign up?? Click Here and we will pick one for you</a><br>";
include("show.php"); include("show.php");
} }
?> ?>
</div> </div>
<div id="add"> </div>
Pod Host? <u style="cursor: pointer; cursor: hand;">Click here</u> to add/edit 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>
Want more stats? <a href="https://the-federation.info/">https://the-federation.info/</a> | <a href="https://diapod.net/active/">https://diapod.net/active/</a><br>
Poduptime is open source on <a href="https://github.com/diasporg/Poduptime">GitHub</a> Feel free to contribute with pull requests or bug reports!<br>
Questions on how this site works? <a href="https://github.com/diasporg/Poduptime/wiki">Wiki</a> | <a href="https://dia.so/support">Contact</a><br>
<a href="https://diasporafoundation.org/">More about Diaspora</a><br><a href="http://friendica.com/">More about Friendica</a><br><a href="http://hubzilla.org/">More about Hubzilla(redmatrix)</a>
</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="https://podupti.me/db/add.php" method="post">
Monitor API Key:<input type="text" name="url" class="xlarge span8" placeholder="m58978-80abdb799f6ccf15e3e4ttwe"> (don't copy the period on the end)<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>
Need to edit something?<br>
<form action="https://podupti.me/db/gettoken.php" method="post">Pod Domainname:<input type="text" name="domain">Registered Email:<input type="text" name="email" placeholder="Ok to leave blank if you forgot"><input type=submit value="send"></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> </div>
</div> </div>
</div> <script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="https://apis.google.com/js/platform.js" async defer></script> <script src="bower_components/tether/dist/js/tether.min.js"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="js/podup.js"></script>
<script src="js/facebox.js"></script>
<script src="bower_components/tablesorter/dist/js/jquery.tablesorter.min.js"></script>
<script src="bower_components/jquery-ui/jquery-ui.min.js"></script>
</body> </body>
</html> </html>
<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="https://podupti.me/db/add.php" method="post">
Monitor API Key:<input type="text" name="url" class="xlarge span8" placeholder="m58978-80abdb799f6ccf15e3e4ttwe"> (don't copy the period on the end)<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>
<form action="https://podupti.me/db/gettoken.php" method="post">Pod Domainname:<input type="text" name="domain">Registered Email:<input type="text" name="email" placeholder="Ok to leave blank if you forgot"><input type=submit value="send"></form>
<html><head> <html><head>
<style type="text/css"> <style type="text/css">
#slider { margin: 10px;width:250px;display:inline-block; } #slider { margin: 10px;width:250px;display:inline-block; }
#rating { height: 30px;width:30px; } #rating { height: 35px;width:35px; }
</style> </style>
<script> <script>
$(document).ready(function() { $(document).ready(function() {
...@@ -69,7 +69,7 @@ Your Name (or Diaspora handle)?<br><input id="username" name="username"><br> ...@@ -69,7 +69,7 @@ Your Name (or Diaspora handle)?<br><input id="username" name="username"><br>
Your Profile URL?<br><input id="userurl" name="userurl"><br> Your Profile URL?<br><input id="userurl" name="userurl"><br>
Comment<br><textarea id="comment" name="comment"></textarea><br> Comment<br><textarea id="comment" name="comment"></textarea><br>
Rating (1-10 scale, 10 high)<br><div id="slider"></div><input class="disabled" disabled="" id="rating" name="rating" value="10"> Rating (1-10 scale, 10 high)<br><div id="slider"></div><input class="disabled" disabled="" id="rating" name="rating" value="10">
<input class="btn primary" id="submitrating" type="submit" value="Submit your Rating"> <br><input class="btn primary" id="submitrating" type="submit" value="Submit your Rating">
<div class="alert-message warning" id="error" style="display:none"><span id="errortext">Some Error</span></div> <div class="alert-message warning" id="error" style="display:none"><span id="errortext">Some Error</span></div>
</div> </div>
EOF; EOF;
......
...@@ -20,50 +20,49 @@ $numrows = pg_num_rows($result); ...@@ -20,50 +20,49 @@ $numrows = pg_num_rows($result);
echo "<meta property='og:title' content='"; echo "<meta property='og:title' content='";
echo $numrows; echo $numrows;
echo " Federated Pods listed, Come see the privacy aware social networks.' />"; echo " Federated Pods listed, Come see the privacy aware social networks.' />";
echo $numrows;
?> ?>
pods that are open for signup now. <div class="hidden-sm-up">Scroll right or rotate device for more</div>
Click column names to sort and find a pod. <table class="table table-striped table-sm tablesorter table-hover tfont" id="myTable">
Show as: <a href="?mapview=true">Map</a> | <a href="/">Simple Table</a> | <a href="?advancedview=true">Advanced Table</a> <thead class="thead-inverse">
<meta charset="utf-8"> <tr>
<!-- /* Copyright (c) 2011, David Morley. This file is licensed under the Affero General Public License version 3 or later. See the COPYRIGHT file. */ --> <th><a data-toggle='tooltip' data-placement='bottom' title="A pod is a site for you to set up your account.">Pod</a></th>
<table id="myTable" class="tablesorter zebra-striped" style="width:750px; !important"> <th><a data-toggle='tooltip' data-placement='bottom' title="Percent of the time the pod is online for <?php echo date("F") ?>.">Uptime %</a></th>
<thead> <th><a data-toggle='tooltip' data-placement='bottom' title="Number of users active last 6 months on this pod.">Active Users</a></th>
<tr> <th><a data-toggle='tooltip' data-placement='bottom' title="Pod location, based on IP Geolocation">Location</a></th>
<th width="220px">Federated Pod<a class="tipsy" title="A pod is a site for you to set up your account.">?</a></th> <th><a data-toggle='tooltip' data-placement='bottom' title="External Social Networks this pod can post to">Services Offered</a></th>
<th>Uptime %<a class="tipsy" title="Percent of the time the pod is online for <?php echo date("F") ?>.">?</a></th> </tr>
<th>Active Users<a class="tipsy" title="Number of users active last 6 months on this pod.">?</a></th> </thead>
<th>Location<a class="tipsy" title="Pod location, based on IP Geolocation">?</a></th> <tbody>
<th>Services Offered<a class="tipsy" title="External Social Networks this pod can post to">?</a></th>
</tr>
</thead>
<tbody>
<?php <?php
while ($row = pg_fetch_array($result)) { while ($row = pg_fetch_array($result)) {
$tt=$tt+1; $tt=$tt+1;
$tip="";
if ($row["secure"] == "true") { if ($row["secure"] == "true") {
$method = "https://"; $method = "https://";
$class="green"; $class="text-success";
$tip="This pod uses SSL encryption for traffic.";} //$tip="This pod uses SSL encryption for traffic.";
}
else { else {
$method = "http://"; $method = "http://";
$class="red"; $class="red";
$tip="This pod does not offer SSL"; //$tip="This pod does not offer SSL";
} }
$verdiff = str_replace(".", "", $row["masterversion"]) - str_replace('.', '', $row["shortversion"]); $verdiff = str_replace(".", "", $row["masterversion"]) - str_replace('.', '', $row["shortversion"]);
$pod_name = htmlentities($row["name"], ENT_QUOTES); $pod_name = htmlentities($row["name"], ENT_QUOTES);
$tip.="\n This {$row["softwarename"]} pod {$pod_name} has been watched for {$row["monthsmonitored"]} months and with an uptime of {$row["uptimelast7"]}% this month and was last checked on {$row["dateupdated"]}. "; $tip.="\n This {$row["softwarename"]} pod {$pod_name} has been watched for {$row["monthsmonitored"]} months and with an uptime of {$row["uptimelast7"]}% this month. ";
$tip.="On a scale of 100 this pod is a {$row["score"]} right now"; $tip.="On a scale of 100 this pod is a {$row["score"]} right now";
echo "<tr><td><a class='$class' target='new' href='". $method . $row["domain"] ."'>" . $row["domain"] . "</a> <div title='$tip' class='tipsy morehover'> ?</div></td>"; echo "<tr><td><div title='$tip' data-toggle='tooltip' data-placement='bottom'><a class='$class url' target='new' href='". $method . $row["domain"] ."'>" . $row["domain"] . "</a></div></td>";
"</div></td>"; "</div></td>";
echo "<td>" . $row["uptimelast7"] . "%</td>"; echo "<td>" . $row["uptimelast7"] . "%</td>";
echo "<td class='tipsy' title='active six months: " . $row["active_users_halfyear"] . ", active one month: " . $row["active_users_monthly"] . "'>" . $row["active_users_halfyear"] . "</td>"; echo "<td data-toggle='tooltip' data-placement='bottom' title='active six months: " . $row["active_users_halfyear"] . ", active one month: " . $row["active_users_monthly"] . "'>" . $row["active_users_halfyear"] . "</td>";
if ($country_code == $row["country"]) { if ($country_code == $row["country"]) {
echo "<td class='tipsy green' title='".$row["whois"]." '><b>" . $row["country"] . "</b></td>\n"; echo "<td class='text-success' data-toggle='tooltip' data-placement='bottom' title='".$row["whois"]." '><b>" . $row["country"] . "</b></td>\n";
} else { } else {
echo "<td class='tipsy' title='".$row["whois"]." '>" . $row["country"] . "</td>\n"; echo "<td data-toggle='tooltip' data-placement='bottom' title='".$row["whois"]." '>" . $row["country"] . "</td>\n";
} }
echo "<td class='' title=''>"; echo "<td class='' title=''>";
if ($row["service_facebook"] == "t") {echo "<div id='facebook' class='smlogo'></div>";} if ($row["service_facebook"] == "t") {echo "<div id='facebook' class='smlogo'></div>";}
...@@ -72,21 +71,6 @@ $tip.="On a scale of 100 this pod is a {$row["score"]} right now"; ...@@ -72,21 +71,6 @@ $tip.="On a scale of 100 this pod is a {$row["score"]} right now";
if ($row["service_wordpress"] == "t") {echo "<div id='wordpress' class='smlogo'></div>";} if ($row["service_wordpress"] == "t") {echo "<div id='wordpress' class='smlogo'></div>";}
if ($row["xmpp"] == "t") {echo "<div id='xmpp'><img src='/images/icon-xmpp.png' width='16px' height='16px' title='XMPP chat server' alt='XMPP chat server'></div>";} if ($row["xmpp"] == "t") {echo "<div id='xmpp'><img src='/images/icon-xmpp.png' width='16px' height='16px' title='XMPP chat server' alt='XMPP chat server'></div>";}
echo "</td></tr>\n"; echo "</td></tr>\n";
if ($tt == 4) {
echo <<<EOF
<td colspan='12'>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- podup2015 -->
<ins class="adsbygoogle"
style="display:inline-block;width:728px;height:90px"
data-ad-client="ca-pub-3662181805557062"
data-ad-slot="2218925437"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</td>
EOF;
}
} }
pg_free_result($result); pg_free_result($result);
pg_close($dbh); pg_close($dbh);
......
...@@ -19,37 +19,28 @@ $numrows = pg_num_rows($result); ...@@ -19,37 +19,28 @@ $numrows = pg_num_rows($result);
echo "<meta property='og:title' content='"; echo "<meta property='og:title' content='";
echo $numrows; echo $numrows;
echo " federated Pods listed, Come see the privacy aware social networks.' />"; echo " federated Pods listed, Come see the privacy aware social networks.' />";
echo $numrows;
?> ?>
<style>
.content {
width: 99%;
}
</style>
pods that are open for signup now.
Click column names to sort and find a pod.
Show as: <a href="?mapview=true">Map</a> | <a href="/">Simple Table</a> | <a href="?advancedview=true">Advanced Table</a>
<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. */ --> <!-- /* 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 zebra-striped" width="98%"> <table id="myTable" class="table table-striped table-sm tablesorter table-hover tfont">
<thead> <thead class="thead-inverse">
<tr> <tr>
<th width="220px">Federated Pod<a class="tipsy" title="A pod is a site for you to set up your account.">?</a></th> <th><a data-toggle='tooltip' data-placement='bottom' title="A pod is a site for you to set up your account.">Pod</a></th>
<th>Version<a class="tipsy" title="Version of software this pod runs">?</a></th> <th><a data-toggle='tooltip' data-placement='bottom' title="Version of software this pod runs">Version</a></th>
<th>Uptime<a class="tipsy" title="Percent of the time the pod is online for <?php echo date("F") ?>.">?</a></th> <th><a data-toggle='tooltip' data-placement='bottom' title="Percent of the time the pod is online for <?php echo date("F") ?>.">Uptime</a></th>
<th>IPv6</th> <th>IPv6</th>
<th>Response Time</th> <th>Response Time</th>
<th>Signups</th> <th>Signups</th>
<th>Total Users<a class="tipsy" title="Number of total users on this pod.">?</a></th> <th><a data-toggle='tooltip' data-placement='bottom' title="Number of total users on this pod.">Users</a></th>
<th>Active Last 6<a class="tipsy" title="Number of users active last 6 months on this pod.">?</a></th> <th><a data-toggle='tooltip' data-placement='bottom' title="Number of users active last 6 months on this pod.">Active Users 6</a></th>
<th>Active Last 1<a class="tipsy" title="Number of users active last 1 month on this pod.">?</a></th> <th><a data-toggle='tooltip' data-placement='bottom' title="Number of users active last 1 month on this pod.">Active Users 1</a></th>
<th>Posts<a class="tipsy" title="Number of total posts on this pod.">?</a></th> <th><a data-toggle='tooltip' data-placement='bottom' title="Number of total posts on this pod.">Posts</a></th>
<th>Comments<a class="tipsy" title="Number of total comments on this pod.">?</a></th> <th><a data-toggle='tooltip' data-placement='bottom' title="Number of total comments on this pod.">Comments</a></th>
<th>Months<a class="tipsy" title="How many months has this pod been online? Click number for more history.">?</a></th> <th><a data-toggle='tooltip' data-placement='bottom' title="How many months has this pod been online? Click number for more history.">Months</a></th>
<th>Rating<a class="tipsy" title="User and Admin rating for this pod.">?</a></th> <th><a data-toggle='tooltip' data-placement='bottom' title="User rating for this pod.">Rating</a></th>
<th>Score<a class="tipsy" title="System Score on a 100 point scale">?</a></th> <th><a data-toggle='tooltip' data-placement='bottom' title="System Score on a 100 point scale">Score</a></th>
<th>Country<a class="tipsy" title="Pod location, based on IP Geolocation">?</a></th> <th><a data-toggle='tooltip' data-placement='bottom' title="Pod location, based on IP Geolocation">Country</a></th>
<th>Services<a class="tipsy" title="External Social Networks this pod can post to">?</a></th> <th><a data-toggle='tooltip' data-placement='bottom' title="External Social Networks this pod can post to">Services</a></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
...@@ -70,7 +61,7 @@ $pod_name = htmlentities($row["name"], ENT_QUOTES); ...@@ -70,7 +61,7 @@ $pod_name = htmlentities($row["name"], ENT_QUOTES);
$tip.="\n This {$row["softwarename"]} pod {$pod_name} has been watched for {$row["monthsmonitored"]} months with an uptime of {$row["uptimelast7"]}% this month and a response time average today of {$row["responsetimelast7"]}ms was last checked on {$row["dateupdated"]}. "; $tip.="\n This {$row["softwarename"]} pod {$pod_name} has been watched for {$row["monthsmonitored"]} months with an uptime of {$row["uptimelast7"]}% this month and a response time average today of {$row["responsetimelast7"]}ms was last checked on {$row["dateupdated"]}. ";
$tip.="On a scale of 100 this pod is a {$row["score"]} right now"; $tip.="On a scale of 100 this pod is a {$row["score"]} right now";
echo "<tr><td><a class='$class' target='new' href='". $method . $row["domain"] ."'>" . $row["domain"] . " <div title='$tip' class='tipsy' style='display: inline-block'>?</div></a></td>"; echo "<tr><td><a title='$tip' data-toggle='tooltip' data-placement='bottom' class='$class' target='new' href='". $method . $row["domain"] ."'>" . $row["domain"] . "</a></td>";
"</div></td>"; "</div></td>";
if (stristr($row["shortversion"],'head')) if (stristr($row["shortversion"],'head'))
...@@ -81,7 +72,7 @@ unknown code";} ...@@ -81,7 +72,7 @@ unknown code";}
else else
{$version=$row["shortversion"];$pre="This pod runs production code";} {$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";} 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 class='$classver'><div title='{$pre} codename: {$row["longversion"]} master version is: {$row["masterversion"]}' data-toggle='tooltip' data-placement='bottom'>{$version}</div></td>";
echo "<td>" . $row["uptimelast7"] . "%</td>"; echo "<td>" . $row["uptimelast7"] . "%</td>";
echo "<td>" . $row["ipv6"] . "</td>"; echo "<td>" . $row["ipv6"] . "</td>";
echo "<td>" . $row["responsetimelast7"] . "</td>"; echo "<td>" . $row["responsetimelast7"] . "</td>";
...@@ -93,20 +84,11 @@ if ($row["signup"] == 1) {$signup="Open";} else {$signup="Closed";} ...@@ -93,20 +84,11 @@ if ($row["signup"] == 1) {$signup="Open";} else {$signup="Closed";}
echo "<td>" . $row["local_posts"] . "</td>"; echo "<td>" . $row["local_posts"] . "</td>";
echo "<td>" . $row["comment_counts"] . "</td>"; echo "<td>" . $row["comment_counts"] . "</td>";
if (strpos($row["pingdomurl"], "pingdom.com")) {$moreurl = $row["pingdomurl"];} else {$moreurl = "/db/showuptimerobot.php?domain=".$row["domain"];} if (strpos($row["pingdomurl"], "pingdom.com")) {$moreurl = $row["pingdomurl"];} else {$moreurl = "/db/showuptimerobot.php?domain=".$row["domain"];}
echo "<td><div title='Last Check ".$row["dateupdated"]."' class='tipsy'><a rel='facebox' href='".$moreurl."'>" . $row["monthsmonitored"] . "</a></div></td>"; echo "<td><div title='Last Check ".$row["dateupdated"]."' data-toggle='tooltip' data-placement='bottom'><a rel='facebox' 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'>"; echo "<td><a rel=\"facebox\" href=\"rate.php?domain=".$row["domain"]."\">".$row["userrating"]."/10";
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"] <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 "</a></td>";
echo "<td>" . $row["score"] . "/100</td>\n"; echo "<td>" . $row["score"] . "/100</td>\n";
echo "<td>" . $row["country"] . "</td>\n"; echo "<td>" . $row["country"] . "</td>\n";
echo "<td class='' title=''>"; echo "<td class='' title=''>";
...@@ -116,26 +98,9 @@ echo "✪"; ...@@ -116,26 +98,9 @@ echo "✪";
if ($row["service_wordpress"] == "t") {echo "<div id='wordpress' class='smlogo'></div>";} if ($row["service_wordpress"] == "t") {echo "<div id='wordpress' class='smlogo'></div>";}
if ($row["xmpp"] == "t") {echo "<div id='xmpp'><img src='/images/icon-xmpp.png' width='16px' height='16px' title='XMPP chat server' alt='XMPP chat server'></div>";} if ($row["xmpp"] == "t") {echo "<div id='xmpp'><img src='/images/icon-xmpp.png' width='16px' height='16px' title='XMPP chat server' alt='XMPP chat server'></div>";}
echo "</td></tr>\n"; echo "</td></tr>\n";
if ($tt == 5) {
echo <<<EOF
<td colspan='12'>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- podup2015 -->
<ins class="adsbygoogle"
style="display:inline-block;width:728px;height:90px"
data-ad-client="ca-pub-3662181805557062"
data-ad-slot="2218925437"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</td>
EOF;
}
} }
pg_free_result($result); pg_free_result($result);
pg_close($dbh); pg_close($dbh);
$country_code = $_SERVER["HTTP_CF_IPCOUNTRY"];
//echo $country_code;
?> ?>
</tbody> </tbody>
</table> </table>
Show as: <a href="?mapview=true">Map</a> <a href="/">Simple Table</a> <a href="?advancedview=true">Advanced Table</a>
<?php <?php
//focus map to the users side of the globe //focus map to the users side of the globe
$country_code = $_SERVER["HTTP_CF_IPCOUNTRY"]; $country_code = $_SERVER["HTTP_CF_IPCOUNTRY"];
......
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