X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/75c101fdf81cf76433e974b2dd9194aadbd75549..8234307335b735fb724ac5da469c276cb476002a:/channels/index.php diff --git a/channels/index.php b/channels/index.php index bf02085..70b922a 100644 --- a/channels/index.php +++ b/channels/index.php @@ -1,6 +1,7 @@ channel()->getAll(); ?>

Channels Overview


- +
- - - + + + "; - echo ""; - echo ""; - $modes = (isset($channel->modes)) ? "+" . $channel->modes : ""; - echo ""; - $topic = (isset($channel->topic)) ? $channel->topic : ""; - echo ""; - echo ""; + echo ""; + $s = ($channel->num_users) ? "success" : "danger"; + echo ""; + $modes = (isset($channel->modes)) ? "+" . explode(" ",$channel->modes)[0] : ""; + echo ""; + $topic = (isset($channel->topic)) ? htmlspecialchars($channel->topic) : ""; + echo ""; + $date = explode("T", $channel->creation_time)[0]; + echo ""; + echo ""; } + + require_once("../inc/footer.php"); ?>
Name UsersModesTopicCreatedModesTopicCreated
".$channel->name."".$channel->num_users."".$modes."".$topic."".$channel->creation_time."name))."\">".htmlspecialchars($channel->name)."".$channel->num_users."". + "modes)."\">". + htmlspecialchars($modes)."".$topic."". + "creation_time."\">". + "$date
+