";
# print contents of news file
while ( !feof ( $newsF ) ) {
print fgets( $newsF );
}
flock($newsF, LOCK_UN);
fclose ( $newsF );
}
# the other possibility is a comment file... we will count these just to be cool
} elseif ( ereg ( '^comment[0-9]+', $file ) ){
$comments[] = $travdir . $file;
}
}
closedir($df);
print " Comments: " . count($comments) . "
|
\n";
} else {
print "Error opening news directory... but it was just here a second ago... I checked.";
}
}
closedir($dh);
# short little form to allow user to show all news
print '