X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/973aa0cb7ff6a520df29a9dff8ea7f7ae9bab0ba..c06c1713af2db485d55a91073bbc5b63b6aa8c0b:/channels/index.php
diff --git a/channels/index.php b/channels/index.php
index 975e19c..111bf22 100644
--- a/channels/index.php
+++ b/channels/index.php
@@ -1,7 +1,7 @@
channel()->getAll();
Name |
Users |
- Modes |
- Topic |
- Created |
+ Modes |
+ Topic |
+ Created |
channel()->getAll();
echo "name))."\">".htmlspecialchars($channel->name)." | ";
$s = ($channel->num_users) ? "success" : "danger";
echo "".$channel->num_users." | ";
- $modes = (isset($channel->modes)) ? "+" . $channel->modes : "";
- echo "".htmlspecialchars($modes)." | ";
+ $modes = (isset($channel->modes)) ? "+" . explode(" ",$channel->modes)[0] : "";
+ echo "".
+ "modes)."\">".
+ htmlspecialchars($modes)." | ";
$topic = (isset($channel->topic)) ? htmlspecialchars($channel->topic) : "";
- echo "".$topic." | ";
- echo "".$channel->creation_time." | ";
+ echo "".$topic." | ";
+ $date = explode("T", $channel->creation_time)[0];
+ echo "".
+ "creation_time."\">".
+ "$date | ";
echo "";
}
- require_once("../footer.php");
+ require_once("../inc/footer.php");
?>
+