index.php 6.54 KB
Newer Older
dmorley's avatar
dmorley committed
1
<!doctype html><html><head><meta charset="utf-8"><title>Diaspora 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
<meta property="og:url" content="http://podupti.me" />
<meta property="og:site_name" content="Diaspora Pods" />
17 18
<?php 
$hidden = isset($_GET['hidden'])?$_GET['hidden']:null;
MatrixCrawler's avatar
MatrixCrawler committed
19
$lastfile = 'db/last.data';
20 21 22
$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
23
?>
dmorley's avatar
dmorley committed
24
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=yes" />
dmorley's avatar
dmorley committed
25 26 27 28 29 30
<script type="text/javascript">
/* <![CDATA[ */
    (function() {
        var s = document.createElement('script'), t = document.getElementsByTagName('script')[0];
        s.type = 'text/javascript';
        s.async = true;
31
        s.src = '//api.flattr.com/js/0.6/load.js?mode=auto';
dmorley's avatar
dmorley committed
32 33 34
        t.parentNode.insertBefore(s, t);
    })();
/* ]]> */</script>
35
<script type="text/javascript" src="//ws.sharethis.com/button/buttons.js"></script>
dmorley's avatar
dmorley committed
36
<script type="text/javascript">stLight.options({publisher: "3209f0be-147e-49fc-ac1b-2cf6740e9449", doNotHash: false, doNotCopy: false, hashAddressBar: false});</script>
dmorley's avatar
dmorley committed
37
</head>
David Morley's avatar
David Morley committed
38
<body>
39 40 41
  <header>
    <div class="page-header">
      <div class="row">
dmorley's avatar
dmorley committed
42
        <div class="span5">
43
          <h2 id="title">
dmorley's avatar
dmorley committed
44
          Diaspora Pods
45 46
          </h2>
        </div>
dmorley's avatar
dmorley committed
47
      <div class="span2" style="margin-top:8px;">
dmorley's avatar
dmorley committed
48
<span class='st_facebook_hcount' displayText='Facebook' st_summary='test'></span>
dmorley's avatar
dmorley committed
49
      </div>
dmorley's avatar
dmorley committed
50 51 52
<div class="span2" style="margin-top:8px;">

<span class='st_twitter_hcount' displayText='Tweet' text='test'></span>
53
      </div>
dmorley's avatar
dmorley committed
54 55 56
<div class="span2" style="margin-top:8px;">

<span class='st_plusone_hcount' displayText='Google +1'></span>
57 58
      </div>
      <div class="span2" style="margin-top:8px;">
dmorley's avatar
dmorley committed
59 60 61 62
<a class="FlattrButton" style="display:none;" rev="flattr;button:compact;" href="http://podupti.me"></a>
	</div>
	<div class="span2" style="margin-top:8px;">
</div>
dmorley's avatar
dmorley committed
63

64 65 66 67
    </div>
  </div>
</div>
  </header>
dmorley's avatar
dmorley committed
68
  <div class="container-fluid">
69
    <div class="content">
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 95 96 97 98 99 100 101
<?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;
}
?>
102
      <div id="results">
dmorley's avatar
dmorley committed
103 104
        <?php 
	if ($advancedview) {
dmorley's avatar
dmorley committed
105
	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
106 107 108
	include("showfull.php");
	} elseif ($mapview) {
	include("showmap.php");
109 110
        } elseif ($cleanup) {
        include("cleanup.php");
dmorley's avatar
dmorley committed
111
        } else {
dmorley's avatar
dmorley committed
112
	echo "<a href='random.php' class='btn danger large'>Confused and just want to sign up?? Click Here</a><br>";
dmorley's avatar
dmorley committed
113 114 115
        include("show.php");
	} 
	?>
116 117
      </div>
      <div id="add">
118
        Pod Host? <u style="cursor: pointer; cursor: hand;">Click here</u> to add/edit your listing.<br>
119 120
	</div>
	<div id="info">
121
	Data last refreshed at: <?php echo date("F d Y H:i:s.", filemtime($lastfile)) ?> Pacific Time<br>
122
        Poduptime is run by <a href="https://diasp.org/u/davidmorley" target=_new>David Morley</a> and 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
123
        Questions on how this works? <a href="https://github.com/diasporg/Poduptime/wiki">Wiki</a><br>
dmorley's avatar
dmorley committed
124
	<a href="https://diasporafoundation.org/">More about Diaspora</a>
125 126 127 128 129 130
	</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
131
        <br><form action="https://podupti.me/db/add.php" method="post">
dmorley's avatar
dmorley committed
132
        Monitor API Key:<input type="text" name="url" class="xlarge span8" placeholder="m58978-80abdb799f6ccf15e3e4ttwe"> (don't copy the period on the end)<br>
133 134 135 136
        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
137 138
	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"><input type=submit value="send"></form>
139 140 141 142 143 144 145
        <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>
David Morley's avatar
David Morley committed
146 147
</body>
</html>