X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/809f7483740d9eae0abd77aa670fe26b5ce70c41..c06c1713af2db485d55a91073bbc5b63b6aa8c0b:/channels/index.php diff --git a/channels/index.php b/channels/index.php index 536c779..111bf22 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("../footer.php"); + require_once("../inc/footer.php"); ?>
---|