]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blame - channels/index.php
Server ban list: reorder fields, so reason is more to the beginning
[irc/unrealircd/unrealircd-webpanel.git] / channels / index.php
CommitLineData
90dc8f2b 1<?php
a44ced16
BM
2require_once "../common.php";
3require_once UPATH . "/header.php";
90dc8f2b
VP
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?>
0d846731 16<h4>Channels Overview</h4><br>
d1d9caa9
VP
17<table class="table table-responsive caption-top table-striped">
18 <thead class="table-primary">
90dc8f2b
VP
19 <th>Name</th>
20 <th>Created</th>
21 <th>User count</th>
22 <th>Topic</th>
23 <th>Topic Set</th>
24 <th>Modes</th>
def32bb1
BM
25</thead>
26<tbody>
90dc8f2b
VP
27 <?php
28 foreach($channels as $channel)
29 {
30 echo "<tr>";
31 echo "<td>".$channel->name."</td>";
32 echo "<td>".$channel->creation_time."</td>";
33 echo "<td>".$channel->num_users."</td>";
34 $topic = (isset($channel->topic)) ? $channel->topic : "";
35 echo "<td>".$topic."</td>";
36 $setby = (isset($channel->topic)) ? "By ".$channel->topic_set_by .", at ".$channel->topic_set_at : "";
37 echo "<td>".$setby."</td>";
38 $modes = (isset($channel->modes)) ? "+" . $channel->modes : "<none>";
39 echo "<td>".$modes."</td>";
40 }
def32bb1
BM
41 ?>
42</tbody>
43</table>