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(); ?>
Name | Users | -Modes | -Topic | -Created | +Modes | +Topic | +Created | "; - echo "".$channel->name." | "; - echo "".$channel->num_users." | "; - $modes = (isset($channel->modes)) ? "+" . $channel->modes : "".$modes." | "; - $topic = (isset($channel->topic)) ? $channel->topic : ""; - echo "".$topic." | "; - echo "".$channel->creation_time." | "; + echo "name))."\">".htmlspecialchars($channel->name)." | "; + $s = ($channel->num_users) ? "success" : "danger"; + echo "".$channel->num_users." | "; + $modes = (isset($channel->modes)) ? "+" . explode(" ",$channel->modes)[0] : "". + "modes)."\">". + htmlspecialchars($modes)." | "; + $topic = (isset($channel->topic)) ? htmlspecialchars($channel->topic) : ""; + echo " "; + $date = explode("T", $channel->creation_time)[0]; + echo "". + "creation_time."\">". + "$date | "; + echo ""; } + + require_once("../inc/footer.php"); ?>
---|