"); $fp = popen( "/bin/grep \"$query\" $searchgroups", "r"); while ($line = fgets($fp, 150)) { $file = explode( ":", $line); $group = explode( "/", $file[0]); $newsgroup = ""; for ($i = $dirdepth; $i < (count($group)-1); $i++) { if ($i > $dirdepth) { $newsgroup = $newsgroup . ".";} $newsgroup = "$newsgroup$group[$i]"; } if ($newsgroup) { print( "$newsgroup"); print( " $grou p[$i]"); $la = split( ":", $line, 2); $line = htmlspecialchars($la[1]); print( " $line\n"); reset($file); reset($group); } } pclose($fp); } else if ($article) { $article = ereg_replace( "\.", "/", $article); $fp = popen( "/bin/cat $spooldir$article", "r"); while ($line = fgets($fp, 150)) { $line = htmlspecialchars($line); print( "$line\n"); } pclose($fp); } else { print ( "INNSearch
\n"); print ( "