index.php 7.23 KB
Newer Older
1
<!doctype html><html><head><meta charset="utf-8"><title>Federated Pod Uptime Status - Find your new social home on a hosted pod</title>
2 3
<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!" />
4 5 6 7
<script type="text/javascript" src="js/jquery-1.6.4.min.js"></script> 
<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>
David Morley's avatar
David Morley committed
8
<script type="text/javascript" src="js/podup.js"></script>
9 10 11
<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"/>
root's avatar
root committed
12
<link rel="stylesheet" href="css/bootstrap.min.css">
David Morley's avatar
David Morley committed
13
<link rel="stylesheet" href="css/newstyle.css" />
dmorley's avatar
dmorley committed
14
<link rel="stylesheet" href="css/facebox.css" />
dmorley's avatar
dmorley committed
15 16 17 18
<meta property="og:url" content="https://podupti.me" />
<meta property="og:title" content="Diaspora Pod Finder" />
<meta property="og:type"          content="website" />
<meta property="og:description"   content="Diaspora Pod Live Status. Find a Diaspora pod to sign up for, rate pods, find one close to you!" />
19 20
<?php 
$hidden = isset($_GET['hidden'])?$_GET['hidden']:null;
MatrixCrawler's avatar
MatrixCrawler committed
21
$lastfile = 'db/last.data';
dmorley's avatar
dmorley committed
22 23 24
$advancedview = isset($_GET['advancedview'])?$_GET['advancedview']:null;
$mapview = isset($_GET['mapview'])?$_GET['mapview']:null;
$cleanup = isset($_GET['cleanup'])?$_GET['cleanup']:null;
David Morley's avatar
David Morley committed
25
?>
dmorley's avatar
dmorley committed
26
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=yes" />
dmorley's avatar
dmorley committed
27

dmorley's avatar
dmorley committed
28
</head>
David Morley's avatar
index  
David Morley committed
29
<body>
dmorley's avatar
dmorley committed
30 31 32 33 34 35 36 37
<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.7&appId=559196844215273";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
38 39 40
  <header>
    <div class="page-header">
      <div class="row">
dmorley's avatar
dmorley committed
41
        <div class="span5">
42
          <h2 id="title">
43
          Federated Social Pods
44 45
          </h2>
        </div>
dmorley's avatar
changes  
dmorley committed
46
      <div class="span2" style="margin-top:8px;">
dmorley's avatar
dmorley committed
47
<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>
48
      </div>
dmorley's avatar
dmorley committed
49
      
50
      <div class="span2" style="margin-top:8px;">
dmorley's avatar
dmorley committed
51
<div class="g-plusone" data-size="small" data-href="https://podupti.me"></div>
dmorley's avatar
dmorley committed
52 53
	</div>
	<div class="span2" style="margin-top:8px;">
dmorley's avatar
dmorley committed
54
<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>
dmorley's avatar
dmorley committed
55
</div>
dmorley's avatar
dmorley committed
56

57 58 59 60
    </div>
  </div>
</div>
  </header>
dmorley's avatar
dmorley committed
61
  <div class="container-fluid">
62
    <div class="content">
dmorley's avatar
dmorley committed
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
<?php
if ($advancedview) {
echo <<<EOF
      <div id="adadv">
      <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- poduptimenew -->
<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;
} elseif ($cleanup) {echo "";
} else {
echo <<<EOF
      <div id="ad">
      <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- poduptimenew -->
<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;
}
?>
95
      <div id="results">
dmorley's avatar
dmorley committed
96 97
        <?php 
	if ($advancedview) {
dmorley's avatar
dmorley committed
98
	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>";
dmorley's avatar
dmorley committed
99 100 101
	include("showfull.php");
	} elseif ($mapview) {
	include("showmap.php");
dmorley's avatar
dmorley committed
102 103
        } elseif ($cleanup) {
        include("cleanup.php");
dmorley's avatar
dmorley committed
104
        } else {
105
	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>";
dmorley's avatar
dmorley committed
106 107 108
        include("show.php");
	} 
	?>
109 110
      </div>
      <div id="add">
dmorley's avatar
dmorley committed
111
        Pod Host? <u style="cursor: pointer; cursor: hand;">Click here</u> to add/edit your listing.<br>
112 113
	</div>
	<div id="info">
114
	Data last refreshed at: <?php echo date("F d Y H:i:s.", filemtime($lastfile)) ?> Pacific Time<br>
dmorley's avatar
cleanup  
dmorley committed
115 116
        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>
dmorley's avatar
dmorley committed
117
        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>
118
	<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>
119 120 121 122 123 124
	</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>
dmorley's avatar
dmorley committed
125
        <br><form action="https://podupti.me/db/add.php" method="post">
dmorley's avatar
dmorley committed
126
        Monitor API Key:<input type="text" name="url" class="xlarge span8" placeholder="m58978-80abdb799f6ccf15e3e4ttwe"> (don't copy the period on the end)<br>
127 128 129 130
        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>
dmorley's avatar
dmorley committed
131
	Need to edit something?<br>
132
	<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>
133 134 135 136 137 138 139
        <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>
dmorley's avatar
dmorley committed
140
<script src="https://apis.google.com/js/platform.js" async defer></script>
David Morley's avatar
index  
David Morley committed
141 142
</body>
</html>