<subtitle>IP Locations of Diaspora pods on podupti.me</subtitle>
<link href="http://podupti.me/"/>
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"
xmlns:georss="http://www.georss.org/georss">
<title>Diaspora Pods</title>
<subtitle>IP Locations of Diaspora pods on podupti.me</subtitle>
<link href="http://podupti.me/"/>
EOF;
$sql="SELECT * FROM pods WHERE hidden <> 'yes'";
$result=pg_query($dbh,$sql);
if(!$result){
die("Error in SQL query: ".pg_last_error());
die('Error in SQL query: '.pg_last_error());
}
$numrows=pg_num_rows($result);
while($row=pg_fetch_array($result)){
$pod_name=htmlentities($row["name"],ENT_QUOTES);
$tip="";
$tip.="\n This pod {$pod_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.="On a score of 100 this pod is a {$row["score"]} right now";
'This pod %1$s has been watched for %2$s months and its average ping time is %3$s with uptime of %4$s%% this month and was last checked on %5$s. On a score of 100 this pod is a %6$s right now',
$sql="SELECT id,domain,status,secure,score,userrating,adminrating,city,state,country,lat,long,ip,ipv6,pingdomurl,monthsmonitored,uptimelast7,responsetimelast7,local_posts,comment_counts,dateCreated,dateUpdated,dateLaststats,hidden FROM pods";
elseif($_GET['format']=='json'){
$sql='SELECT id,domain,status,secure,score,userrating,adminrating,city,state,country,lat,long,ip,ipv6,pingdomurl,monthsmonitored,uptimelast7,responsetimelast7,local_posts,comment_counts,dateCreated,dateUpdated,dateLaststats,hidden FROM pods';
$sql="SELECT * FROM pods WHERE hidden <> 'no' AND score < 50 ORDER BY weightedscore";
$result=pg_query($dbh,$sql);
if(!$result){
die("Error in SQL query: ".pg_last_error());
die('Error in SQL query: '.pg_last_error());
}
$numrows=pg_num_rows($result);
echo"<meta property='og:title' content='";
echo$numrows;
echo" #Diaspora Pods listed, Come see the privacy aware social network.' />";
echo$numrows;
$numrows=pg_num_rows($result);
?>
pods that are open for signup now.
<metaproperty="og:title"content="<?phpecho$numrows;?> #Diaspora Pods listed, Come see the privacy aware social network."/><?phpecho$numrows;?> pods that are open for signup now.
<metacharset="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. */ -->
$tip.="\n This pod {$pod_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.="On a score of -20 to +20 this pod is a {$row["score"]} right now";
$pod_name=htmlentities($row['name'],ENT_QUOTES);
$tip.=sprintf(
"\n".'This pod %1$s has been watched for %2$s months and its average ping time is %3$s with uptime of %4$s%% this month and was last checked on %5$s. On a score of -20 to +20 this pod is a %6$s right now',
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'].'" class="tipsy">'.$version.'</div></td>';
echo"Data successfully inserted! Your pod will be reviewed and live on the list in a few hours!";
echo'Data successfully inserted! Your pod will be reviewed and live on the list in a few hours!';
pg_free_result($result);
pg_close($dbh);
}else{
echo"Could not validate your pod on http or https, check your setup!<br>Take a look at <a href='https://".$_POST['domain']."/nodeinfo/1.0'>your /nodeinfo</a>";$log->lwrite('Could not validate your pod on http or https, check your setup! '.$_POST['domain']);
$log->lwrite('Could not validate your pod on http or https, check your setup! '.$_POST['domain']);
echo'Could not validate your pod on http or https, check your setup!<br>Take a look at <a href="https://'.$_POST['domain'].'/nodeinfo/1.0">your /nodeinfo</a>';
$sql="SELECT id,domain,status,secure,score,userrating,adminrating,city,state,country,lat,long,ip,ipv6,pingdomurl,monthsmonitored,uptimelast7,responsetimelast7,local_posts,comment_counts,dateCreated,dateUpdated,dateLaststats,hidden FROM pods WHERE domain = $1";
echo"Weight <input type=text size=2 name=weight value=".$row["weight"]."> This lets you weight your pod lower on the list if you have too much trafic coming in, 10 is the norm use lower to move down the list.<br>";
echo"WARNING: This can not be undone, you will need to add your pod again if you want back on list: <input type=submit name=submit value=delete><br><br><br>";
echo'Authorized to edit <b>'.$domain.'</b> until '.$row['tokenexpire'].'<br>';
echo'Weight <input type="text" size="2" name="weight" value="'.$row['weight'].'"> This lets you weight your pod lower on the list if you have too much trafic coming in, 10 is the norm use lower to move down the list.<br>';
echo'WARNING: This can not be undone, you will need to add your pod again if you want back on list: <input type="submit" name="submit" value="delete">';