]>
git.p6c8.net - selfforum.git/blob - selfforum-cgi/user/fo_arcview.pl
095ad4d4828ff0d7ad21cd3ce6aa7c9358010bb5
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 CGI
qw(param header path_info);
47 print header
(-type
=> 'text/html');
49 my $conf = read_script_conf
($Config, $Shared, $Script);
50 my $show = $conf->{'show'};
51 my $cgi = $show->{'assign'}->{'cgi'};
52 my $show_archive = $show->{'Archive'};
53 my $adminDefault = read_admin_conf
($conf->{'files'}->{'adminDefault'});
55 my ($year, $month, $tid, $mid);
57 # tid is thread id, mid is not used yet
58 if (my $path_info = path_info
()) {
59 (undef, $year, $month, $tid, $mid) = split "/", $path_info;
61 ($year, $month, $tid, $mid) =
62 (param
($cgi->{'year'}), param
($cgi->{'month'}), param
($cgi->{'thread'}), param
($cgi->{'posting'}));
69 # print_msg_as_HTML();
72 $conf->{'files'}->{'archivePath'} . $year .'/'. $month .'/t'. $tid . '.xml',
73 $show_archive->{'templateFile'},
75 'assign' => $show_archive->{'assign'},
76 'adminDefault' => $adminDefault,
82 'tree' => $show->{'assign'}->{'thread'}
89 $conf->{'files'}->{'archivePath'} . $year . '/' . $month . '/' . $conf->{'files'}->{'archiveIndex'},
90 $show_archive->{'templateFile'},
92 'assign' => $show_archive->{'assign'},
99 # print_year_as_HTML();
102 # print_overview_as_HTML();
107 ### end of fo_view.pl ##########################################################
patrick-canterino.de