package ND::Web::Pages::Forum;
use strict;
-use warnings FATAL => 'all';
-no warnings 'uninitialized';
+use warnings;
use ND::Web::Forum;
use CGI qw/:standard/;
use ND::Web::Include;
$ND::TEMPLATE->param(TITLE => 'Forum');
+ $DBH->do(q{UPDATE users SET last_forum_visit = NOW() WHERE uid = $1},undef,$ND::UID) or $ND::ERROR .= p($DBH->errstr);
+
my $board;
if(param('b')){
my $boards = $DBH->prepare(q{SELECT fb.fbid AS id,fb.board, bool_or(fa.post) AS post
$thread = $DBH->selectrow_hashref($findThread,undef,param('t'),$ND::UID) or $ND::ERROR .= p($DBH->errstr);
}
- if (defined param('cmd') && param('cmd') eq 'forumpost'){
+ if (defined param('cmd') && param('cmd') eq 'Submit'){
$DBH->begin_work;
if ($board && $board->{post}){
$thread = addForumThread $DBH,$board,$ND::UID,param('subject');