index.php 5.54 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" />
David Morley's avatar
David Morley committed
6
<link rel="stylesheet" href="bower_components/facebox/src/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 19 20 21
$advancedview = isset($_GET['advancedview']);
$mapview = isset($_GET['mapview']);
$cleanup = isset($_GET['cleanup']);
$podmin = isset($_GET['podmin']);
$podminedit = isset($_GET['podminedit']);
$simpleview = !($advancedview || $mapview || $cleanup || $podmin || $podminedit);
David Morley's avatar
David Morley committed
22
?>
David Morley's avatar
David Morley committed
23 24 25
<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
26
</head>
David Morley's avatar
index  
David Morley committed
27
<body>
David Morley's avatar
David Morley committed
28 29
    <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>
David Morley's avatar
David Morley committed
30
      <a class="navbar-brand" href="#">Poduptime</a>
David Morley's avatar
David Morley committed
31 32
      <div id="navbar" class="text-muted collapse">
        <nav class="nav navbar-nav float-xs-left">
33 34 35
          <a class="nav-item nav-link<?php $simpleview && print(' active'); ?>" href="/">Simple View</a>
          <a class="nav-item nav-link<?php $advancedview && print(' active'); ?>" href="/?advancedview">Advanced View</a>
          <a class="nav-item nav-link<?php $mapview && print(' active'); ?>" href="/?mapview">Map View</a>
David Morley's avatar
David Morley committed
36 37 38 39
        </nav>
    </div>
    </nav>
    <div class="container-fluid">
40
      <div class="row">
David Morley's avatar
David Morley committed
41 42
        <div class="col-sm-3 col-md-2 sidebar">
          <ul class="nav nav-sidebar">
43 44 45
            <li<?php $simpleview && print(' class="active"'); ?>><a href="/">Simple View<?php $simpleview && print(' <span class="sr-only bg-dark">(current)</span>'); ?></a></li>
            <li<?php $advancedview && print(' class="active"'); ?>><a href="/?advancedview">Advanced View<?php $advancedview && print(' <span class="sr-only bg-dark">(current)</span>'); ?></a></li>
            <li<?php $mapview && print(' class="active"'); ?>><a href="/?mapview">Map View<?php $mapview && print(' <span class="sr-only bg-dark">(current)</span>'); ?></a></li>
David Morley's avatar
David Morley committed
46 47
          </ul>
          <ul class="nav nav-sidebar">
48 49
            <li<?php $podmin && print(' class="active"'); ?>><a href="/?podmin">Add a pod<?php $podmin && print(' <span class="sr-only bg-dark">(current)</span>'); ?></a></li>
            <li<?php $podminedit && print(' class="active"'); ?>><a href="/?podminedit">Edit a pod<?php $podminedit && print(' <span class="sr-only bg-dark">(current)</span>'); ?></a></li>
David Morley's avatar
David Morley committed
50 51 52 53 54 55 56
            <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
57

David Morley's avatar
David Morley committed
58 59 60 61 62 63 64 65 66 67 68
          </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>
69
          Data last refreshed: <br><?php echo date('F d Y H:i:s.', filemtime($lastfile)) ?> EST
David Morley's avatar
David Morley committed
70 71
        </div>
        <div class="main col-md-10 offset-md-2">
noplanman's avatar
noplanman committed
72
        <a href="random.php" class="btn btn-sm btn-success">Confused? Auto pick a pod for you.</a>
David Morley's avatar
David Morley committed
73 74 75 76 77
          <div class="row placeholders">
          </div>
          <div class="table-responsive">
        <?php
        if ($advancedview) {
78
        include('showfull.php');
David Morley's avatar
David Morley committed
79
        } elseif ($mapview) {
80
        include('showmap.php');
David Morley's avatar
David Morley committed
81
        } elseif ($podmin) {
82
        include('podmin.php');
David Morley's avatar
David Morley committed
83
        } elseif ($podminedit) {
84
        include('podminedit.php');
dmorley's avatar
dmorley committed
85
        } elseif ($cleanup) {
86
        include('cleanup.php');
dmorley's avatar
dmorley committed
87
        } else {
88
        include('show.php');
David Morley's avatar
David Morley committed
89 90 91 92
        }
        ?>
          </div>
        </div>
93 94
      </div>
    </div>
David Morley's avatar
David Morley committed
95 96 97 98
<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>
David Morley's avatar
David Morley committed
99
<script src="bower_components/facebox/src/facebox.js"></script>
David Morley's avatar
David Morley committed
100 101
<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
index  
David Morley committed
102 103
</body>
</html>