]>
jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blob - channels/index.php
2 require_once "../common.php";
3 require_once UPATH
. "/header.php";
9 /* Nothing being posted yet */
13 $channels = $rpc->channel()->getAll();
16 <h4
>Channels Overview
</h4
><br
>
17 <table
class="container-xxl table table-sm table-responsive caption-top table-striped">
18 <thead
class="table-primary">
27 $columns = array_column($channels, 'num_users');
28 array_multisort($columns, SORT_DESC
, $channels);
30 foreach($channels as $channel)
33 echo "<td><a href=\"details.php?chan=".urlencode(htmlspecialchars($channel->name
))."\">".htmlspecialchars($channel->name
)."</a></td>";
34 echo "<td>".$channel->num_users
."</td>";
35 $modes = (isset($channel->modes
)) ? "+" . $channel->modes
: "<none>";
36 echo "<td>".htmlspecialchars($modes)."</td>";
37 $topic = (isset($channel->topic
)) ? htmlspecialchars($channel->topic
) : "";
38 echo "<td>".$topic."</td>";
39 echo "<td>".$channel->creation_time
."</td>";
43 require_once("../footer.php");