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