]>
git.p6c8.net - selfforum.git/blob - selfforum-cgi/user/fo_sev.pl
3 ################################################################################
5 # File: user/fo_sev.pl #
7 # Authors: André Malo <nd@o3media.de>, 2001-04-08 #
9 # Description: severancer script #
11 ################################################################################
25 my $null = $0; $null =~ s/\\/\//g
; # for win :-(
26 $Bin = ($null =~ /^(.*)\/.*$/)?
$1 : '.';
27 $Shared = "$Bin/../shared";
28 $Config = "$Bin/config";
29 $Script = ($null =~ /^.*\/(.*)$/)?
$1 : $null;
32 # $Bin = ($null =~ /^(.*)\/.*$/)? $1 : '.';
33 # $Config = "$Bin/../../daten/forum/config";
34 # $Shared = "$Bin/../../cgi-shared";
35 # $Script = ($null =~ /^.*\/(.*)$/)? $1 : $null;
38 # setting umask, remove or comment it, if you don't need
42 ################################################################################
46 $VERSION = do { my @r =(q
$Revision$ =~ /\d+/g); sprintf "%d."."%02d" x
$#r, @r };
49 use CGI
::Carp
qw(fatalsToBrowser);
56 # load script configuration and admin default conf.
58 my $conf = read_script_conf
($Config, $Shared, $Script);
59 my $adminDefault = read_admin_conf
($conf -> {files
} -> {adminDefault
});
61 my $stat = cut_tail
({
62 forumFile
=> $conf->{files
}->{forum
},
63 messagePath
=> $conf->{files
}->{messagePath
},
64 archivePath
=> $conf->{files
}->{archivePath
},
65 lockFile
=> $conf->{files
}->{sev_lock
},
66 adminDefault
=> $adminDefault,
67 cachePath
=> $conf->{files
}->{cachePath
}
69 # die $stat->{(keys %$stat)[0]} if (%$stat);
73 ### end of fo_sev.pl ###########################################################
patrick-canterino.de