# Update 26/03/2002
# Include config
include("config.inc.php");
include ("boardconfig.inc.php");
include ("bannertopic.php");
$check_file="title/$topic.txt";
if (!file_exists($check_file)) { // Not Found File
print "ไม่พบ Topic : $topic กรุณาตรวจสอบการเรียกอีกครั้งครับ
\n";
}
else { // Found File
$FILE=fopen("topic/$topic.txt","r");
while (!feof($FILE)) {
$buffer=fgets($FILE,4096);
echo $buffer;
}
fclose($FILE);
# ADD COUNTER Read
$read_file=fopen("counter/read/$topic.txt","r");
$read_new=fgets($read_file,255);
$read_new++;
fclose($read_file);
$read_count=fopen("counter/read/$topic.txt","w");
fputs($read_count,$read_new);
fclose($read_count);
} // End Check File
powered();
?>