-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.php
33 lines (30 loc) · 963 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
require_once('app.php');
require('header.php');
require('lib/rabbit.php');
?>
<header class="jumbotron masthead">
<div class="inner">
<?php if(logged_in()) {
$rabbits = rabbits($db);
?>
<h1>My Rabbits</h1>
<table class="ui-body ui-body-b ui-corner-all">
<tr><th class="ui-label">Rabbit</th><th class="ui-label">Status</th></tr>
<?php foreach($rabbits as $rabbit) { ?>
<tr>
<td class="ui-label"><a href="apps.php?rabbit=<?php echo rabbit_mac($rabbit); ?>"><?php echo rabbit_name($rabbit); ?></a></td>
<td class="ui-label"><?php echo rabbit_status($rabbit); ?></td>
</tr>
<?php } ?>
</table>
<?php } else { ?>
<h1>Nabaztag Server</h1>
<p>Welcome to the simple Nabaztag Server</p>
<p class="download-info">
<a href="https://github.com/dparnell/nabaztag-php/" class="btn btn-primary btn-large">View project on GitHub</a>
</p>
<?php } ?>
</div>
</header>
<?php require('footer.php'); ?>