]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blame_incremental - channels/index.php
Add the footer back
[irc/unrealircd/unrealircd-webpanel.git] / channels / index.php
... / ...
CommitLineData
1<?php
2require_once "../common.php";
3require_once UPATH . "/header.php";
4
5if (!empty($_POST))
6{
7 do_log($_POST);
8
9 /* Nothing being posted yet */
10
11}
12
13$channels = $rpc->channel()->getAll();
14
15?>
16<h4>Channels Overview</h4><br>
17<table class="container-xxl table table-responsive caption-top table-striped">
18 <thead class="table-primary">
19 <th>Name</th>
20 <th>Users</th>
21 <th>Modes</th>
22 <th>Topic</th>
23 <th>Created</th>
24</thead>
25<tbody>
26 <?php
27 foreach($channels as $channel)
28 {
29 echo "<tr>";
30 echo "<td>".$channel->name."</td>";
31 echo "<td>".$channel->num_users."</td>";
32 $modes = (isset($channel->modes)) ? "+" . $channel->modes : "<none>";
33 echo "<td>".$modes."</td>";
34 $topic = (isset($channel->topic)) ? $channel->topic : "";
35 echo "<td>".$topic."</td>";
36 echo "<td>".$channel->creation_time."</td>";
37 }
38
39 require_once("../footer.php");
40 ?>
41</tbody>
42</table>