69 |
->new (-directory => $WIKI->{config}->{path_to}->{db__lock__dir}, |
->new (-directory => $WIKI->{config}->{path_to}->{db__lock__dir}, |
70 |
-name => 'main', |
-name => 'main', |
71 |
-share => 1, |
-share => 1, |
72 |
-limit => 10); |
-limit => $WIKI->{config}->{engine_max_access}); |
73 |
$lock->lock or do { |
$lock->lock or do { |
74 |
require SuikaWiki::Output::HTTP; |
require SuikaWiki::Output::HTTP; |
75 |
my $out = SuikaWiki::Output::HTTP->new; |
my $out = SuikaWiki::Output::HTTP->new; |
329 |
## BUG: this code is not strict |
## BUG: this code is not strict |
330 |
if ($cookie =~ /SelectedMode=([0-9A-Za-z_-]+)/) { |
if ($cookie =~ /SelectedMode=([0-9A-Za-z_-]+)/) { |
331 |
$mode = $1; $mode =~ tr/-/_/; |
$mode = $1; $mode =~ tr/-/_/; |
332 |
|
} elsif ($wiki->{var}->{client}->{downgrade}->{is_robot} and |
333 |
|
$wiki->{plugin}->module_package ('Robot', allow_undef => 1)) { |
334 |
|
$mode = 'robot--read'; |
335 |
} else { |
} else { |
336 |
$mode = 'read'; |
$mode = 'read'; |
337 |
} |
} |