/[pub]/suikawiki/script/default/suikawiki-config.ph
Suika

Contents of /suikawiki/script/default/suikawiki-config.ph

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4.2.1 - (show annotations) (download)
Sun Oct 5 10:25:33 2003 UTC (21 years, 7 months ago) by wakaba
Branch: branch-suikawiki-1
Changes since 1.4: +30 -8 lines
Backport latest version

1 use strict;
2
3 ## 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 ## cookie-path: /path/to/
6 ## script-short-name: wiki.cgi
7 ## URI parts MUST NOT contains "&" and/or non-URI characters.
8 our %uri = (
9 cookie_path => '/temp/wiki/',
10 external_script => 'script/',
11 script_short_name => 'wiki',
12 );
13 our $url_cgi; {
14 my $scheme = 'http';
15 $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}$uri{cookie_path}$uri{script_short_name}";
17 }
18 $uri{wiki} = $url_cgi;
19
20 ## Path to modules and databases
21 use lib qw!lib!;
22 $SuikaWiki::Plugin::plugin_directory = q(lib/SuikaWiki/Plugin/);
23 our %PathTo = ( ## Path to your data, from the main CGI script (NOT from this config script)
24 CachePrefix => q(./wikidata/.cache.),
25 WikiDataBase => q(./wikidata/page),
26 convert => q(/usr/X11R6/bin/convert),
27 );
28
29 ## Type of WikiPage Database
30 #our $modifier_dbtype = 'AnyDBM_File'; # Fast, not available on some server, page size limited.
31 #our $modifier_dbtype = 'dbmopen'; # Fast, not available on some server, page size limited.
32 #our $modifier_dbtype = 'Yuki::YukiWikiDB'; # Slow, available on all environment.
33 #our $modifier_dbtype = 'Yuki::YukiWikiDB2'; # Slow, available on all environment.
34 our $modifier_dbtype = 'Yuki::YukiWikiDBMeta'; # Slow, available on all environment.
35 our $use_exists = 1; # If you can use 'exists' method for your DB.
36
37 ## Name of Special WikiPage (linked as parts of navigations)
38 our %PageName = (
39 FrontPage => 'HomePage',
40 IndexPage => 'IndexPage',
41 SearchPage => 'SearchPage',
42 CreatePage => 'CreatePage',
43 RecentChanges => 'RecentChanges',
44 UserAgentList => 'WikiUserAgentList',
45 AdminSpecialPage => "\x11\x11Admin\x11Special\x11Page\x11\x11",
46 );
47
48 ## (Should be reimplemented)
49 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;
66 $vd{links} = <<'EOH';
67 %styles-wiki-html(page=>\"WikiStyleList:HTML\");
68 %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\");
70 %link-wiki(rel=>view,class=>wiki-cmd,title=>\"%res(name=>ViewThisPageLink);\",up_to_date);
71 %link-wiki(rel=>myself,class=>wiki,title=>\"%res(name=>GoToMyselfLink);\");
72 %link-wiki(page=>IndexPage,rel=>index,class=>wiki,title=>\"%res(name=>GoToIndexPageLink);\");
73 %link-wiki(page=>HomePage,rel=>home,class=>wiki,title=>\"%res(name=>GoToHomePageLink);\");
74 %link-wiki(page=>WikiNews,rel=>News,class=>wiki,title=>\"%res(name=>GoToWikiNewsLink);\");
75 %link-wiki(page=>RecentChanges,rel=>News,class=>wiki,title=>\"%res(name=>GoToRecentChangesLink);\");
76 %link-wiki(page=>RecentChanges,mode=>rss,rel=>News,class=>wiki,title=>\"%res(name=>GoToRssPageLink);\",type=>\"application/xml\");
77 %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);\");
79 %link-wiki(page=>WikiPageLicense,rel=>copyright,class=>wiki,title=>\"%res(name=>GoToWikiPageLicenseLink);\");
80 %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);\");
82 %link-wiki(page=>WikiMenuBar,mode=>mininav,rel=>\"sidebar navigator\",class=>wiki);
83 %link-favicon(use_page_icon);
84 EOH
85 #%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;
87 $vd{links} .= <<EOH;
88 %link-wiki(href=>\\\"javascript:var%20WikiName=prompt('Please%20input%20the%20WikiName:','','Jump%20to%20SuikaWiki');if(WikiName)%7B_content.location.href='$url_cgi%3F'+encodeURIComponent(WikiName)%7D\\\",rel=>jump,class=>wiki-cmd,title=>\\\"%res(name=>JumpToLink);\\\");
89 %link-wiki(href=>\\\"javascript:var%20WikiName=prompt('Please%20input%20the%20WikiName:','','Jump%20to%20SuikaWiki');if(WikiName)%7B_content.location.href='$url_cgi%3Fmycmd=edit;mypage='+encodeURIComponent(WikiName)%7D\\\",rel=>jump,class=>wiki-cmd,title=>\\\"%res(name=>JumpToEditLink);\\\");
90 EOH
91 $vd{navbar} = <<'EOH';
92 %anchor-wiki(mode=>edit,rel=>edit,class=>wiki-cmd,label=>\\\"%res(name=>EditThisPage);\\\",title=>\\\"%res(name=>EditThisPageLong,accesskey=>E);\\\");
93 %anchor-wiki(rel=>view,up_to_date,class=>wiki-cmd,label=>\\\"%res(name=>ViewThisPage);\\\",title=>\\\"%res(name=>ViewThisPageLong);\\\");
94 %anchor-wiki(page=>CreatePage,class=>wiki,label=>\\\"%res(name=>GoToCreatePage);\\\",title=>\\\"%res(name=>GoToCreatePageLong);\\\");
95 %anchor-wiki(page=>IndexPage,class=>wiki,label=>\\\"%res(name=>GoToIndexPage);\\\",title=>\\\"%res(name=>GoToIndexPageLong);\\\");
96 %anchor-wiki(page=>HomePage,class=>wiki,label=>\\\"%res(name=>GoToHomePage);\\\",title=>\\\"%res(name=>GoToHomePageLong);\\\");
97 %anchor-wiki(page=>SearchPage,class=>wiki,label=>\\\"%res(name=>GoToSearchPage);\\\",title=>\\\"%res(name=>GoToSearchPageLong);\\\");
98 %anchor-wiki(mode=>RandomJump,up_to_date,rel=>lucky,class=>\\\"wiki randomlink\\\",label=>\\\"%res(name=>GoSomewhere);\\\",title=>\\\"%res(name=>GoSomewhereLong);\\\");
99 %anchor-wiki(page=>RecentChanges,class=>wiki,label=>\\\"%res(name=>GoToRecentChanges);\\\",title=>\\\"%res(name=>GoToRecentChangesLong);\\\");
100 EOH
101
102 our %ViewDefinition = (
103 read => {media => {type => 'text/html', charset => 1, expires => 120}, check => sub {1},
104 #xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 120},
105 template => <<EOH},
106 %html-start;%html-head(title=>"%res(name=>\\"View:WebPageTitle\\");",link_meta=>"$vd{links}");
107 %section(level=>1,add_to_toc=>0,type=>body,title=>"%page-name;",heading,content=>"
108 %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);\\");
110 %section(level=>2,id=>\\"see-also\\",title=>SeeAlso,heading,content=>\\"%search-result;\\");
111 %section(level=>2,id=>referer,title=>Referer,heading,content=>\\"%referer-list;\\");
112 %section(level=>2,id=>toc,title=>\\"TOC:Title\\",heading,add_to_toc=>0,content=>\\"%toc(drag);\\");
113 %section(id=>last-modified,add_to_toc=>0,content=>\\"%res(name=>\\\\\\"LastModified=\\\\\\");%last-modified;\\");
114 %section(class=>tools,add_to_toc=>0,content=>\\\"$vd{navbar}\\\");
115 %section(id=>footer,add_to_toc=>0,content=>\\"
116 <a href=\\\\\\"http://www.hyuki.com/yukiwiki/\\\\\\" title=\\\\\\"YukiWiki 2.0.beta1.2002-05-29 &copy; 2000-2002 by Hiroshi Yuki\\\\\\">%res(name=>\\\\\\"About:Name:YukiWiki\\\\\\");</a>
117 <a href=\\\\\\"http://digit.que.ne.jp/work/\\\\\\" title=\\\\\\"WalWiki 2.0.beta1.wal.1 &copy; 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>
119 \\");
120 %apply-user-preferred-style;");%html-end;
121 EOH
122 map => {media => {type => 'text/html', charset => 1, expires => 120}, check => sub {1},
123 #xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 120},
124 template => <<EOH},
125 %html-start;%html-head(title=>"%res(name=>\\"Map:WebPageTitle\\");",link_meta=>"$vd{links}");
126 %section(level=>1,add_to_toc=>0,type=>body,title=>"%page-name;",heading,content=>"
127 %section(id=>tools1,class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\");
128 %section(level=>2,id=>\\"link-map\\",title=>\\"Map:Title\\",heading,content=>\\"
129 <p>%res(name=>\\\\\\"Map:Description\\\\\\");</p>
130 %link-map;
131 \\");
132 %section(level=>2,id=>\\"see-also\\",title=>SeeAlso,heading,content=>\\"%search-result;\\");
133 %section(level=>2,id=>referer,title=>Referer,heading,content=>\\"%referer-list;\\");
134 %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}\\\");
136 %section(id=>footer,add_to_toc=>0,content=>\\"%res(name=>\\\\\\"About:Name:SuikaWiki\\\\\\"); %wiki-version;\\");
137 %apply-user-preferred-style;");%html-end;
138 EOH
139
140 edit => {media => {type => 'text/html', charset => 1, expires => 60}, check => sub {1},
141 #xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 60},
142 template => <<EOH},
143 %html-start;%html-head(title=>"%res(name=>\\"Edit:WebPageTitle\\");",link_meta=>"$vd{links} %html-meta(name=>ROBOTS,content=>NOINDEX);");
144 %section(level=>1,add_to_toc=>0,type=>body,title=>"%page-name;",heading,content=>"
145 %section(id=>tools1,class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\");
146 %section(level=>2,id=>edit,title=>\\"Edit:Title\\",heading,content=>\\"
147 %edit-form;
148 %section(level=>3,id=>edit-help,add_to_toc=>0,content=>\\\\\\"%read(page=>WikiEditHelp);\\\\\\");
149 \\");
150 %section(level=>2,id=>\\"see-also\\",title=>SeeAlso,heading,content=>\\"%search-result;\\");
151 %section(level=>2,id=>referer,title=>Referer,heading,content=>\\"%referer-list;\\");
152 %section(level=>2,id=>toc,title=>\\"TOC:Title\\",heading,add_to_toc=>0,content=>\\"%toc(drag);\\");
153 %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}\\\");
155 %section(id=>footer,add_to_toc=>0,content=>\\"%res(name=>\\\\\\"About:Name:SuikaWiki\\\\\\"); %wiki-version;\\");
156 %apply-user-preferred-style;");%html-end;
157 EOH
158 adminedit => {media => {type => 'text/html', charset => 1, expires => 60}, check => sub {1},
159 xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 60},
160 template => <<EOH},
161 %html-start;%html-head(title=>"%res(name=>\\"Edit:Admin:WebPageTitle\\");",link_meta=>"$vd{links} %html-meta(name=>ROBOTS,content=>NOINDEX);");
162 %section(level=>1,add_to_toc=>0,type=>body,title=>"%page-name;",heading,content=>"
163 %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);\\");
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);\\");
174 %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;\\");
176 %apply-user-preferred-style;");%html-end;
177 EOH
178 -conflict => {media => {type => 'text/html', charset => 1, expires => 60}, check => sub {1},
179 #xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 60},
180 template => <<EOH},
181 %html-start;%html-head(title=>"%res(name=>\\"Edit:Conflict:WebPageTitle\\");",link_meta=>"$vd{links} %html-meta(name=>ROBOTS,content=>NOINDEX);");
182 %section(level=>1,add_to_toc=>0,type=>body,title=>"%page-name;",heading,content=>"
183 %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=>\\"
185 <p>%res(name=>\\\\\\"Edit:Conflict:Description\\\\\\");</p>
186 %conflict-form;
187 %section(level=>3,id=>edit-conflict-diff,title=>\\\\\\"Edit:Conflict:Diff:Title\\\\\\",heading,content=>\\\\\\"
188 <p>%res(name=>\\\\\\\\\\\\\\"Edit:Conflict:Diff:Description\\\\\\\\\\\\\\");</p>
189 %conflict-diff;
190 \\\\\\");
191 \\");
192 %section(level=>2,id=>edit,title=>\\"Edit:Title\\",heading,content=>\\"
193 <p>%res(name=>\\\\\\"Edit:Conflict:Edit:Description\\\\\\");</p>
194 %edit-form;
195 %section(level=>3,id=>edit-help,add_to_toc=>0,content=>\\\\\\"%read(page=>WikiEditHelp);\\\\\\");
196 \\");
197 %section(level=>2,id=>\\"see-also\\",title=>SeeAlso,heading,content=>\\"%search-result;\\");
198 %section(level=>2,id=>referer,title=>Referer,heading,content=>\\"%referer-list;\\");
199 %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}\\\");
201 %section(id=>footer,add_to_toc=>0,content=>\\"%res(name=>\\\\\\"About:Name:SuikaWiki\\\\\\"); %wiki-version;\\");
202 %apply-user-preferred-style;");%html-end;
203 EOH
204 -wrote => {media => {type => 'text/html', charset => 1, expires => 60}, check => sub {1},
205 xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 60},
206 template => <<EOH},
207 %html-start;%html-head(title=>"%res(name=>\\"Edit:Wrote:WebPageTitle\\");",link_meta=>"$vd{links} %html-meta(name=>ROBOTS,content=>NOINDEX);");
208 %section(level=>1,add_to_toc=>0,type=>body,title=>"%page-name;",heading,content=>"
209 %section(id=>tools1,class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\");
210 <p>%res(name=>\\"Edit:SavedSuccessfully\\");</p>
211 %section(id=>footer,add_to_toc=>0,content=>\\"%res(name=>\\\\\\"About:Name:SuikaWiki\\\\\\"); %wiki-version;\\");
212 %apply-user-preferred-style;");%html-end;
213 EOH
214 -deleted => {media => {type => 'text/html', charset => 1, expires => 60}, check => sub {1},
215 xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 60},
216 template => <<EOH},
217 %html-start;%html-head(title=>"%res(name=>\\"Edit:Deleted:WebPageTitle\\");",link_meta=>"$vd{links} %html-meta(name=>ROBOTS,content=>NOINDEX);");
218 %section(level=>1,add_to_toc=>0,type=>body,title=>"%page-name;",heading,content=>"
219 %section(id=>tools1,class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\");
220 <p>%res(name=>\\"Edit:PageIsDeletedSuccessfully\\");</p>
221 %section(id=>footer,add_to_toc=>0,content=>\\"%res(name=>\\\\\\"About:Name:SuikaWiki\\\\\\"); %wiki-version;\\");
222 %apply-user-preferred-style;");%html-end;
223 EOH
224 -error => {media => {type => 'text/html', charset => 1, expires => 60}, check => sub {1},
225 xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 60},
226 template => <<EOH},
227 %html-start;%html-head(title=>"%res(name=>\\"Error:WebPageTitle\\");",link_meta=>"$vd{links} %html-meta(name=>ROBOTS,content=>NOINDEX);");
228 %section(level=>1,add_to_toc=>0,type=>body,title=>"%page-name;",heading,content=>"
229 %section(id=>tools1,class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\");
230 %section(level=>2,id=>error,title=>\\"Error:Title\\",heading,content=>\\"
231 <p>%error-message;</p>
232 \\");
233 %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;\\");
235 %apply-user-preferred-style;");%html-end;
236 EOH
237
238 css => {media => {type => 'text/css', charset => 1, expires => 3600},
239 check => sub { ref $_[0]->format_converter ($_[0]->{magic} => 'CSS') ? 1 : 0 },
240 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},
250 check => sub { ref $_[0]->format_converter ($_[0]->{magic} => 'RSS') ? 1 : 0 },
251 template => '<?xml version="1.0"?>%styles-wiki-xml(page=>"WikiStyleList:RSS");%read(to=>RSS);'},
252 -UnsupportedMediaType => {media => {type => 'text/html', charset => 1, expires => -1},
253 xmedia => {type => 'application/xhtml+xml', charset => 1, expires => -1},
254 check => sub {1}, template => <<EOH},
255 %html-start;%html-head(title=>"%page-name;",link_meta=>"$vd{links}");
256 %section(level=>1,add_to_toc=>0,type=>body,title=>"%page-name;",heading,content=>"
257 %section(id=>tools1,class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\");
258 %section(level=>2,title=>\\"UnsupportedMediaType:Title\\",heading,content=>\\"
259 %res(name=>\\\\\\"UnsupportedMediaType:Description\\\\\\");
260 \\");
261 %section(id=>footer,add_to_toc=>0,content=>\\"%res(name=>\\\\\\"About:Name:SuikaWiki\\\\\\"); %wiki-version;\\");
262 %apply-user-preferred-style;");%html-end;
263 EOH
264 );
265
266
267 $ViewDefinition{diff} = {media => {type => 'text/html', charset => 1, expires => 120},
268 #xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 120},
269 template => <<EOH, check => sub {1}} if $wiki::diff::UseDiff;
270 %html-start;%html-head(title=>"%res(name=>\\"Diff:WebPageTitle\\");",link_meta=>"$vd{links}");
271 %section(level=>1,add_to_toc=>0,type=>body,title=>"%page-name;",heading,content=>"
272 %section(id=>tools1,class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\");
273 %section(level=>2,id=>\\"diff\\",title=>\\"Diff:Title\\",heading,content=>\\"
274 <p>%res(name=>\\\\\\"Diff:Notice\\\\\\");</p>
275 %diff-between-previous;
276 \\");
277 %section(level=>2,id=>toc,title=>\\"TOC:Title\\",heading,add_to_toc=>0,content=>\\"%toc(drag);\\");
278 %section(class=>tools,add_to_toc=>0,content=>\\\"$vd{navbar}\\\");
279 %section(id=>footer,add_to_toc=>0,content=>\\"%res(name=>\\\\\\"About:Name:SuikaWiki\\\\\\"); %wiki-version;\\");
280 ");
281 EOH
282
283 $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: 2003/07/19 04:45:55 $

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24