]>
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> #
9 # Description: severancer script #
11 ################################################################################
24 my $null = $0; $null =~ s/\\/\//g
; # for win :-(
25 $Bin = ($null =~ /^(.*)\/.*$/)?
$1 : '.';
26 $Shared = "$Bin/../shared";
27 $Config = "$Bin/config";
28 $Script = ($null =~ /^.*\/(.*)$/)?
$1 : $null;
31 # $Bin = ($null =~ /^(.*)\/.*$/)? $1 : '.';
32 # $Config = "$Bin/../../daten/forum/config";
33 # $Shared = "$Bin/../../cgi-shared";
34 # $Script = ($null =~ /^.*\/(.*)$/)? $1 : $null;
37 # setting umask, remove or comment it, if you don't need
41 ################################################################################
49 sub VERSION
{(q
$Revision$ =~ /([\d.]+)\s*$/)[0] or '0.0'}
52 use CGI
::Carp
qw(fatalsToBrowser);
59 # load script configuration and admin default conf.
61 my $conf = read_script_conf
($Config, $Shared, $Script);
62 my $adminDefault = read_admin_conf
($conf -> {files
} -> {adminDefault
});
64 my $stat = cut_tail
({
65 forumFile
=> $conf->{files
}->{forum
},
66 messagePath
=> $conf->{files
}->{messagePath
},
67 archivePath
=> $conf->{files
}->{archivePath
},
68 archiveIndex
=> $conf->{files
}->{archiveIndex
},
69 lockFile
=> $conf->{files
}->{sev_lock
},
70 adminDefault
=> $adminDefault,
71 cachePath
=> $conf->{files
}->{cachePath
}
73 # die $stat->{(keys %$stat)[0]} if (%$stat);
77 ### end of fo_sev.pl ###########################################################
patrick-canterino.de