index.php 4.87 KB
Newer Older
David Morley's avatar
David Morley committed
1 2
<!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, federated pods, podupti.me, open source social, open source social network" />
3
<meta name="description" content="Diaspora Pod Live Status. Find a Diaspora pod to sign up for, rate pods, find one close to you!" />
David Morley's avatar
David Morley committed
4
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.min.css">
David Morley's avatar
David Morley committed
5
<link rel="stylesheet" href="css/newstyle.css" />
dmorley's avatar
dmorley committed
6
<link rel="stylesheet" href="css/facebox.css" />
David Morley's avatar
David Morley committed
7 8
<link rel="stylesheet" href="css/dashboard.css" />
<link rel="stylesheet" href="bower_components/jquery-ui/themes/base/jquery-ui.min.css" />
dmorley's avatar
dmorley committed
9 10 11 12
<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!" />
13 14
<?php 
$hidden = isset($_GET['hidden'])?$_GET['hidden']:null;
MatrixCrawler's avatar
MatrixCrawler committed
15
$lastfile = 'db/last.data';
16 17 18
$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
19 20
$podmin = isset($_GET['podmin'])?$_GET['podmin']:null;
$podminedit = isset($_GET['podminedit'])?$_GET['podminedit']:null;
David Morley's avatar
David Morley committed
21
?>
David Morley's avatar
David Morley committed
22 23 24
<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">
dmorley's avatar
dmorley committed
25
</head>
David Morley's avatar
David Morley committed
26
<body>
David Morley's avatar
David Morley committed
27 28 29 30 31 32 33 34 35 36 37 38
    <nav class="navbar navbar-dark navbar-fixed-top bg-primary">
      <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>
      <a class="navbar-brand" href="#">Podupti.me</a>
      <div id="navbar" class="text-muted collapse">
        <nav class="nav navbar-nav float-xs-left">
          <a class="nav-item nav-link" href="/">Simple View</a>
          <a class="nav-item nav-link" href="/?advancedview=true">Advanced View</a>
          <a class="nav-item nav-link" href="/?mapview=true">Map View</a>
        </nav>
    </div>
    </nav>
    <div class="container-fluid">
39
      <div class="row">
David Morley's avatar
David Morley committed
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
        <div class="col-sm-3 col-md-2 sidebar">
          <ul class="nav nav-sidebar">
            <li class="active"><a href="/">Simple View <span class="sr-only bg-dark">(current)</span></a></li>
            <li><a href="/?advancedview=true">Advanced View</a></li>
            <li><a href="/?mapview=true">Map View</a></li>
          </ul>
          <ul class="nav nav-sidebar">
            <li><a href="/?podmin=true">Add a pod</a></li>
            <li><a href="/?podminedit=true">Edit a pod</a></li>
            <li><a href="https://diasporafoundation.org/">Host a pod</a></li>
          </ul>
          <ul class="nav nav-sidebar">
            <li><a href="https://github.com/diasporg/Poduptime">Github</a></li>
            <li><a href="https://dia.so/support">Contact</a></li>
            <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>
dmorley's avatar
dmorley committed
56

David Morley's avatar
David Morley committed
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
          </ul>
          <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
          <ins class="adsbygoogle"
          style="display:block"
          data-ad-client="ca-pub-3662181805557062"
          data-ad-slot="2195215834"
          data-ad-format="auto"></ins>
          <script>
          (adsbygoogle = window.adsbygoogle || []).push({});
          </script>
          <br>
          Data last refreshed: <br><?php echo date("F d Y H:i:s.", filemtime($lastfile)) ?> EST
        </div>
        <div class="main col-md-10 offset-md-2">
        <a href='random.php' class='btn btn-sm btn-success'>Confused? Auto pick a pod for you.</a>
          <div class="row placeholders">
          </div>
          <div class="table-responsive">
        <?php
        if ($advancedview) {
        include("showfull.php");
        } elseif ($mapview) {
        include("showmap.php");
        } elseif ($podmin) {
        include("podmin.php");
        } elseif ($podminedit) {
        include("podminedit.php");
84 85
        } elseif ($cleanup) {
        include("cleanup.php");
dmorley's avatar
dmorley committed
86 87
        } else {
        include("show.php");
David Morley's avatar
David Morley committed
88 89 90 91
        }
        ?>
          </div>
        </div>
92 93
      </div>
    </div>
David Morley's avatar
David Morley committed
94 95 96 97 98 99 100
<script src="bower_components/jquery/dist/jquery.min.js"></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>
David Morley's avatar
David Morley committed
101 102
</body>
</html>