#!/Perl/bin/perl require "cgi-lib.pl"; require "common.pl"; require "cookie.lib"; print &PrintHeader; $aon=1; &initial; $input="seeforum.htm"; $forum=$input{'forum'}; open(HTM,$input); while () { s/_FORUM_/$forum/; s/_NAME_/$name/; print $_; } close HTM; $path_forum=$pathf . $s . $forum; opendir (DIR,$path_forum); @allfiles=readdir DIR; closedir DIR; @files = reverse sort @allfiles; foreach $d (0 .. $#files) { $file=$files[$d]; &comm("FILE= $file"); next if (length($file)<5); $htmlfile=$sunix . "forums" . $sunix . $forum . $sunix . $file; ($type,$when,$who,$topic)=split(/-/,$file); $when1=substr($when,0,4) . "-"; $when1.=substr($when,4,2) . "-"; $when1.=substr($when,6,2) . " "; $when1.=substr($when,9,2) . ":"; $when1.=substr($when,11,2) . ":"; $when1.=substr($when,13,2) . " "; ($topic,$htm)=split(/\./,$topic); if ($type eq "R") { ($type2,$when2,$who,$entry)=split(/-/,$file); ($entry,$htm)=split(/\./,$entry); $before=$REF{"$entry"}; $refer="$before $when2 $who $htmlfile __"; &comm("ENTRY=[$entry] REFER=[$refer]"); $REF{"$entry"}=$refer; } if ($type eq "P") { print "\n"; print ""; print "\n"; $refer=$REF{"$when"}; &comm("ENTRY2=[$when] REFER=[$refer]"); @refs=split(/__/,$refer); foreach $r (0 .. $#refs) { ($v,$when2,$who,$htmlfile)=split(/\s+/,$refs[$r]); print "\n"; } print "
  • "; print "$when1"; print "by:"; print "$who"; print " $topic"; print "
  • \n"; print ""; print "\n"; print ""; print ""; print "
     Response $re"; print " (on: $when1"; print "by $who)
     
    \n"; } } print "\n"; print "Back\n"; print ""; exit;