Commit 26799ae4 authored by David Morley's avatar David Morley

change sql query to not include email

parent c1b1c78e
......@@ -41,7 +41,7 @@ echo "</feed>";
elseif ($_GET['format'] == "json") {
$i=0;
$sql = "SELECT * FROM pods";
$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());
......@@ -54,7 +54,6 @@ echo '"podcount": '.json_encode($numrows);
//
echo '"pods": [';
while ($row = pg_fetch_array($result)) {
echo '{';
echo '"url":"'.$method.$row["domain"].'",';
echo '"email":"private",';
......
......@@ -101,18 +101,18 @@ is mostly because of selfsigned or openca certs, if you need a free ssl cert get
<br>Need help? <a href="https://diasporg.zendesk.com">Support</a>
<br>
</div>
<!-- Piwik -->
<script type="text/javascript">
var clicky_site_ids = clicky_site_ids || [];
clicky_site_ids.push(66500192);
(function() {
var s = document.createElement('script');
s.type = 'text/javascript';
s.async = true;
s.src = '//static.getclicky.com/js';
( document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0] ).appendChild( s );
})();
</script>
<noscript><p><img alt="Clicky" width="1" height="1" src="//in.getclicky.com/66500192ns.gif" /></p></noscript>
var pkBaseURL = (("https:" == document.location.protocol) ? "https://s.podupti.me/" : "http://s.podupti.me/");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
</script><script type="text/javascript">
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 2);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
</script><noscript><p><img src="http://s.podupti.me/piwik.php?idsite=2" style="border:0" alt="" /></p></noscript>
<!-- End Piwik Tracking Code -->
<script type="text/javascript">
/* <![CDATA[ */
(function() {
......
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