\n!; my $subcomment = substr($comment->{comment}, 0, 64); $subcomment =~ s/</g; $subcomment =~ s/>/>/g; $subcomment =~ s/"/"/g; print "
".$subcomment."
"; print qq!"; } $t = get_thread($input->{id}); if ($t == -1) { flush_files(); redirect("$BUCKY/".details_link($t)."/$comment->{thread}".get_revision($t)); } $keyword = get_keyword($thread->{keyword}); # error("No such thread!") unless ($t != -1 && check_privacy($t, $keyword)); if (exists($input->{parent_id})) { my $headc = get_comment($input->{parent_id}); error("No such comment!") if ($headc == -1); if ($headc->{parent_id} != -1) { $pid = $headc->{parent_id}; } else { $pid = $headc->{id}; } } else { $pid = -1; } add_comment($t->{id}, $pid, $USER->{username}, $input->{comment}) if ($input->{comment}); situate_files($t->{id}, $USER->{username}); touch_thread($t); redirect("$BUCKY/".details_link($t)."/$t->{id}".get_revision($t)); switch_file_privacy($t->{id}, $t->{private}); } if ($DEBUG) { footer (); } $dbh->disconnect (); print "Comment: " . &report_time() . "\n" if $timer;