]>
git.p6c8.net - selfforum.git/blob - selfforum-cgi/user/fo_arcview.pl
3 ################################################################################
5 # File: user/fo_arcview.pl #
7 # Authors: Frank Schoenmann <fs@tower.de>, 2001-06-02 #
9 # Description: archive browser #
11 ################################################################################
22 my $null = $0; $null =~ s/\\/\//g
; # for win :-(
23 $Bin = ($null =~ /^(.*)\/.*$/)?
$1 : '.';
24 $Shared = "$Bin/../../cgi-shared";
25 $Config = "$Bin/../../cgi-config/forum";
26 $Script = ($null =~ /^.*\/(.*)$/)?
$1 : $null;
28 # my $null = $0; #$null =~ s/\\/\//g; # for win :-(
29 # $Bin = ($null =~ /^(.*)\/.*$/)? $1 : '.';
30 # $Config = "$Bin/../../../cgi-config/devforum";
31 # $Shared = "$Bin/../../../cgi-shared";
32 # $Script = ($null =~ /^.*\/(.*)$/)? $1 : $null;
36 use CGI
::Carp
qw(fatalsToBrowser);
40 use Template
::Archive
qw(
45 #use Template::Posting;
47 use CGI
qw(param header path_info);
49 print header
(-type
=> 'text/html');
51 #my $show = $conf->{show};
52 #my $tree = $show->{assign}->{thread};
54 #my $forum_file = $conf->{files}->{forum};
55 #my $message_path = $conf->{files}->{messagePath};
57 my $conf = read_script_conf
($Config, $Shared, $Script);
58 my $show = $conf->{'show'};
59 my $cgi = $show->{'assign'}->{'cgi'};
60 my $show_archive = $show->{'Archive'};
61 my $adminDefault = read_admin_conf
($conf->{'files'}->{'adminDefault'});
63 my ($year, $month, $tid, $mid);
65 # tid is thread id, mid is not used yet
66 if (my $path_info = path_info
()) {
67 (undef, $year, $month, $tid, $mid) = split "/", $path_info;
69 ($year, $month, $tid, $mid) =
70 (param
($cgi->{'year'}), param
($cgi->{'month'}), param
($cgi->{'thread'}), param
($cgi->{'posting'}));
77 # print_msg_as_HTML();
80 $conf->{'files'}->{'archivePath'} . $year .'/'. $month .'/t'. $tid . '.xml',
81 # '/home/users/f/fo/fox_two/sf/data/forum/archive/2001/5/t23518',
82 $show_archive->{'templateFile'},
84 'assign' => $show_archive->{'assign'},
85 'adminDefault' => $adminDefault,
91 'tree' => $show->{'assign'}->{'thread'}
98 $conf->{'files'}->{'archivePath'} . $year . '/' . $month . '/' . $conf->{'files'}->{'archiveIndex'},
99 $show_archive->{'templateFile'},
101 'assign' => $show_archive->{'assign'},
108 # print_year_as_HTML();
111 # print_overview_as_HTML();
115 #if (defined ($tid) and defined ($mid)) {
116 # print_posting_as_HTML (
118 # $show_posting -> {templateFile},
119 # { assign => $show_posting -> {assign},
122 # adminDefault => $adminDefault,
123 # messages => $conf -> {template} -> {messages},
124 # form => $show_posting -> {form},
128 # cachepath => $conf -> {files} -> {cachePath}
134 # print_forum_as_HTML (
136 # $show_forum -> {templateFile},
137 # { assign => $show_forum -> {assign},
138 # adminDefault => $adminDefault,
147 ### end of fo_view.pl ##########################################################
patrick-canterino.de