]>
Commit | Line | Data |
---|---|---|
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 | ||
18 | <table class='users_overview'> | |
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> | |
25 | ||
26 | <?php | |
27 | foreach($channels as $channel) | |
28 | { | |
29 | echo "<tr>"; | |
30 | echo "<td>".$channel->name."</td>"; | |
31 | echo "<td>".$channel->creation_time."</td>"; | |
32 | echo "<td>".$channel->num_users."</td>"; | |
33 | $topic = (isset($channel->topic)) ? $channel->topic : ""; | |
34 | echo "<td>".$topic."</td>"; | |
35 | $setby = (isset($channel->topic)) ? "By ".$channel->topic_set_by .", at ".$channel->topic_set_at : ""; | |
36 | echo "<td>".$setby."</td>"; | |
37 | $modes = (isset($channel->modes)) ? "+" . $channel->modes : "<none>"; | |
38 | echo "<td>".$modes."</td>"; | |
39 | } | |
40 | ?></table> |