]>
jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blob - channels.php
2 require_once "common.php";
4 require_once "header.php";
10 /* Nothing being posted yet */
14 $channels = $rpc->channel()->getAll();
17 <h4
>Channels Overview
</h4
><br
>
18 <table
class="table table-responsive caption-top table-striped">
19 <thead
class="table-primary">
29 foreach($channels as $channel)
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>";