]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blobdiff - channels/index.php
Update header.php
[irc/unrealircd/unrealircd-webpanel.git] / channels / index.php
index bf02085c281afbcd51a9e1b0d8287653df003fef..8b52d77cfc42fd4d662befa8c2220aa1e4a3eb32 100644 (file)
@@ -14,7 +14,7 @@ $channels = $rpc->channel()->getAll();
 
 ?>
 <h4>Channels Overview</h4><br>
-<table class="container-xxl table table-responsive caption-top table-striped">
+<table class="container-xxl table table-sm table-responsive caption-top table-striped">
        <thead class="table-primary">
        <th>Name</th>
        <th>Users</th>
@@ -27,14 +27,17 @@ $channels = $rpc->channel()->getAll();
                foreach($channels as $channel)
                {
                        echo "<tr>";
-                       echo "<td>".$channel->name."</td>";
+                       echo "<td>".htmlspecialchars($channel->name)."</td>";
                        echo "<td>".$channel->num_users."</td>";
                        $modes = (isset($channel->modes)) ? "+" . $channel->modes : "<none>";
-                       echo "<td>".$modes."</td>";
-                       $topic = (isset($channel->topic)) ? $channel->topic : "";
+                       echo "<td>".htmlspecialchars($modes)."</td>";
+                       $topic = (isset($channel->topic)) ? htmlspecialchars($channel->topic) : "";
                        echo "<td>".$topic."</td>";
                        echo "<td>".$channel->creation_time."</td>";
+                       echo "</tr>";
                }
+
+       require_once("../footer.php");
        ?>
 </tbody>
 </table>