summaryrefslogtreecommitdiff
path: root/ikiwiki
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-03-12 03:31:59 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-03-12 03:31:59 +0000
commit286e1d0700af3a441e607185713686d105571eaf (patch)
tree732060d83f2503143a6831fd68307912ffede4c6 /ikiwiki
parentbbabbca9d1943421117a6625fc81c02d5b66def4 (diff)
add anonok
Diffstat (limited to 'ikiwiki')
-rwxr-xr-xikiwiki5
1 files changed, 4 insertions, 1 deletions
diff --git a/ikiwiki b/ikiwiki
index 5228c45d6..146ae93b7 100755
--- a/ikiwiki
+++ b/ikiwiki
@@ -26,6 +26,7 @@ my $url="";
my $cgiurl="";
my $historyurl="";
my $svn=1;
+my $anonok=0;
sub usage { #{{{
die "usage: ikiwiki [options] source templates dest\n";
@@ -597,6 +598,7 @@ sub gen_wrapper ($$) { #{{{
push @params, "--url=$url" if $url;
push @params, "--cgiurl=$cgiurl" if $cgiurl;
push @params, "--historyurl=$historyurl" if $historyurl;
+ push @params, "--anonok" if $anonok;
my $params=join(" ", @params);
my $call='';
foreach my $p ($this, $this, @params) {
@@ -792,7 +794,7 @@ sub cgi () { #{{{
return;
}
- if (! defined $session->param("name") || $do eq 'signin') {
+ if ((! $anonok && ! defined $session->param("name")) || $do eq 'signin') {
cgi_signin($q, $session);
return;
}
@@ -926,6 +928,7 @@ if (grep /^-/, @ARGV) {
"rebuild" => \$rebuild,
"wrapper" => \$wrapper,
"svn!" => \$svn,
+ "anonok!" => \$anonok,
"cgi" => \$cgi,
"url=s" => \$url,
"cgiurl=s" => \$cgiurl,