my $monthpath = $monthdir . '/';
my $file = $monthpath . "t$tid.xml";
- mkdir $yeardir unless (-d $yeardir);
+ mkdir $yeardir, 0777 unless (-d $yeardir);
if (-d $yeardir) {
- mkdir $monthdir unless (-d $monthdir);
+ mkdir $monthdir, 0777 unless (-d $monthdir);
if (-d $monthdir) {
save_file (
$file,
# $Shared - /path/to/shared-dir # -- " --
# $Script - scriptname
#
+# Return: hashref of config hash
+#
sub read_script_conf ($$$) {
my ($Config, $Shared, $Script) = @_;
#
$VERSION = do { my @r =(q$Revision$ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
-my $O_BINARY = eval "O_BINARY";
+my $O_BINARY = eval 'local $SIG{__DIE__}; O_BINARY';
$O_BINARY = 0 if ($@);
### sub new ####################################################################
local $\;
unless (-d $self -> threaddir($param)) {
- mkdir $self->threaddir($param) or return;
+ mkdir $self->threaddir($param), 0777 or return;
}
- sysopen (
- FILE,
+ sysopen (FILE,
$self->cachefile($param),
O_WRONLY | O_CREAT | O_TRUNC
) or return;
}
else {
unless (-d $self->threaddir($param)) {
- mkdir $self->threaddir($param) or return;
+ mkdir $self->threaddir($param), 0777 or return;
}
my $filename = $self->cachefile($param);
# #
# File: shared/Template.pm #
# #
-# Authors: André Malo <nd@o3media.de>, 2001-04-12 #
-# Frank Schoenmann <fs@tower.de>, 2001-06-04 #
+# Authors: André Malo <nd@o3media.de>, 2001-06-16 #
+# Frank Schoenmann <fs@tower.de>, 2001-06-04 #
# #
# Description: Handle XML based HTML-Templates #
# #
for (@threads) {
$tpar -> {thread} = "$_";
+ $|++;
print ${html_thread ($threads -> {$_}, $template, $tpar)},"\n",'<dd> </dd>',"\n";}
print "</dl>\n",${$template -> scrap ($assign -> {mainDocEnd})};}
})
} if (%$pheader);
+ $|++;
print ${$template -> scrap (
$assign->{mainDoc},
{ $assign->{name} => plain(defined $header->{name} ? $header->{name} : ''),
my ($tid, $mid) = map {$_ || 0} split /;/ => $fup, 2;
-$tid = ($tid=~/(\d+)/)[0] || 0;
-$mid = ($mid=~/(\d+)/)[0] || 0;
+$tid = (defined $tid and $tid=~/(\d+)/)? $1: 0;
+$mid = (defined $mid and $mid=~/(\d+)/)? $1: 0;
if ($tid and $mid and $unid) {