]>
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 ################################################################################
23 my $null = $0; $null =~ s/\\/\//g
; # for win :-(
24 $Bin = ($null =~ /^(.*)\/.*$/)?
$1 : '.';
25 $Shared = "$Bin/../../cgi-shared";
26 $Config = "$Bin/../../cgi-config/forum";
27 $Script = ($null =~ /^.*\/(.*)$/)?
$1 : $null;
30 # $Bin = ($null =~ /^(.*)\/.*$/)? $1 : '.';
31 # $Config = "$Bin/../../daten/forum/config";
32 # $Shared = "$Bin/../../cgi-shared";
33 # $Script = ($null =~ /^.*\/(.*)$/)? $1 : $null;
36 # setting umask, remove or comment it, if you don't need
41 use CGI
::Carp
qw(fatalsToBrowser);
45 use Template
::Archive
qw(
46 print_overview_as_HTML
52 use CGI
qw(param header path_info);
56 $VERSION = do { my @r =(q
$Revision$ =~ /\d+/g); sprintf "%d."."%02d" x
$#r, @r };
58 print header
(-type
=> 'text/html');
60 my $conf = read_script_conf
($Config, $Shared, $Script);
61 my $show = $conf->{'show'};
62 my $cgi = $show->{'assign'}->{'cgi'};
63 my $show_archive = $show->{'Archive'};
64 my $adminDefault = read_admin_conf
($conf->{'files'}->{'adminDefault'});
66 my ($year, $month, $tid, $mid);
68 # tid is thread id, mid is not used yet
69 if (my $path_info = path_info
()) {
70 (undef, $year, $month, $tid, $mid) = split "/", $path_info;
72 ($year, $month, $tid, $mid) =
73 (param
($cgi->{'year'}), param
($cgi->{'month'}), param
($cgi->{'thread'}), param
($cgi->{'posting'}));
80 # print_msg_as_HTML();
83 $conf->{'files'}->{'archivePath'} . $year .'/'. $month .'/t'. $tid . '.xml',
84 $show_archive->{'templateFile'},
86 'assign' => $show_archive->{'assign'},
87 'adminDefault' => $adminDefault,
93 'tree' => $show->{'assign'}->{'thread'}
100 $conf->{'files'}->{'archivePath'} . $year . '/' . $month . '/' . $conf->{'files'}->{'archiveIndex'},
101 $show_archive->{'templateFile'},
103 'assign' => $show_archive->{'assign'},
111 $conf->{'files'}->{'archivePath'} . $year . '/',
112 $show_archive->{'templateFile'},
114 'assign' => $show_archive->{'assign'},
120 print_overview_as_HTML
(
121 $conf->{'files'}->{'archivePath'},
122 $show_archive->{'templateFile'},
124 'assign' => $show_archive->{'assign'}
131 ### end of fo_view.pl ##########################################################
patrick-canterino.de