diff --git a/Rocksolid_Light/common/grouplist.php b/Rocksolid_Light/common/grouplist.php index 3220aa9..e0cf812 100644 --- a/Rocksolid_Light/common/grouplist.php +++ b/Rocksolid_Light/common/grouplist.php @@ -1,5 +1,7 @@ '; echo '
Group | '; echo 'Description | '; -// echo 'Messages | '; +echo 'Messages | '; echo '
---|---|---|---|
';
@@ -57,12 +61,22 @@ foreach ($groups_array as $thisgroup) {
echo '' . urldecode($group[1]) . " \r\n"; echo ' | ';
echo '' . $title . ' | '; + echo ''; + # Check if group exists. Open it if it does + fputs($ns, "group " . $group[1] . "\r\n"); + $response = line_read($ns); + $messages = explode(' ', $response); + if (strcmp(substr($response, 0, 3), "211") == 0) { + echo "\n" . $messages[1]; + } + echo ' | '; echo '