1 |
use strict; |
use strict; |
2 |
# |
|
3 |
# You MUST modify following '$modifier_...' variables. |
## URI (or part of URI) of Wiki CGI itself and its external addons |
4 |
# |
## Note: If your Wiki CGI URI is <http://foo.example/path/to/wiki.cgi>, |
5 |
# our $modifier_dbtype = 'AnyDBM_File'; # Fast, not available on some server, page size limited. |
## cookie-path: /path/to/ |
6 |
# our $modifier_dbtype = 'dbmopen'; # Fast, not available on some server, page size limited. |
## script-short-name: wiki.cgi |
7 |
#our $modifier_dbtype = 'Yuki::YukiWikiDB'; # Slow, available on all environment. |
## URI parts MUST NOT contains "&" and/or non-URI characters. |
8 |
#our $modifier_dbtype = 'Yuki::YukiWikiDB2'; # Slow, available on all environment. |
our %uri = ( |
9 |
our $modifier_dbtype = 'Yuki::YukiWikiDBMeta'; # Slow, available on all environment. |
cookie_path => '/temp/wiki/', |
10 |
our $url_cgi; { |
external_script => 'script/', |
11 |
|
script_short_name => 'wiki', |
12 |
|
); |
13 |
|
our $url_cgi; { |
14 |
my $scheme = 'http'; |
my $scheme = 'http'; |
15 |
$scheme = lc $1 if $main::ENV{SERVER_PROTOCOL} =~ m#([A-Za-z0-9+.%-]+)#; |
$scheme = lc $1 if $main::ENV{SERVER_PROTOCOL} =~ m#([A-Za-z0-9+.%-]+)#; |
16 |
$url_cgi = "$scheme://$main::ENV{SERVER_NAME}:$main::ENV{SERVER_PORT}/~wakaba/wiki/wiki"; |
$url_cgi = "$scheme://$main::ENV{SERVER_NAME}:$main::ENV{SERVER_PORT}$uri{cookie_path}$uri{script_short_name}"; |
17 |
## - MUST NOT include [&<>"] and/or non-URI characters |
} |
18 |
} |
$uri{wiki} = $url_cgi; |
19 |
our %uri = ( |
|
20 |
external_script => 'script/', |
## Path to modules and databases |
21 |
); |
use lib qw!lib!; |
22 |
$uri{wiki} = $url_cgi; |
$SuikaWiki::Plugin::plugin_directory = q(lib/SuikaWiki/Plugin/); |
23 |
$SuikaWiki::Plugin::plugin_directory = q(lib/SuikaWiki/Plugin/); |
our %PathTo = ( ## Path to your data, from the main CGI script (NOT from this config script) |
24 |
our %PathTo = ( ## Path to your data, from the main CGI script (NOT from this config script) |
CachePrefix => q(./wikidata/.cache.), |
25 |
WikiDataBase => q(./wikidata/page), |
WikiDataBase => q(./wikidata/page), |
26 |
); |
convert => q(/usr/X11R6/bin/convert), |
27 |
our $use_exists = 0; # If you can use 'exists' method for your DB. |
); |
28 |
############################## |
|
29 |
our %PageName = ( |
## Type of WikiPage Database |
30 |
FrontPage => 'HomePage', |
#our $modifier_dbtype = 'AnyDBM_File'; # Fast, not available on some server, page size limited. |
31 |
IndexPage => 'IndexPage', |
#our $modifier_dbtype = 'dbmopen'; # Fast, not available on some server, page size limited. |
32 |
SearchPage => 'SearchPage', |
#our $modifier_dbtype = 'Yuki::YukiWikiDB'; # Slow, available on all environment. |
33 |
CreatePage => 'CreatePage', |
#our $modifier_dbtype = 'Yuki::YukiWikiDB2'; # Slow, available on all environment. |
34 |
ErrorPage => 'ErrorPage', |
our $modifier_dbtype = 'Yuki::YukiWikiDBMeta'; # Slow, available on all environment. |
35 |
RecentChanges => 'RecentChanges', |
our $use_exists = 1; # If you can use 'exists' method for your DB. |
36 |
AdminSpecialPage => "\x11\x11Admin\x11Special\x11Page\x11\x11", |
|
37 |
DefaultStyleForHTML => 'WikiHTMLStyle', |
## Name of Special WikiPage (linked as parts of navigations) |
38 |
UserAgentList => 'WikiUserAgentList', |
our %PageName = ( |
39 |
); |
FrontPage => 'HomePage', |
40 |
our $kanjicode = 'euc'; |
IndexPage => 'IndexPage', |
41 |
our $lang = 'ja'; |
SearchPage => 'SearchPage', |
42 |
|
CreatePage => 'CreatePage', |
43 |
|
RecentChanges => 'RecentChanges', |
44 |
|
UserAgentList => 'WikiUserAgentList', |
45 |
|
AdminSpecialPage => "\x11\x11Admin\x11Special\x11Page\x11\x11", |
46 |
|
); |
47 |
|
|
48 |
$wiki::useragent::UseLog = 0; ## Use User-Agent name log (WikiUserAgentList) or not |
## (Should be reimplemented) |
49 |
$wiki::diff::UseDiff = 1; ## Use diff mode or not |
our $kanjicode = 'euc'; |
50 |
|
our $lang = 'ja'; |
51 |
|
$wiki::useragent::UseLog = 0; ## Use User-Agent name log (WikiUserAgentList) or not |
52 |
|
|
53 |
|
## Misc. options |
54 |
|
$wiki::diff::UseDiff = 1; ## Use diff mode or not |
55 |
|
|
56 |
|
## Namespace of WikiName |
57 |
|
package wiki::page::ns; |
58 |
|
our $delimiter = '//'; |
59 |
|
our $self = '.'; |
60 |
|
our $parent = '..'; |
61 |
|
package main; |
62 |
|
|
63 |
|
## Definition of views |
64 |
|
|
65 |
my %vd; |
my %vd; |
66 |
$vd{links} = <<'EOH'; |
$vd{links} = <<'EOH'; |
67 |
|
%styles-wiki-html(page=>\"WikiStyleList:HTML\"); |
68 |
%link-wiki(mode=>edit,rel=>edit,class=>wiki-cmd,title=>\"%res(name=>EditThisPageLink);\"); |
%link-wiki(mode=>edit,rel=>edit,class=>wiki-cmd,title=>\"%res(name=>EditThisPageLink);\"); |
69 |
%link-wiki(mode=>edit,rel=>edit,class=>wiki-cmd,title=>\"%res(name=>AdminEditThisPageLink);\",add_param=>\"admin=1\"); |
%link-wiki(mode=>edit,rel=>edit,class=>wiki-cmd,title=>\"%res(name=>AdminEditThisPageLink);\",add_param=>\"admin=1\"); |
70 |
%link-wiki(rel=>view,class=>wiki-cmd,title=>\"%res(name=>ViewThisPageLink);\",up_to_date); |
%link-wiki(rel=>view,class=>wiki-cmd,title=>\"%res(name=>ViewThisPageLink);\",up_to_date); |
77 |
%link-wiki(page=>SearchPage,rel=>search,class=>wiki,title=>\"%res(name=>GoToSearchPageLink);\"); |
%link-wiki(page=>SearchPage,rel=>search,class=>wiki,title=>\"%res(name=>GoToSearchPageLink);\"); |
78 |
%link-wiki(page=>WikiHelp,mode=>read,rel=>help,class=>wiki,title=>\"%res(name=>GoToWikiHelpLink);\"); |
%link-wiki(page=>WikiHelp,mode=>read,rel=>help,class=>wiki,title=>\"%res(name=>GoToWikiHelpLink);\"); |
79 |
%link-wiki(page=>WikiPageLicense,rel=>copyright,class=>wiki,title=>\"%res(name=>GoToWikiPageLicenseLink);\"); |
%link-wiki(page=>WikiPageLicense,rel=>copyright,class=>wiki,title=>\"%res(name=>GoToWikiPageLicenseLink);\"); |
80 |
%link-wiki(mode=>map,rel=>contents,class=>wiki-cmd,title=>\"%res(name=>ShowMapOfThisPageLink);\"); |
%link-wiki(mode=>map,rel=>sitemap,class=>wiki-cmd,title=>\"%res(name=>ShowMapOfThisPageLink);\"); |
81 |
%link-wiki(mode=>RandomJump,up_to_date,rel=>lucky,class=>\"wiki randomlink\",title=>\"%res(name=>GoSomewhereLink);\"); |
%link-wiki(mode=>RandomJump,up_to_date,rel=>lucky,class=>\"wiki randomlink\",title=>\"%res(name=>GoSomewhereLink);\"); |
82 |
|
%link-wiki(page=>WikiMenuBar,mode=>mininav,rel=>\"sidebar navigator\",class=>wiki); |
83 |
|
%link-favicon(use_page_icon); |
84 |
EOH |
EOH |
85 |
#%link-viewcvs(href=>\"http://path-to-viewcvs/path-to-repository/\",rel=>history,class=>wiki-cmd,title=>\"%res(name=>ViewHistoryOfThisPageLink);\",hreflang=>en); |
#%link-viewcvs(href=>\"http://path-to-viewcvs/path-to-repository/\",rel=>history,class=>wiki-cmd,title=>\"%res(name=>ViewHistoryOfThisPageLink);\",hreflang=>en); |
86 |
$vd{links} .= q( %link-wiki(mode=>diff,rel=>history,class=>wiki-cmd,title=>\"%res(name=>ViewDiffOfThisPageLink);\");) if $wiki::diff::UseDiff; |
$vd{links} .= q( %link-wiki(mode=>diff,rel=>history,class=>wiki-cmd,title=>\"%res(name=>ViewDiffOfThisPageLink);\");) if $wiki::diff::UseDiff; |
103 |
read => {media => {type => 'text/html', charset => 1, expires => 120}, check => sub {1}, |
read => {media => {type => 'text/html', charset => 1, expires => 120}, check => sub {1}, |
104 |
#xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 120}, |
#xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 120}, |
105 |
template => <<EOH}, |
template => <<EOH}, |
106 |
%html-start;%html-head(title=>"%res(name=>\\"View:WebPageTitle\\");",link_meta=>" |
%html-start;%html-head(title=>"%res(name=>\\"View:WebPageTitle\\");",link_meta=>"$vd{links}"); |
|
%style-wiki(type=>\\"text/css\\",page=>\\"$PageName{DefaultStyleForHTML}\\"); |
|
|
$vd{links}"); |
|
107 |
%section(level=>1,add_to_toc=>0,type=>body,title=>"%page-name;",heading,content=>" |
%section(level=>1,add_to_toc=>0,type=>body,title=>"%page-name;",heading,content=>" |
108 |
%section(class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
%section(id=>tools1,class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
109 |
%section(level=>2,id=>read,add_to_toc=>0,content=>\\"%read(comment);\\"); |
%section(level=>2,id=>read,add_to_toc=>0,content=>\\"%read(comment);\\"); |
110 |
%section(level=>2,id=>\\"see-also\\",title=>SeeAlso,heading,content=>\\"%search-result;\\"); |
%section(level=>2,id=>\\"see-also\\",title=>SeeAlso,heading,content=>\\"%search-result;\\"); |
111 |
%section(level=>2,id=>referer,title=>Referer,heading,content=>\\"%referer-list;\\"); |
%section(level=>2,id=>referer,title=>Referer,heading,content=>\\"%referer-list;\\"); |
117 |
<a href=\\\\\\"http://digit.que.ne.jp/work/\\\\\\" title=\\\\\\"WalWiki 2.0.beta1.wal.1 © 2000-2002 by Makio Tsukamoto\\\\\\">%res(name=>\\\\\\"About:Name:WalWiki\\\\\\");</a> |
<a href=\\\\\\"http://digit.que.ne.jp/work/\\\\\\" title=\\\\\\"WalWiki 2.0.beta1.wal.1 © 2000-2002 by Makio Tsukamoto\\\\\\">%res(name=>\\\\\\"About:Name:WalWiki\\\\\\");</a> |
118 |
<a href=\\\\\\"http://suika.fam.cx/gate/cvs/wakaba/wiki/\\\\\\" title=\\\\\\"%res(name=>\\\\\\"About:SuikaWiki:JumpToCVS\\\\\\");\\\\\\">%res(name=>\\\\\\"About:Name:SuikaWiki\\\\\\"); %wiki-version;</a> |
<a href=\\\\\\"http://suika.fam.cx/gate/cvs/wakaba/wiki/\\\\\\" title=\\\\\\"%res(name=>\\\\\\"About:SuikaWiki:JumpToCVS\\\\\\");\\\\\\">%res(name=>\\\\\\"About:Name:SuikaWiki\\\\\\"); %wiki-version;</a> |
119 |
\\"); |
\\"); |
120 |
");%html-end; |
%apply-user-preferred-style;");%html-end; |
121 |
EOH |
EOH |
122 |
map => {media => {type => 'text/html', charset => 1, expires => 120}, check => sub {1}, |
map => {media => {type => 'text/html', charset => 1, expires => 120}, check => sub {1}, |
123 |
#xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 120}, |
#xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 120}, |
124 |
template => <<EOH}, |
template => <<EOH}, |
125 |
%html-start;%html-head(title=>"%res(name=>\\"Map:WebPageTitle\\");",link_meta=>" |
%html-start;%html-head(title=>"%res(name=>\\"Map:WebPageTitle\\");",link_meta=>"$vd{links}"); |
|
%style-wiki(type=>\\"text/css\\",page=>\\"$PageName{DefaultStyleForHTML}\\"); |
|
|
$vd{links}"); |
|
126 |
%section(level=>1,add_to_toc=>0,type=>body,title=>"%page-name;",heading,content=>" |
%section(level=>1,add_to_toc=>0,type=>body,title=>"%page-name;",heading,content=>" |
127 |
%section(class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
%section(id=>tools1,class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
128 |
%section(level=>2,id=>\\"link-map\\",title=>\\"Map:Title\\",heading,content=>\\" |
%section(level=>2,id=>\\"link-map\\",title=>\\"Map:Title\\",heading,content=>\\" |
129 |
<p>%res(name=>\\\\\\"Map:Description\\\\\\");</p> |
<p>%res(name=>\\\\\\"Map:Description\\\\\\");</p> |
130 |
%link-map; |
%link-map; |
134 |
%section(level=>2,id=>toc,title=>\\"TOC:Title\\",heading,add_to_toc=>0,content=>\\"%toc(drag);\\"); |
%section(level=>2,id=>toc,title=>\\"TOC:Title\\",heading,add_to_toc=>0,content=>\\"%toc(drag);\\"); |
135 |
%section(class=>tools,add_to_toc=>0,content=>\\\"$vd{navbar}\\\"); |
%section(class=>tools,add_to_toc=>0,content=>\\\"$vd{navbar}\\\"); |
136 |
%section(id=>footer,add_to_toc=>0,content=>\\"%res(name=>\\\\\\"About:Name:SuikaWiki\\\\\\"); %wiki-version;\\"); |
%section(id=>footer,add_to_toc=>0,content=>\\"%res(name=>\\\\\\"About:Name:SuikaWiki\\\\\\"); %wiki-version;\\"); |
137 |
");%html-end; |
%apply-user-preferred-style;");%html-end; |
138 |
EOH |
EOH |
139 |
|
|
140 |
edit => {media => {type => 'text/html', charset => 1, expires => 60}, check => sub {1}, |
edit => {media => {type => 'text/html', charset => 1, expires => 60}, check => sub {1}, |
141 |
#xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 60}, |
#xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 60}, |
142 |
template => <<EOH}, |
template => <<EOH}, |
143 |
%html-start;%html-head(title=>"%res(name=>\\"Edit:WebPageTitle\\");",link_meta=>" |
%html-start;%html-head(title=>"%res(name=>\\"Edit:WebPageTitle\\");",link_meta=>"$vd{links} %html-meta(name=>ROBOTS,content=>NOINDEX);"); |
|
%style-wiki(type=>\\"text/css\\",page=>\\"$PageName{DefaultStyleForHTML}\\"); |
|
|
$vd{links} %html-meta(name=>ROBOTS,content=>NOINDEX);"); |
|
144 |
%section(level=>1,add_to_toc=>0,type=>body,title=>"%page-name;",heading,content=>" |
%section(level=>1,add_to_toc=>0,type=>body,title=>"%page-name;",heading,content=>" |
145 |
%section(class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
%section(id=>tools1,class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
146 |
%section(level=>2,id=>edit,title=>\\"Edit:Title\\",heading,content=>\\" |
%section(level=>2,id=>edit,title=>\\"Edit:Title\\",heading,content=>\\" |
147 |
%edit-form; |
%edit-form; |
148 |
%section(level=>3,id=>edit-help,add_to_toc=>0,content=>\\\\\\"%read(page=>WikiEditHelp);\\\\\\"); |
%section(level=>3,id=>edit-help,add_to_toc=>0,content=>\\\\\\"%read(page=>WikiEditHelp);\\\\\\"); |
153 |
%section(id=>last-modified,add_to_toc=>0,content=>\\"%res(name=>\\\\\\"LastModified=\\\\\\");%last-modified;\\"); |
%section(id=>last-modified,add_to_toc=>0,content=>\\"%res(name=>\\\\\\"LastModified=\\\\\\");%last-modified;\\"); |
154 |
%section(class=>tools,add_to_toc=>0,content=>\\\"$vd{navbar}\\\"); |
%section(class=>tools,add_to_toc=>0,content=>\\\"$vd{navbar}\\\"); |
155 |
%section(id=>footer,add_to_toc=>0,content=>\\"%res(name=>\\\\\\"About:Name:SuikaWiki\\\\\\"); %wiki-version;\\"); |
%section(id=>footer,add_to_toc=>0,content=>\\"%res(name=>\\\\\\"About:Name:SuikaWiki\\\\\\"); %wiki-version;\\"); |
156 |
");%html-end; |
%apply-user-preferred-style;");%html-end; |
157 |
EOH |
EOH |
158 |
adminedit => {media => {type => 'text/html', charset => 1, expires => 60}, check => sub {1}, |
adminedit => {media => {type => 'text/html', charset => 1, expires => 60}, check => sub {1}, |
159 |
xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 60}, |
xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 60}, |
160 |
template => <<EOH}, |
template => <<EOH}, |
161 |
%html-start;%html-head(title=>"%res(name=>\\"Edit:Admin:WebPageTitle\\");",link_meta=>" |
%html-start;%html-head(title=>"%res(name=>\\"Edit:Admin:WebPageTitle\\");",link_meta=>"$vd{links} %html-meta(name=>ROBOTS,content=>NOINDEX);"); |
|
%style-wiki(type=>\\"text/css\\",page=>\\"$PageName{DefaultStyleForHTML}\\"); |
|
|
$vd{links} %html-meta(name=>ROBOTS,content=>NOINDEX);"); |
|
162 |
%section(level=>1,add_to_toc=>0,type=>body,title=>"%page-name;",heading,content=>" |
%section(level=>1,add_to_toc=>0,type=>body,title=>"%page-name;",heading,content=>" |
163 |
%section(class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
%section(id=>tools1,class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
164 |
%section(level=>2,id=>edit,title=>\\"Edit:Title\\",heading,content=>\\"%edit-form(admin);\\"); |
%section(level=>2,id=>edit,title=>\\"Edit:Title\\",heading,content=>\\"%edit-form(admin);\\"); |
165 |
|
%section(level=>2,id=>edit,title=>\\"Edit:Rename:Title\\",heading,content=> |
166 |
|
\\"%wp-rename-form-start; |
167 |
|
%format(context=>form_input,template=>\\\\\\\" |
168 |
|
%text(id=>to,label=>\\\\\\\\\\\\\\\"Edit:Rename:To\\\\\\\\\\\\\\\",size=>10); |
169 |
|
%submit; |
170 |
|
\\\\\\\"); |
171 |
|
%form-end;\\" |
172 |
|
); |
173 |
%section(level=>2,id=>toc,title=>\\"TOC:Title\\",heading,add_to_toc=>0,content=>\\"%toc(drag);\\"); |
%section(level=>2,id=>toc,title=>\\"TOC:Title\\",heading,add_to_toc=>0,content=>\\"%toc(drag);\\"); |
174 |
%section(id=>last-modified,add_to_toc=>0,content=>\\"%res(name=>\\\\\\"LastModified=\\\\\\");%last-modified;\\"); |
%section(id=>last-modified,add_to_toc=>0,content=>\\"%res(name=>\\\\\\"LastModified=\\\\\\");%last-modified;\\"); |
175 |
%section(id=>footer,add_to_toc=>0,content=>\\"%res(name=>\\\\\\"About:Name:SuikaWiki\\\\\\"); %wiki-version;\\"); |
%section(id=>footer,add_to_toc=>0,content=>\\"%res(name=>\\\\\\"About:Name:SuikaWiki\\\\\\"); %wiki-version;\\"); |
176 |
");%html-end; |
%apply-user-preferred-style;");%html-end; |
177 |
EOH |
EOH |
178 |
-conflict => {media => {type => 'text/html', charset => 1, expires => 60}, check => sub {1}, |
-conflict => {media => {type => 'text/html', charset => 1, expires => 60}, check => sub {1}, |
179 |
#xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 60}, |
#xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 60}, |
180 |
template => <<EOH}, |
template => <<EOH}, |
181 |
%html-start;%html-head(title=>"%res(name=>\\"Edit:Conflict:WebPageTitle\\");",link_meta=>" |
%html-start;%html-head(title=>"%res(name=>\\"Edit:Conflict:WebPageTitle\\");",link_meta=>"$vd{links} %html-meta(name=>ROBOTS,content=>NOINDEX);"); |
|
%style-wiki(type=>\\"text/css\\",page=>\\"$PageName{DefaultStyleForHTML}\\"); |
|
|
$vd{links} %html-meta(name=>ROBOTS,content=>NOINDEX);"); |
|
182 |
%section(level=>1,add_to_toc=>0,type=>body,title=>"%page-name;",heading,content=>" |
%section(level=>1,add_to_toc=>0,type=>body,title=>"%page-name;",heading,content=>" |
183 |
%section(class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
%section(id=>tools1,class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
184 |
%section(level=>2,id=>edit-conflict,title=>\\"Edit:Conflict:Title\\",heading,content=>\\" |
%section(level=>2,id=>edit-conflict,title=>\\"Edit:Conflict:Title\\",heading,content=>\\" |
185 |
<p>%res(name=>\\\\\\"Edit:Conflict:Description\\\\\\");</p> |
<p>%res(name=>\\\\\\"Edit:Conflict:Description\\\\\\");</p> |
186 |
%conflict-form; |
%conflict-form; |
187 |
<p>%res(name=>\\\\\\"Edit:Conflict:Diff:Description\\\\\\");</p> |
%section(level=>3,id=>edit-conflict-diff,title=>\\\\\\"Edit:Conflict:Diff:Title\\\\\\",heading,content=>\\\\\\" |
188 |
%conflict-diff; |
<p>%res(name=>\\\\\\\\\\\\\\"Edit:Conflict:Diff:Description\\\\\\\\\\\\\\");</p> |
189 |
|
%conflict-diff; |
190 |
|
\\\\\\"); |
191 |
\\"); |
\\"); |
192 |
%section(level=>2,id=>edit,title=>\\"Edit:Title\\",heading,content=>\\" |
%section(level=>2,id=>edit,title=>\\"Edit:Title\\",heading,content=>\\" |
193 |
<p>%res(name=>\\\\\\"Edit:Conflict:Edit:Description\\\\\\");</p> |
<p>%res(name=>\\\\\\"Edit:Conflict:Edit:Description\\\\\\");</p> |
199 |
%section(level=>2,id=>toc,title=>\\"TOC:Title\\",heading,add_to_toc=>0,content=>\\"%toc(drag);\\"); |
%section(level=>2,id=>toc,title=>\\"TOC:Title\\",heading,add_to_toc=>0,content=>\\"%toc(drag);\\"); |
200 |
%section(class=>tools,add_to_toc=>0,content=>\\\"$vd{navbar}\\\"); |
%section(class=>tools,add_to_toc=>0,content=>\\\"$vd{navbar}\\\"); |
201 |
%section(id=>footer,add_to_toc=>0,content=>\\"%res(name=>\\\\\\"About:Name:SuikaWiki\\\\\\"); %wiki-version;\\"); |
%section(id=>footer,add_to_toc=>0,content=>\\"%res(name=>\\\\\\"About:Name:SuikaWiki\\\\\\"); %wiki-version;\\"); |
202 |
");%html-end; |
%apply-user-preferred-style;");%html-end; |
203 |
EOH |
EOH |
204 |
-wrote => {media => {type => 'text/html', charset => 1, expires => 60}, check => sub {1}, |
-wrote => {media => {type => 'text/html', charset => 1, expires => 60}, check => sub {1}, |
205 |
xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 60}, |
xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 60}, |
206 |
template => <<EOH}, |
template => <<EOH}, |
207 |
%html-start;%html-head(title=>"%res(name=>\\"Edit:Wrote:WebPageTitle\\");",link_meta=>" |
%html-start;%html-head(title=>"%res(name=>\\"Edit:Wrote:WebPageTitle\\");",link_meta=>"$vd{links} %html-meta(name=>ROBOTS,content=>NOINDEX);"); |
|
%style-wiki(type=>\\"text/css\\",page=>\\"$PageName{DefaultStyleForHTML}\\"); |
|
|
$vd{links} %html-meta(name=>ROBOTS,content=>NOINDEX);"); |
|
208 |
%section(level=>1,add_to_toc=>0,type=>body,title=>"%page-name;",heading,content=>" |
%section(level=>1,add_to_toc=>0,type=>body,title=>"%page-name;",heading,content=>" |
209 |
%section(class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
%section(id=>tools1,class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
210 |
<p>%res(name=>\\"Edit:SavedSuccessfully\\");</p> |
<p>%res(name=>\\"Edit:SavedSuccessfully\\");</p> |
211 |
%section(id=>footer,add_to_toc=>0,content=>\\"%res(name=>\\\\\\"About:Name:SuikaWiki\\\\\\"); %wiki-version;\\"); |
%section(id=>footer,add_to_toc=>0,content=>\\"%res(name=>\\\\\\"About:Name:SuikaWiki\\\\\\"); %wiki-version;\\"); |
212 |
");%html-end; |
%apply-user-preferred-style;");%html-end; |
213 |
EOH |
EOH |
214 |
-deleted => {media => {type => 'text/html', charset => 1, expires => 60}, check => sub {1}, |
-deleted => {media => {type => 'text/html', charset => 1, expires => 60}, check => sub {1}, |
215 |
xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 60}, |
xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 60}, |
216 |
template => <<EOH}, |
template => <<EOH}, |
217 |
%html-start;%html-head(title=>"%res(name=>\\"Edit:Deleted:WebPageTitle\\");",link_meta=>" |
%html-start;%html-head(title=>"%res(name=>\\"Edit:Deleted:WebPageTitle\\");",link_meta=>"$vd{links} %html-meta(name=>ROBOTS,content=>NOINDEX);"); |
|
%style-wiki(type=>\\"text/css\\",page=>\\"$PageName{DefaultStyleForHTML}\\"); |
|
|
$vd{links} %html-meta(name=>ROBOTS,content=>NOINDEX);"); |
|
218 |
%section(level=>1,add_to_toc=>0,type=>body,title=>"%page-name;",heading,content=>" |
%section(level=>1,add_to_toc=>0,type=>body,title=>"%page-name;",heading,content=>" |
219 |
%section(class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
%section(id=>tools1,class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
220 |
<p>%res(name=>\\"Edit:PageIsDeletedSuccessfully\\");</p> |
<p>%res(name=>\\"Edit:PageIsDeletedSuccessfully\\");</p> |
221 |
%section(id=>footer,add_to_toc=>0,content=>\\"%res(name=>\\\\\\"About:Name:SuikaWiki\\\\\\"); %wiki-version;\\"); |
%section(id=>footer,add_to_toc=>0,content=>\\"%res(name=>\\\\\\"About:Name:SuikaWiki\\\\\\"); %wiki-version;\\"); |
222 |
");%html-end; |
%apply-user-preferred-style;");%html-end; |
223 |
EOH |
EOH |
224 |
-error => {media => {type => 'text/html', charset => 1, expires => 60}, check => sub {1}, |
-error => {media => {type => 'text/html', charset => 1, expires => 60}, check => sub {1}, |
225 |
xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 60}, |
xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 60}, |
226 |
template => <<EOH}, |
template => <<EOH}, |
227 |
%html-start;%html-head(title=>"%res(name=>\\"Error:WebPageTitle\\");",link_meta=>" |
%html-start;%html-head(title=>"%res(name=>\\"Error:WebPageTitle\\");",link_meta=>"$vd{links} %html-meta(name=>ROBOTS,content=>NOINDEX);"); |
|
%style-wiki(type=>\\"text/css\\",page=>\\"$PageName{DefaultStyleForHTML}\\"); |
|
|
$vd{links} %html-meta(name=>ROBOTS,content=>NOINDEX);"); |
|
228 |
%section(level=>1,add_to_toc=>0,type=>body,title=>"%page-name;",heading,content=>" |
%section(level=>1,add_to_toc=>0,type=>body,title=>"%page-name;",heading,content=>" |
229 |
%section(class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
%section(id=>tools1,class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
230 |
%section(level=>2,id=>error,title=>\\"Error:Title\\",heading,content=>\\" |
%section(level=>2,id=>error,title=>\\"Error:Title\\",heading,content=>\\" |
231 |
<p>%error-message;</p> |
<p>%error-message;</p> |
232 |
\\"); |
\\"); |
233 |
%section(level=>2,id=>toc,title=>\\"TOC:Title\\",heading,add_to_toc=>0,content=>\\"%toc(drag);\\"); |
%section(level=>2,id=>toc,title=>\\"TOC:Title\\",heading,add_to_toc=>0,content=>\\"%toc(drag);\\"); |
234 |
%section(id=>footer,add_to_toc=>0,content=>\\"%res(name=>\\\\\\"About:Name:SuikaWiki\\\\\\"); %wiki-version;\\"); |
%section(id=>footer,add_to_toc=>0,content=>\\"%res(name=>\\\\\\"About:Name:SuikaWiki\\\\\\"); %wiki-version;\\"); |
235 |
");%html-end; |
%apply-user-preferred-style;");%html-end; |
236 |
EOH |
EOH |
237 |
|
|
238 |
css => {media => {type => 'text/css', charset => 1, expires => 3600}, |
css => {media => {type => 'text/css', charset => 1, expires => 3600}, |
239 |
check => sub { ref $_[0]->format_converter ($_[0]->{magic} => 'CSS') ? 1 : 0 }, |
check => sub { ref $_[0]->format_converter ($_[0]->{magic} => 'CSS') ? 1 : 0 }, |
240 |
template => '%read(to=>CSS);'}, |
template => '%read(to=>CSS);'}, |
241 |
|
image_jpeg => {media => {type => 'image/jpeg', expires => 240*3600}, |
242 |
|
check => sub { ref ($_[0]->format_converter ($_[0]->{magic} => 'image_jpeg')) |
243 |
|
&& $_[0]->{magic} =~ m#image-type="image/jpeg"# ? 1 : 0 }, |
244 |
|
template => '%read(to=>image_jpeg);'}, |
245 |
|
image_png => {media => {type => 'image/png', expires => 240*3600}, |
246 |
|
check => sub { ref ($_[0]->format_converter ($_[0]->{magic} => 'image_png')) |
247 |
|
&& $_[0]->{magic} =~ m#image-type="image/png"# ? 1 : 0 }, |
248 |
|
template => '%read(to=>image_png);'}, |
249 |
rss => {media => {type => 'application/rss+xml', charset => 1, expires => 3600}, |
rss => {media => {type => 'application/rss+xml', charset => 1, expires => 3600}, |
250 |
check => sub { ref $_[0]->format_converter ($_[0]->{magic} => 'RSS') ? 1 : 0 }, |
check => sub { ref $_[0]->format_converter ($_[0]->{magic} => 'RSS') ? 1 : 0 }, |
251 |
template => '%read(to=>RSS);'}, |
template => '<?xml version="1.0"?>%styles-wiki-xml(page=>"WikiStyleList:RSS");%read(to=>RSS);'}, |
252 |
-UnsupportedMediaType => {media => {type => 'text/html', charset => 1, expires => -1}, |
-UnsupportedMediaType => {media => {type => 'text/html', charset => 1, expires => -1}, |
253 |
xmedia => {type => 'application/xhtml+xml', charset => 1, expires => -1}, |
xmedia => {type => 'application/xhtml+xml', charset => 1, expires => -1}, |
254 |
check => sub {1}, template => <<EOH}, |
check => sub {1}, template => <<EOH}, |
255 |
%html-start;%html-head(title=>"%page-name;",link_meta=>" |
%html-start;%html-head(title=>"%page-name;",link_meta=>"$vd{links}"); |
|
%style-wiki(type=>\\"text/css\\",page=>\\"$PageName{DefaultStyleForHTML}\\"); |
|
|
$vd{links}"); |
|
256 |
%section(level=>1,add_to_toc=>0,type=>body,title=>"%page-name;",heading,content=>" |
%section(level=>1,add_to_toc=>0,type=>body,title=>"%page-name;",heading,content=>" |
257 |
%section(class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
%section(id=>tools1,class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
258 |
%section(level=>2,title=>\\"UnsupportedMediaType:Title\\",heading,content=>\\" |
%section(level=>2,title=>\\"UnsupportedMediaType:Title\\",heading,content=>\\" |
259 |
%res(name=>\\\\\\"UnsupportedMediaType:Description\\\\\\"); |
%res(name=>\\\\\\"UnsupportedMediaType:Description\\\\\\"); |
260 |
\\"); |
\\"); |
|
%section(level=>2,id=>\\"see-also\\",title=>SeeAlso,heading,content=>\\"%search-result;\\"); |
|
|
%section(level=>2,id=>referer,title=>Referer,heading,content=>\\"%referer-list;\\"); |
|
|
%section(level=>2,id=>toc,title=>\\"TOC:Title\\",heading,add_to_toc=>0,content=>\\"%toc(drag);\\"); |
|
|
%section(class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
|
261 |
%section(id=>footer,add_to_toc=>0,content=>\\"%res(name=>\\\\\\"About:Name:SuikaWiki\\\\\\"); %wiki-version;\\"); |
%section(id=>footer,add_to_toc=>0,content=>\\"%res(name=>\\\\\\"About:Name:SuikaWiki\\\\\\"); %wiki-version;\\"); |
262 |
");%html-end; |
%apply-user-preferred-style;");%html-end; |
263 |
EOH |
EOH |
264 |
); |
); |
265 |
|
|
267 |
$ViewDefinition{diff} = {media => {type => 'text/html', charset => 1, expires => 120}, |
$ViewDefinition{diff} = {media => {type => 'text/html', charset => 1, expires => 120}, |
268 |
#xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 120}, |
#xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 120}, |
269 |
template => <<EOH, check => sub {1}} if $wiki::diff::UseDiff; |
template => <<EOH, check => sub {1}} if $wiki::diff::UseDiff; |
270 |
%html-start;%html-head(title=>"%res(name=>\\"Diff:WebPageTitle\\");",link_meta=>" |
%html-start;%html-head(title=>"%res(name=>\\"Diff:WebPageTitle\\");",link_meta=>"$vd{links}"); |
|
%style-wiki(type=>\\"text/css\\",page=>\\"$PageName{DefaultStyleForHTML}\\"); |
|
|
$vd{links}"); |
|
271 |
%section(level=>1,add_to_toc=>0,type=>body,title=>"%page-name;",heading,content=>" |
%section(level=>1,add_to_toc=>0,type=>body,title=>"%page-name;",heading,content=>" |
272 |
%section(class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
%section(id=>tools1,class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
273 |
%section(level=>2,id=>\\"diff\\",title=>\\"Diff:Title\\",heading,content=>\\" |
%section(level=>2,id=>\\"diff\\",title=>\\"Diff:Title\\",heading,content=>\\" |
274 |
<p>%res(name=>\\\\\\"Diff:Notice\\\\\\");</p> |
<p>%res(name=>\\\\\\"Diff:Notice\\\\\\");</p> |
275 |
%diff-between-previous; |
%diff-between-previous; |
280 |
"); |
"); |
281 |
EOH |
EOH |
282 |
|
|
283 |
1; |
$ViewDefinition{mininav} = {%{$ViewDefinition{read}}, template => <<EOH}; |
284 |
|
%html-start;%html-head(title=>"%res(name=>\\"View:WebPageTitle\\");",link_meta=>"$vd{links}"); |
285 |
|
%section(level=>1,add_to_toc=>0,type=>body,content=>" |
286 |
|
%section(level=>2,id=>side-menu,class=>\\"mininav\\",add_to_toc=>0,content=>\\" |
287 |
|
%read; |
288 |
|
%anchor-wiki(rel=>view,mode=>mininav,class=>wiki-cmd,target=>_self,label=>\\\\\\"%res(name=>ReloadThisPage);\\\\\\",title=>\\\\\\"%res(name=>ReloadThisPageLong);\\\\\\"); |
289 |
|
\\"); |
290 |
|
%apply-user-preferred-style;");%html-end; |
291 |
|
EOH |
292 |
|
|
293 |
|
$ViewDefinition{pi_wp__rename} = {media => {type => 'text/html', charset => 1, |
294 |
|
expires => 60}, check => sub {1}, |
295 |
|
#xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 60}, |
296 |
|
template => <<EOH}; |
297 |
|
%html-start;%html-head(title=>"%res(name=>\\"Edit:Wrote:WebPageTitle\\");",link_meta=>"$vd{links} %html-meta(name=>ROBOTS,content=>NOINDEX);"); |
298 |
|
%section(level=>1,add_to_toc=>0,type=>body,title=>"%page-name;",heading,content=>" |
299 |
|
%section(id=>tools1,class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
300 |
|
%section(level=>2,id=>edit,title=>\\"Edit:Rename:Title\\",heading,content=>\\"%wp-renaming;\\"); |
301 |
|
%section(id=>footer,add_to_toc=>0,content=>\\"%res(name=>\\\\\\"About:Name:SuikaWiki\\\\\\"); %wiki-version;\\"); |
302 |
|
%apply-user-preferred-style;");%html-end; |
303 |
|
EOH |
304 |
|
|
305 |
|
=head1 NAME |
306 |
|
|
307 |
|
suikawiki-config.ph --- SuikaWiki: site configuration script |
308 |
|
|
309 |
|
=head1 LICENSE |
310 |
|
|
311 |
|
Copyright 2003 Wakaba <w@suika.fam.cx> |
312 |
|
|
313 |
|
This program is free software; you can redistribute it and/or |
314 |
|
modify it under the same terms as Perl itself. |
315 |
|
|
316 |
|
=cut |
317 |
|
|
318 |
|
1; # $Date$ |