19 |
$uri{wiki} = $url_cgi; |
$uri{wiki} = $url_cgi; |
20 |
$SuikaWiki::Plugin::plugin_directory = q(lib/SuikaWiki/Plugin/); |
$SuikaWiki::Plugin::plugin_directory = q(lib/SuikaWiki/Plugin/); |
21 |
our %PathTo = ( ## Path to your data, from the main CGI script (NOT from this config script) |
our %PathTo = ( ## Path to your data, from the main CGI script (NOT from this config script) |
22 |
|
CacheHeadline => q(./wikidata/.headline.cache), |
23 |
|
CachePrefix => q(./wikidata/.cache.), |
24 |
|
CacheSearchResult => q(./wikidata/.search.cache), |
25 |
WikiDataBase => q(./wikidata/page), |
WikiDataBase => q(./wikidata/page), |
26 |
); |
); |
27 |
our $use_exists = 0; # If you can use 'exists' method for your DB. |
our $use_exists = 0; # If you can use 'exists' method for your DB. |
34 |
ErrorPage => 'ErrorPage', |
ErrorPage => 'ErrorPage', |
35 |
RecentChanges => 'RecentChanges', |
RecentChanges => 'RecentChanges', |
36 |
AdminSpecialPage => "\x11\x11Admin\x11Special\x11Page\x11\x11", |
AdminSpecialPage => "\x11\x11Admin\x11Special\x11Page\x11\x11", |
|
DefaultStyleForHTML => 'WikiHTMLStyle', |
|
37 |
UserAgentList => 'WikiUserAgentList', |
UserAgentList => 'WikiUserAgentList', |
38 |
); |
); |
39 |
our $kanjicode = 'euc'; |
our $kanjicode = 'euc'; |
42 |
$wiki::useragent::UseLog = 0; ## Use User-Agent name log (WikiUserAgentList) or not |
$wiki::useragent::UseLog = 0; ## Use User-Agent name log (WikiUserAgentList) or not |
43 |
$wiki::diff::UseDiff = 1; ## Use diff mode or not |
$wiki::diff::UseDiff = 1; ## Use diff mode or not |
44 |
|
|
45 |
|
## Definition of views |
46 |
|
|
47 |
my %vd; |
my %vd; |
48 |
$vd{links} = <<'EOH'; |
$vd{links} = <<'EOH'; |
49 |
|
%styles-wiki-html(page=>\"WikiStyleList:HTML\"); |
50 |
%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);\"); |
51 |
%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\"); |
52 |
%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); |
83 |
read => {media => {type => 'text/html', charset => 1, expires => 120}, check => sub {1}, |
read => {media => {type => 'text/html', charset => 1, expires => 120}, check => sub {1}, |
84 |
#xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 120}, |
#xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 120}, |
85 |
template => <<EOH}, |
template => <<EOH}, |
86 |
%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}"); |
|
87 |
%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=>" |
88 |
%section(class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
%section(id=>tools1,class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
89 |
%section(level=>2,id=>read,add_to_toc=>0,content=>\\"%read(comment);\\"); |
%section(level=>2,id=>read,add_to_toc=>0,content=>\\"%read(comment);\\"); |
90 |
%section(level=>2,id=>\\"see-also\\",title=>SeeAlso,heading,content=>\\"%search-result;\\"); |
%section(level=>2,id=>\\"see-also\\",title=>SeeAlso,heading,content=>\\"%search-result;\\"); |
91 |
%section(level=>2,id=>referer,title=>Referer,heading,content=>\\"%referer-list;\\"); |
%section(level=>2,id=>referer,title=>Referer,heading,content=>\\"%referer-list;\\"); |
97 |
<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> |
98 |
<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> |
99 |
\\"); |
\\"); |
100 |
");%html-end; |
%apply-user-preferred-style;");%html-end; |
101 |
EOH |
EOH |
102 |
map => {media => {type => 'text/html', charset => 1, expires => 120}, check => sub {1}, |
map => {media => {type => 'text/html', charset => 1, expires => 120}, check => sub {1}, |
103 |
#xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 120}, |
#xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 120}, |
104 |
template => <<EOH}, |
template => <<EOH}, |
105 |
%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}"); |
|
106 |
%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=>" |
107 |
%section(class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
%section(id=>tools1,class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
108 |
%section(level=>2,id=>\\"link-map\\",title=>\\"Map:Title\\",heading,content=>\\" |
%section(level=>2,id=>\\"link-map\\",title=>\\"Map:Title\\",heading,content=>\\" |
109 |
<p>%res(name=>\\\\\\"Map:Description\\\\\\");</p> |
<p>%res(name=>\\\\\\"Map:Description\\\\\\");</p> |
110 |
%link-map; |
%link-map; |
114 |
%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);\\"); |
115 |
%section(class=>tools,add_to_toc=>0,content=>\\\"$vd{navbar}\\\"); |
%section(class=>tools,add_to_toc=>0,content=>\\\"$vd{navbar}\\\"); |
116 |
%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;\\"); |
117 |
");%html-end; |
%apply-user-preferred-style;");%html-end; |
118 |
EOH |
EOH |
119 |
|
|
120 |
edit => {media => {type => 'text/html', charset => 1, expires => 60}, check => sub {1}, |
edit => {media => {type => 'text/html', charset => 1, expires => 60}, check => sub {1}, |
121 |
#xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 60}, |
#xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 60}, |
122 |
template => <<EOH}, |
template => <<EOH}, |
123 |
%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);"); |
|
124 |
%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=>" |
125 |
%section(class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
%section(id=>tools1,class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
126 |
%section(level=>2,id=>edit,title=>\\"Edit:Title\\",heading,content=>\\" |
%section(level=>2,id=>edit,title=>\\"Edit:Title\\",heading,content=>\\" |
127 |
%edit-form; |
%edit-form; |
128 |
%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);\\\\\\"); |
133 |
%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;\\"); |
134 |
%section(class=>tools,add_to_toc=>0,content=>\\\"$vd{navbar}\\\"); |
%section(class=>tools,add_to_toc=>0,content=>\\\"$vd{navbar}\\\"); |
135 |
%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;\\"); |
136 |
");%html-end; |
%apply-user-preferred-style;");%html-end; |
137 |
EOH |
EOH |
138 |
adminedit => {media => {type => 'text/html', charset => 1, expires => 60}, check => sub {1}, |
adminedit => {media => {type => 'text/html', charset => 1, expires => 60}, check => sub {1}, |
139 |
xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 60}, |
xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 60}, |
140 |
template => <<EOH}, |
template => <<EOH}, |
141 |
%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);"); |
|
142 |
%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=>" |
143 |
%section(class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
%section(id=>tools1,class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
144 |
%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);\\"); |
145 |
%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);\\"); |
146 |
%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;\\"); |
147 |
%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;\\"); |
148 |
");%html-end; |
%apply-user-preferred-style;");%html-end; |
149 |
EOH |
EOH |
150 |
-conflict => {media => {type => 'text/html', charset => 1, expires => 60}, check => sub {1}, |
-conflict => {media => {type => 'text/html', charset => 1, expires => 60}, check => sub {1}, |
151 |
#xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 60}, |
#xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 60}, |
152 |
template => <<EOH}, |
template => <<EOH}, |
153 |
%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);"); |
|
154 |
%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=>" |
155 |
%section(class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
%section(id=>tools1,class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
156 |
%section(level=>2,id=>edit-conflict,title=>\\"Edit:Conflict:Title\\",heading,content=>\\" |
%section(level=>2,id=>edit-conflict,title=>\\"Edit:Conflict:Title\\",heading,content=>\\" |
157 |
<p>%res(name=>\\\\\\"Edit:Conflict:Description\\\\\\");</p> |
<p>%res(name=>\\\\\\"Edit:Conflict:Description\\\\\\");</p> |
158 |
%conflict-form; |
%conflict-form; |
159 |
<p>%res(name=>\\\\\\"Edit:Conflict:Diff:Description\\\\\\");</p> |
%section(level=>3,id=>edit-conflict-diff,title=>\\\\\\"Edit:Conflict:Diff:Title\\\\\\",heading,content=>\\\\\\" |
160 |
%conflict-diff; |
<p>%res(name=>\\\\\\\\\\\\\\"Edit:Conflict:Diff:Description\\\\\\\\\\\\\\");</p> |
161 |
|
%conflict-diff; |
162 |
|
\\\\\\"); |
163 |
\\"); |
\\"); |
164 |
%section(level=>2,id=>edit,title=>\\"Edit:Title\\",heading,content=>\\" |
%section(level=>2,id=>edit,title=>\\"Edit:Title\\",heading,content=>\\" |
165 |
<p>%res(name=>\\\\\\"Edit:Conflict:Edit:Description\\\\\\");</p> |
<p>%res(name=>\\\\\\"Edit:Conflict:Edit:Description\\\\\\");</p> |
171 |
%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);\\"); |
172 |
%section(class=>tools,add_to_toc=>0,content=>\\\"$vd{navbar}\\\"); |
%section(class=>tools,add_to_toc=>0,content=>\\\"$vd{navbar}\\\"); |
173 |
%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;\\"); |
174 |
");%html-end; |
%apply-user-preferred-style;");%html-end; |
175 |
EOH |
EOH |
176 |
-wrote => {media => {type => 'text/html', charset => 1, expires => 60}, check => sub {1}, |
-wrote => {media => {type => 'text/html', charset => 1, expires => 60}, check => sub {1}, |
177 |
xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 60}, |
xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 60}, |
178 |
template => <<EOH}, |
template => <<EOH}, |
179 |
%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);"); |
|
180 |
%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=>" |
181 |
%section(class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
%section(id=>tools1,class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
182 |
<p>%res(name=>\\"Edit:SavedSuccessfully\\");</p> |
<p>%res(name=>\\"Edit:SavedSuccessfully\\");</p> |
183 |
%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;\\"); |
184 |
");%html-end; |
%apply-user-preferred-style;");%html-end; |
185 |
EOH |
EOH |
186 |
-deleted => {media => {type => 'text/html', charset => 1, expires => 60}, check => sub {1}, |
-deleted => {media => {type => 'text/html', charset => 1, expires => 60}, check => sub {1}, |
187 |
xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 60}, |
xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 60}, |
188 |
template => <<EOH}, |
template => <<EOH}, |
189 |
%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);"); |
|
190 |
%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=>" |
191 |
%section(class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
%section(id=>tools1,class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
192 |
<p>%res(name=>\\"Edit:PageIsDeletedSuccessfully\\");</p> |
<p>%res(name=>\\"Edit:PageIsDeletedSuccessfully\\");</p> |
193 |
%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;\\"); |
194 |
");%html-end; |
%apply-user-preferred-style;");%html-end; |
195 |
EOH |
EOH |
196 |
-error => {media => {type => 'text/html', charset => 1, expires => 60}, check => sub {1}, |
-error => {media => {type => 'text/html', charset => 1, expires => 60}, check => sub {1}, |
197 |
xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 60}, |
xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 60}, |
198 |
template => <<EOH}, |
template => <<EOH}, |
199 |
%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);"); |
|
200 |
%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=>" |
201 |
%section(class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
%section(id=>tools1,class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
202 |
%section(level=>2,id=>error,title=>\\"Error:Title\\",heading,content=>\\" |
%section(level=>2,id=>error,title=>\\"Error:Title\\",heading,content=>\\" |
203 |
<p>%error-message;</p> |
<p>%error-message;</p> |
204 |
\\"); |
\\"); |
205 |
%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);\\"); |
206 |
%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;\\"); |
207 |
");%html-end; |
%apply-user-preferred-style;");%html-end; |
208 |
EOH |
EOH |
209 |
|
|
210 |
css => {media => {type => 'text/css', charset => 1, expires => 3600}, |
css => {media => {type => 'text/css', charset => 1, expires => 3600}, |
216 |
-UnsupportedMediaType => {media => {type => 'text/html', charset => 1, expires => -1}, |
-UnsupportedMediaType => {media => {type => 'text/html', charset => 1, expires => -1}, |
217 |
xmedia => {type => 'application/xhtml+xml', charset => 1, expires => -1}, |
xmedia => {type => 'application/xhtml+xml', charset => 1, expires => -1}, |
218 |
check => sub {1}, template => <<EOH}, |
check => sub {1}, template => <<EOH}, |
219 |
%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}"); |
|
220 |
%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=>" |
221 |
%section(class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
%section(id=>tools1,class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
222 |
%section(level=>2,title=>\\"UnsupportedMediaType:Title\\",heading,content=>\\" |
%section(level=>2,title=>\\"UnsupportedMediaType:Title\\",heading,content=>\\" |
223 |
%res(name=>\\\\\\"UnsupportedMediaType:Description\\\\\\"); |
%res(name=>\\\\\\"UnsupportedMediaType:Description\\\\\\"); |
224 |
\\"); |
\\"); |
|
%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}\\"); |
|
225 |
%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;\\"); |
226 |
");%html-end; |
%apply-user-preferred-style;");%html-end; |
227 |
EOH |
EOH |
228 |
); |
); |
229 |
|
|
231 |
$ViewDefinition{diff} = {media => {type => 'text/html', charset => 1, expires => 120}, |
$ViewDefinition{diff} = {media => {type => 'text/html', charset => 1, expires => 120}, |
232 |
#xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 120}, |
#xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 120}, |
233 |
template => <<EOH, check => sub {1}} if $wiki::diff::UseDiff; |
template => <<EOH, check => sub {1}} if $wiki::diff::UseDiff; |
234 |
%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}"); |
|
235 |
%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=>" |
236 |
%section(class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
%section(id=>tools1,class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
237 |
%section(level=>2,id=>\\"diff\\",title=>\\"Diff:Title\\",heading,content=>\\" |
%section(level=>2,id=>\\"diff\\",title=>\\"Diff:Title\\",heading,content=>\\" |
238 |
<p>%res(name=>\\\\\\"Diff:Notice\\\\\\");</p> |
<p>%res(name=>\\\\\\"Diff:Notice\\\\\\");</p> |
239 |
%diff-between-previous; |
%diff-between-previous; |
244 |
"); |
"); |
245 |
EOH |
EOH |
246 |
|
|
247 |
|
=head1 NAME |
248 |
|
|
249 |
|
suikawiki-config.ph --- SuikaWiki: site configuration script |
250 |
|
|
251 |
|
=head1 LICENSE |
252 |
|
|
253 |
|
Copyright 2003 Wakaba <w@suika.fam.cx> |
254 |
|
|
255 |
|
This program is free software; you can redistribute it and/or |
256 |
|
modify it under the same terms as Perl itself. |
257 |
|
|
258 |
|
=cut |
259 |
|
|
260 |
1; |
1; |