List of Available Newsgroups:'; // Use cache if new enough if (filemtime($grouplist_cache_filename) > (time() - $grouplist_cache_time)) { // Allow refresh from cron.php if (isset($argv[1]) && $argv[1] == '.RELOAD') { // Do not use cache, instead rebuild grouplist } else { echo file_get_contents($grouplist_cache_filename); exit(); } } ob_start(); echo '
Section | '; echo 'Newsgroup | '; echo 'Description | '; echo 'Messages | '; echo '
---|---|---|---|
'; echo ' ' . $section[0]; echo ' | ';
echo '' . urldecode($group[1]) . " \r\n"; echo ' | ';
echo '' . $title . ' | '; echo ''; # Check if group exists. Open it if it does fputs($ns, "group " . urldecode($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 '