X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/a44ced160e118a5bb5cd253d5e765c0684c61068..408491c6430721b73c29af47c9eb044be254342b:/channels/index.php?ds=inline diff --git a/channels/index.php b/channels/index.php index 54d9b90..8b52d77 100644 --- a/channels/index.php +++ b/channels/index.php @@ -14,30 +14,30 @@ $channels = $rpc->channel()->getAll(); ?>
Name | -Created | -User count | -Topic | -Topic Set | +Users | Modes | +Topic | +Created | "; - echo "".$channel->name." | "; - echo "".$channel->creation_time." | "; + echo "".htmlspecialchars($channel->name)." | "; echo "".$channel->num_users." | "; - $topic = (isset($channel->topic)) ? $channel->topic : ""; - echo "".$topic." | "; - $setby = (isset($channel->topic)) ? "By ".$channel->topic_set_by .", at ".$channel->topic_set_at : ""; - echo "".$setby." | "; $modes = (isset($channel->modes)) ? "+" . $channel->modes : "".$modes." | "; + echo "".htmlspecialchars($modes)." | "; + $topic = (isset($channel->topic)) ? htmlspecialchars($channel->topic) : ""; + echo "".$topic." | "; + echo "".$channel->creation_time." | "; + echo ""; } + + require_once("../footer.php"); ?>
---|