]>
git.p6c8.net - selfforum.git/blob - selfforum-cgi/user/fo_view.pl
5 use vars
qw($Bin $Shared $Script);
8 my $null = $0; $null =~ s/\\/\//g; # for win :-(
9 ($Bin) = ($null =~ /^(.*)\/.*$/)? $1 : '.';
10 $Shared = "$Bin/../shared";
11 ($Script) = ($null =~ /^.*\/(.*)$/)? $1 : $null;
15 use CGI::Carp qw(fatalsToBrowser);
19 use autouse
'Template::Forum' => qw(print_forum_as_HTML($$$));
20 use autouse
'Template::Posting' => qw(print_posting_as_HTML($$$));
22 use CGI
qw(param header);
24 print header
(-type
=> 'text/html');
26 my $conf = read_script_conf
($Bin, $Shared, $Script);
28 my $show = $conf -> {show
};
29 my $show_forum = $show -> {Forum
};
30 my $show_posting = $show -> {Posting
};
31 my $cgi = $show -> {assign
} -> {cgi
};
32 my $tree = $show -> {assign
} -> {thread
};
33 my $adminDefault = read_admin_conf
($conf -> {files
} -> {adminDefault
});
35 my $forum_file = $conf -> {files
} -> {forum
};
36 my $message_path = $conf -> {files
} -> {messagePath
};
38 #use Lock qw(:ALL);release_file($forum_file);die;
40 my ($tid, $mid) = (param
($cgi -> {thread
}), param
($cgi -> {posting
}));
42 if (defined ($tid) and defined ($mid)) {
43 print_posting_as_HTML
($message_path,
44 $show_posting -> {templateFile
},
45 {assign
=> $show_posting -> {assign
},
48 adminDefault
=> $adminDefault,
49 messages
=> $show_posting -> {messages
},
50 form
=> $show_posting -> {form
},
56 print_forum_as_HTML
($forum_file,
57 $show_forum -> {templateFile
},
58 {assign
=> $show_forum -> {assign
},
59 adminDefault
=> $adminDefault,
patrick-canterino.de