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 => '/~wakaba/-temp/wiki/', |
10 |
our $url_cgi; { |
external_script => '../wiki/script/', |
11 |
|
script_short_name => 'wiki', |
12 |
|
## If you use CVS repository of WikiDatabase, |
13 |
|
#cvs_repository => 'http://path-to-viewcvs/path-to-repository/', |
14 |
|
); |
15 |
|
our $url_cgi; { |
16 |
my $scheme = 'http'; |
my $scheme = 'http'; |
17 |
$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+.%-]+)#; |
18 |
$url_cgi = "$scheme://$main::ENV{SERVER_NAME}:$main::ENV{SERVER_PORT}/~wakaba/suikawiki/wiki"; |
$url_cgi = "$scheme://$main::ENV{SERVER_NAME}".($main::ENV{SERVER_PORT}==80?'':":$main::ENV{SERVER_PORT}")."$uri{cookie_path}$uri{script_short_name}"; |
19 |
## - MUST NOT include [&<>"] and/or non-URI characters |
} |
20 |
} |
$uri{wiki_abs} = $url_cgi; |
21 |
our %uri = ( |
$uri{wiki} = qq($uri{cookie_path}$uri{script_short_name}); |
22 |
cookie_path => '/~wakaba/suikawiki/', |
|
23 |
external_script => '../wiki/script/', |
## Path to modules and databases |
24 |
); |
push @main::INC, 'lib'; |
25 |
$uri{wiki} = $url_cgi; |
push @SuikaWiki::Plugin::plugin_directory, ( |
26 |
$SuikaWiki::Plugin::plugin_directory = q(../wiki/lib/SuikaWiki/Plugin/); |
q(lib/SuikaWiki/Plugin/), |
27 |
our %PathTo = ( ## Path to your data, from the main CGI script (NOT from this config script) |
q(misc/plugins/), |
28 |
CachePrefix => q(./wikidata/.cache.), |
); |
29 |
WikiDataBase => q(./wikidata/page), |
our %PathTo = ( ## Path to your data, from the main CGI script (NOT from this config script) |
30 |
); |
CachePrefix => q(./wikidata/.cache.), |
31 |
############################## |
TempPrefix => q(./wikidata/.tmp.), |
32 |
our %PageName = ( |
WikiDataBase => q(./wikidata/page), |
33 |
FrontPage => 'HomePage', |
WikiDatabaseErrorLog => q(./wikidata/error.log), |
34 |
IndexPage => 'IndexPage', |
convert => q(/usr/X11R6/bin/convert), |
35 |
SearchPage => 'SearchPage', |
); |
36 |
CreatePage => 'CreatePage', |
|
37 |
ErrorPage => 'ErrorPage', |
## Type of WikiPage Database |
38 |
RecentChanges => 'RecentChanges', |
#our $modifier_dbtype = 'AnyDBM_File'; # Fast, not available on some server, page size limited. |
39 |
AdminSpecialPage => "\x11\x11Admin\x11Special\x11Page\x11\x11", |
#our $modifier_dbtype = 'dbmopen'; # Fast, not available on some server, page size limited. |
40 |
UserAgentList => 'WikiUserAgentList', |
#our $modifier_dbtype = 'Yuki::YukiWikiDB'; # Slow, available on all environment. |
41 |
); |
#our $modifier_dbtype = 'Yuki::YukiWikiDB2'; # Slow, available on all environment. |
42 |
our $kanjicode = 'euc'; |
our $modifier_dbtype = 'Yuki::YukiWikiDBMeta'; # Slow, available on all environment. |
43 |
our $lang = 'ja'; |
our $use_exists = 1; # If you can use 'exists' method for your DB. |
44 |
|
|
45 |
$wiki::useragent::UseLog = 0; ## Use User-Agent name log (WikiUserAgentList) or not |
## Name of Special WikiPage (linked as parts of navigations) |
46 |
$wiki::diff::UseDiff = 1; ## Use diff mode or not |
our %PageName = ( |
47 |
|
FrontPage => 'HomePage', |
48 |
my %vd; |
IndexPage => 'IndexPage', |
49 |
$vd{links} = <<'EOH'; |
InterWikiName => 'Wiki//InterWikiName', |
50 |
%styles-wiki-html(page=>\"WikiStyleList:HTML\"); |
SearchPage => 'Wiki//Page//Search', |
51 |
%link-wiki(mode=>edit,rel=>edit,class=>wiki-cmd,title=>\"%res(name=>EditThisPageLink);\"); |
CreatePage => 'Wiki//Page//Create', |
52 |
%link-wiki(mode=>edit,rel=>edit,class=>wiki-cmd,title=>\"%res(name=>AdminEditThisPageLink);\",add_param=>\"admin=1\"); |
MenuBar => 'Wiki//MenuBar', |
53 |
%link-wiki(rel=>view,class=>wiki-cmd,title=>\"%res(name=>ViewThisPageLink);\",up_to_date); |
RecentChanges => 'RecentChanges', |
54 |
%link-wiki(rel=>myself,class=>wiki,title=>\"%res(name=>GoToMyselfLink);\"); |
RefererDontRecord => 'Wiki//Referer//IgnoreSite', |
55 |
%link-wiki(page=>IndexPage,rel=>index,class=>wiki,title=>\"%res(name=>GoToIndexPageLink);\"); |
RefererSiteName => 'Wiki//Referer//SiteName', |
56 |
%link-wiki(page=>HomePage,rel=>home,class=>wiki,title=>\"%res(name=>GoToHomePageLink);\"); |
ResourceNS => 'Wiki//Resource//', |
57 |
%link-wiki(page=>WikiNews,rel=>News,class=>wiki,title=>\"%res(name=>GoToWikiNewsLink);\"); |
StyleList => 'Wiki//Style//List//', |
58 |
%link-wiki(page=>RecentChanges,rel=>News,class=>wiki,title=>\"%res(name=>GoToRecentChangesLink);\"); |
UserAgentList => 'Wiki//UserAgentList', |
59 |
%link-wiki(page=>RecentChanges,mode=>rss,rel=>News,class=>wiki,title=>\"%res(name=>GoToRssPageLink);\",type=>\"application/xml\"); |
AdminSpecialPage => "\x11\x11Admin\x11Special\x11Page\x11\x11", |
60 |
%link-wiki(page=>SearchPage,rel=>search,class=>wiki,title=>\"%res(name=>GoToSearchPageLink);\"); |
); |
61 |
%link-wiki(page=>WikiHelp,mode=>read,rel=>help,class=>wiki,title=>\"%res(name=>GoToWikiHelpLink);\"); |
|
62 |
%link-wiki(page=>WikiPageLicense,rel=>copyright,class=>wiki,title=>\"%res(name=>GoToWikiPageLicenseLink);\"); |
## (Should be reimplemented) |
63 |
%link-wiki(mode=>map,rel=>contents,class=>wiki-cmd,title=>\"%res(name=>ShowMapOfThisPageLink);\"); |
our $kanjicode = 'euc'; |
64 |
%link-wiki(mode=>RandomJump,up_to_date,rel=>lucky,class=>\"wiki randomlink\",title=>\"%res(name=>GoSomewhereLink);\"); |
our $lang = 'ja'; |
65 |
EOH |
|
66 |
#%link-viewcvs(href=>\"http://path-to-viewcvs/path-to-repository/\",rel=>history,class=>wiki-cmd,title=>\"%res(name=>ViewHistoryOfThisPageLink);\",hreflang=>en); |
## Misc. options |
67 |
$vd{links} .= q( %link-wiki(mode=>diff,rel=>history,class=>wiki-cmd,title=>\"%res(name=>ViewDiffOfThisPageLink);\");) if $wiki::diff::UseDiff; |
$SuikaWiki::Plugin::UserAgent::LoggingName = 1; |
68 |
$vd{links} .= <<EOH; |
## Use UA-name log? (require UserAgent plugin module) |
69 |
%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);\\\"); |
|
70 |
%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);\\\"); |
## Definition of views |
71 |
EOH |
|
72 |
$vd{navbar} = <<'EOH'; |
require SuikaWiki::View; |
73 |
%anchor-wiki(mode=>edit,rel=>edit,class=>wiki-cmd,label=>\\\"%res(name=>EditThisPage);\\\",title=>\\\"%res(name=>EditThisPageLong,accesskey=>E);\\\"); |
SuikaWiki::View->template ('links')->add_line (<<'EOH'); |
74 |
%anchor-wiki(rel=>view,up_to_date,class=>wiki-cmd,label=>\\\"%res(name=>ViewThisPage);\\\",title=>\\\"%res(name=>ViewThisPageLong);\\\"); |
%link-wiki(page=>"Wiki//News",rel=>News,class=>wiki,title=>"%res(name=>GoToWikiNewsLink);"p); |
75 |
%anchor-wiki(page=>CreatePage,class=>wiki,label=>\\\"%res(name=>GoToCreatePage);\\\",title=>\\\"%res(name=>GoToCreatePageLong);\\\"); |
%link-wiki(page=>"Wiki//Help",rel=>help,class=>wiki,title=>"%res(name=>GoToWikiHelpLink);"p); |
76 |
%anchor-wiki(page=>IndexPage,class=>wiki,label=>\\\"%res(name=>GoToIndexPage);\\\",title=>\\\"%res(name=>GoToIndexPageLong);\\\"); |
%link-wiki(page=>"Wiki//Page//License",rel=>copyright,class=>wiki,title=>"%res(name=>GoToWikiPageLicenseLink);"p); |
77 |
%anchor-wiki(page=>HomePage,class=>wiki,label=>\\\"%res(name=>GoToHomePage);\\\",title=>\\\"%res(name=>GoToHomePageLong);\\\"); |
EOH |
78 |
%anchor-wiki(page=>SearchPage,class=>wiki,label=>\\\"%res(name=>GoToSearchPage);\\\",title=>\\\"%res(name=>GoToSearchPageLong);\\\"); |
SuikaWiki::View->template ('navbar')->add_line (<<"EOH"); |
79 |
%anchor-wiki(mode=>RandomJump,up_to_date,rel=>lucky,class=>\\\"wiki randomlink\\\",label=>\\\"%res(name=>GoSomewhere);\\\",title=>\\\"%res(name=>GoSomewhereLong);\\\"); |
%anchor-wiki(mode=>edit,rel=>edit,class=>wiki-cmd,label=>"%res(name=>EditThisPage);"p,title=>"%res(name=>EditThisPageLong);"p,accesskey=>E); |
80 |
%anchor-wiki(page=>RecentChanges,class=>wiki,label=>\\\"%res(name=>GoToRecentChanges);\\\",title=>\\\"%res(name=>GoToRecentChangesLong);\\\"); |
%anchor-wiki(rel=>view,up_to_date,class=>wiki-cmd,label=>"%res(name=>ViewThisPage);"p,title=>"%res(name=>ViewThisPageLong);"p); |
81 |
EOH |
%anchor-wiki(page=>{$main::PageName{CreatePage}},class=>wiki,label=>"%res(name=>GoToCreatePage);"p,title=>"%res(name=>GoToCreatePageLong);"p); |
82 |
|
%anchor-wiki(page=>{$main::PageName{IndexPage}},class=>wiki,label=>"%res(name=>GoToIndexPage);"p,title=>"%res(name=>GoToIndexPageLong);"p); |
83 |
our %ViewDefinition = ( |
%anchor-wiki(page=>{$main::PageName{SearchPage}},class=>wiki,label=>"%res(name=>GoToSearchPage);"p,title=>"%res(name=>GoToSearchPageLong);"p); |
84 |
read => {media => {type => 'text/html', charset => 1, expires => 120}, check => sub {1}, |
%anchor-wiki(mode=>RandomJump,up-to-date,rel=>lucky,class=>"wiki randomlink",label=>"%res(name=>GoSomewhere);"p,title=>"%res(name=>GoSomewhereLong);"p); |
85 |
#xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 120}, |
%anchor-wiki(page=>{$main::PageName{RecentChanges}},class=>wiki,label=>"%res(name=>GoToRecentChanges);"p,title=>"%res(name=>GoToRecentChangesLong,safe);"p); |
86 |
template => <<EOH}, |
EOH |
87 |
%html-start;%html-head(title=>"%res(name=>\\"View:WebPageTitle\\");",link_meta=>"$vd{links}"); |
|
88 |
%section(level=>1,add_to_toc=>0,type=>body,title=>"%page-name;",heading,content=>" |
push @{$SuikaWiki::Plugin::On{Load}}, sub { |
89 |
%section(id=>tools1,class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
SuikaWiki::View->definition ('read')->property (template => <<'EOH'); |
90 |
%section(level=>2,id=>read,add_to_toc=>0,content=>\\"%read(comment);\\"); |
%html-document(title=>{%res(name=>{View:WebPageTitle});}p,link-meta=>{%predefined-template(name=>links);}p,content=>{ |
91 |
%section(level=>2,id=>\\"see-also\\",title=>SeeAlso,heading,content=>\\"%search-result;\\"); |
%section(level=>1,add-to-toc=>0,type=>body,title=>{%ns-short-page-name;}p,heading,content=>{ |
92 |
%section(level=>2,id=>referer,title=>Referer,heading,content=>\\"%referer-list;\\"); |
%section(id=>tools1,class=>tools,add-to-toc=>0,content=>{%predefined-template(name=>navbar);}p); |
93 |
%section(level=>2,id=>toc,title=>\\"TOC:Title\\",heading,add_to_toc=>0,content=>\\"%toc(drag);\\"); |
%section(level=>2,id=>read,add-to-toc=>0,content=>{ |
94 |
%section(id=>last-modified,add_to_toc=>0,content=>\\"%res(name=>\\\\\\"LastModified=\\\\\\");%last-modified;\\"); |
%if-calender(month,true=>{ |
95 |
%section(class=>tools,add_to_toc=>0,content=>\\\"$vd{navbar}\\\"); |
%format(context=>form_input,template=>{%calender;}); |
96 |
%section(id=>footer,add_to_toc=>0,content=>\\" |
},false=>{ |
97 |
<a href=\\\\\\"http://www.hyuki.com/yukiwiki/\\\\\\" title=\\\\\\"YukiWiki 2.0.beta1.2002-05-29 © 2000-2002 by Hiroshi Yuki\\\\\\">%res(name=>\\\\\\"About:Name:YukiWiki\\\\\\");</a> |
%if-calender(true=>{ |
98 |
<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> |
%format(context=>form_input,template=>{%calender-months;}); |
99 |
<a href=\\\\\\"http://suika.fam.cx/gate/cvs/wakaba/wiki/\\\\\\" title=\\\\\\"%res(name=>\\\\\\"About:SuikaWiki:JumpToCVS\\\\\\");\\\\\\">%res(name=>\\\\\\"About:Name:SuikaWiki\\\\\\"); %wiki-version;</a> |
}); |
100 |
\\"); |
}); |
101 |
%apply-user-preferred-style;");%html-end; |
%read(comment); |
102 |
EOH |
}p); |
103 |
map => {media => {type => 'text/html', charset => 1, expires => 120}, check => sub {1}, |
%section(level=>2,id=>children,title=>{%res(name=>{Children:Title});}p,heading, |
104 |
#xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 120}, |
content=>{%page-list(ns=>{%page-name;}p,recursive=>0,type=>both,template=>{%res(name=>{Children:Item});}p);}p); |
105 |
template => <<EOH}, |
%section(level=>2,id=>see-also,title=>{%res(name=>SeeAlso);}p,heading,content=>{%search-result;}p); |
106 |
%html-start;%html-head(title=>"%res(name=>\\"Map:WebPageTitle\\");",link_meta=>"$vd{links}"); |
%section(level=>2,id=>referer,title=>{%res(name=>Referer);}p,heading,content=>{%referer-list;}p); |
107 |
%section(level=>1,add_to_toc=>0,type=>body,title=>"%page-name;",heading,content=>" |
%section(level=>2,id=>toc,title=>{%res(name=>{TOC:Title});}p,heading,add_to_toc=>0,content=>{%toc(drag);}p); |
108 |
%section(id=>tools1,class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
%section(id=>last-modified,add_to_toc=>0,content=>{%res(name=>{LastModified=});%last-modified;}p); |
109 |
%section(level=>2,id=>\\"link-map\\",title=>\\"Map:Title\\",heading,content=>\\" |
%section(class=>tools,add_to_toc=>0,content=>{%predefined-template(name=>navbar);}p); |
110 |
<p>%res(name=>\\\\\\"Map:Description\\\\\\");</p> |
%section(id=>footer,add-to-toc=>0,content=>{%predefined-template(name=>footer);}p); |
111 |
%link-map; |
}p); |
112 |
\\"); |
}p);%log-hotness; |
113 |
%section(level=>2,id=>\\"see-also\\",title=>SeeAlso,heading,content=>\\"%search-result;\\"); |
EOH |
114 |
%section(level=>2,id=>referer,title=>Referer,heading,content=>\\"%referer-list;\\"); |
SuikaWiki::View->definition ('-wrote')->property (template => SuikaWiki::View->definition ('-wrote')->property ('template').q(%log-hotness(weight=>2);)); |
115 |
%section(level=>2,id=>toc,title=>\\"TOC:Title\\",heading,add_to_toc=>0,content=>\\"%toc(drag);\\"); |
SuikaWiki::View->definition ('WithMenu')->property (template => SuikaWiki::View->definition ('WithMenu')->property ('template').q(%log-hotness;)); |
116 |
%section(class=>tools,add_to_toc=>0,content=>\\\"$vd{navbar}\\\"); |
}; |
117 |
%section(id=>footer,add_to_toc=>0,content=>\\"%res(name=>\\\\\\"About:Name:SuikaWiki\\\\\\"); %wiki-version;\\"); |
|
118 |
%apply-user-preferred-style;");%html-end; |
=head1 NAME |
119 |
EOH |
|
120 |
|
suikawiki-config.ph --- SuikaWiki: site configuration script |
121 |
edit => {media => {type => 'text/html', charset => 1, expires => 60}, check => sub {1}, |
|
122 |
#xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 60}, |
=head1 LICENSE |
|
template => <<EOH}, |
|
|
%html-start;%html-head(title=>"%res(name=>\\"Edit:WebPageTitle\\");",link_meta=>"$vd{links} %html-meta(name=>ROBOTS,content=>NOINDEX);"); |
|
|
%section(level=>1,add_to_toc=>0,type=>body,title=>"%page-name;",heading,content=>" |
|
|
%section(id=>tools1,class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
|
|
%section(level=>2,id=>edit,title=>\\"Edit:Title\\",heading,content=>\\" |
|
|
%edit-form; |
|
|
%section(level=>3,id=>edit-help,add_to_toc=>0,content=>\\\\\\"%read(page=>WikiEditHelp);\\\\\\"); |
|
|
\\"); |
|
|
%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(id=>last-modified,add_to_toc=>0,content=>\\"%res(name=>\\\\\\"LastModified=\\\\\\");%last-modified;\\"); |
|
|
%section(class=>tools,add_to_toc=>0,content=>\\\"$vd{navbar}\\\"); |
|
|
%section(id=>footer,add_to_toc=>0,content=>\\"%res(name=>\\\\\\"About:Name:SuikaWiki\\\\\\"); %wiki-version;\\"); |
|
|
%apply-user-preferred-style;");%html-end; |
|
|
EOH |
|
|
adminedit => {media => {type => 'text/html', charset => 1, expires => 60}, check => sub {1}, |
|
|
xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 60}, |
|
|
template => <<EOH}, |
|
|
%html-start;%html-head(title=>"%res(name=>\\"Edit:Admin:WebPageTitle\\");",link_meta=>"$vd{links} %html-meta(name=>ROBOTS,content=>NOINDEX);"); |
|
|
%section(level=>1,add_to_toc=>0,type=>body,title=>"%page-name;",heading,content=>" |
|
|
%section(id=>tools1,class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
|
|
%section(level=>2,id=>edit,title=>\\"Edit:Title\\",heading,content=>\\"%edit-form(admin);\\"); |
|
|
%section(level=>2,id=>toc,title=>\\"TOC:Title\\",heading,add_to_toc=>0,content=>\\"%toc(drag);\\"); |
|
|
%section(id=>last-modified,add_to_toc=>0,content=>\\"%res(name=>\\\\\\"LastModified=\\\\\\");%last-modified;\\"); |
|
|
%section(id=>footer,add_to_toc=>0,content=>\\"%res(name=>\\\\\\"About:Name:SuikaWiki\\\\\\"); %wiki-version;\\"); |
|
|
%apply-user-preferred-style;");%html-end; |
|
|
EOH |
|
|
-conflict => {media => {type => 'text/html', charset => 1, expires => 60}, check => sub {1}, |
|
|
#xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 60}, |
|
|
template => <<EOH}, |
|
|
%html-start;%html-head(title=>"%res(name=>\\"Edit:Conflict:WebPageTitle\\");",link_meta=>"$vd{links} %html-meta(name=>ROBOTS,content=>NOINDEX);"); |
|
|
%section(level=>1,add_to_toc=>0,type=>body,title=>"%page-name;",heading,content=>" |
|
|
%section(id=>tools1,class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
|
|
%section(level=>2,id=>edit-conflict,title=>\\"Edit:Conflict:Title\\",heading,content=>\\" |
|
|
<p>%res(name=>\\\\\\"Edit:Conflict:Description\\\\\\");</p> |
|
|
%conflict-form; |
|
|
%section(level=>3,id=>edit-conflict-diff,title=>\\\\\\"Edit:Conflict:Diff:Title\\\\\\",heading,content=>\\\\\\" |
|
|
<p>%res(name=>\\\\\\\\\\\\\\"Edit:Conflict:Diff:Description\\\\\\\\\\\\\\");</p> |
|
|
%conflict-diff; |
|
|
\\\\\\"); |
|
|
\\"); |
|
|
%section(level=>2,id=>edit,title=>\\"Edit:Title\\",heading,content=>\\" |
|
|
<p>%res(name=>\\\\\\"Edit:Conflict:Edit:Description\\\\\\");</p> |
|
|
%edit-form; |
|
|
%section(level=>3,id=>edit-help,add_to_toc=>0,content=>\\\\\\"%read(page=>WikiEditHelp);\\\\\\"); |
|
|
\\"); |
|
|
%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}\\\"); |
|
|
%section(id=>footer,add_to_toc=>0,content=>\\"%res(name=>\\\\\\"About:Name:SuikaWiki\\\\\\"); %wiki-version;\\"); |
|
|
%apply-user-preferred-style;");%html-end; |
|
|
EOH |
|
|
-wrote => {media => {type => 'text/html', charset => 1, expires => 60}, check => sub {1}, |
|
|
xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 60}, |
|
|
template => <<EOH}, |
|
|
%html-start;%html-head(title=>"%res(name=>\\"Edit:Wrote:WebPageTitle\\");",link_meta=>"$vd{links} %html-meta(name=>ROBOTS,content=>NOINDEX);"); |
|
|
%section(level=>1,add_to_toc=>0,type=>body,title=>"%page-name;",heading,content=>" |
|
|
%section(id=>tools1,class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
|
|
<p>%res(name=>\\"Edit:SavedSuccessfully\\");</p> |
|
|
%section(id=>footer,add_to_toc=>0,content=>\\"%res(name=>\\\\\\"About:Name:SuikaWiki\\\\\\"); %wiki-version;\\"); |
|
|
%apply-user-preferred-style;");%html-end; |
|
|
EOH |
|
|
-deleted => {media => {type => 'text/html', charset => 1, expires => 60}, check => sub {1}, |
|
|
xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 60}, |
|
|
template => <<EOH}, |
|
|
%html-start;%html-head(title=>"%res(name=>\\"Edit:Deleted:WebPageTitle\\");",link_meta=>"$vd{links} %html-meta(name=>ROBOTS,content=>NOINDEX);"); |
|
|
%section(level=>1,add_to_toc=>0,type=>body,title=>"%page-name;",heading,content=>" |
|
|
%section(id=>tools1,class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
|
|
<p>%res(name=>\\"Edit:PageIsDeletedSuccessfully\\");</p> |
|
|
%section(id=>footer,add_to_toc=>0,content=>\\"%res(name=>\\\\\\"About:Name:SuikaWiki\\\\\\"); %wiki-version;\\"); |
|
|
%apply-user-preferred-style;");%html-end; |
|
|
EOH |
|
|
-error => {media => {type => 'text/html', charset => 1, expires => 60}, check => sub {1}, |
|
|
xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 60}, |
|
|
template => <<EOH}, |
|
|
%html-start;%html-head(title=>"%res(name=>\\"Error:WebPageTitle\\");",link_meta=>"$vd{links} %html-meta(name=>ROBOTS,content=>NOINDEX);"); |
|
|
%section(level=>1,add_to_toc=>0,type=>body,title=>"%page-name;",heading,content=>" |
|
|
%section(id=>tools1,class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
|
|
%section(level=>2,id=>error,title=>\\"Error:Title\\",heading,content=>\\" |
|
|
<p>%error-message;</p> |
|
|
\\"); |
|
|
%section(level=>2,id=>toc,title=>\\"TOC:Title\\",heading,add_to_toc=>0,content=>\\"%toc(drag);\\"); |
|
|
%section(id=>footer,add_to_toc=>0,content=>\\"%res(name=>\\\\\\"About:Name:SuikaWiki\\\\\\"); %wiki-version;\\"); |
|
|
%apply-user-preferred-style;");%html-end; |
|
|
EOH |
|
|
|
|
|
css => {media => {type => 'text/css', charset => 1, expires => 3600}, |
|
|
check => sub { ref $_[0]->format_converter ($_[0]->{magic} => 'CSS') ? 1 : 0 }, |
|
|
template => '%read(to=>CSS);'}, |
|
|
rss => {media => {type => 'application/rss+xml', charset => 1, expires => 3600}, |
|
|
check => sub { ref $_[0]->format_converter ($_[0]->{magic} => 'RSS') ? 1 : 0 }, |
|
|
template => '%read(to=>RSS);'}, |
|
|
-UnsupportedMediaType => {media => {type => 'text/html', charset => 1, expires => -1}, |
|
|
xmedia => {type => 'application/xhtml+xml', charset => 1, expires => -1}, |
|
|
check => sub {1}, template => <<EOH}, |
|
|
%html-start;%html-head(title=>"%page-name;",link_meta=>"$vd{links}"); |
|
|
%section(level=>1,add_to_toc=>0,type=>body,title=>"%page-name;",heading,content=>" |
|
|
%section(id=>tools1,class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
|
|
%section(level=>2,title=>\\"UnsupportedMediaType:Title\\",heading,content=>\\" |
|
|
%res(name=>\\\\\\"UnsupportedMediaType:Description\\\\\\"); |
|
|
\\"); |
|
|
%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}\\"); |
|
|
%section(id=>footer,add_to_toc=>0,content=>\\"%res(name=>\\\\\\"About:Name:SuikaWiki\\\\\\"); %wiki-version;\\"); |
|
|
%apply-user-preferred-style;");%html-end; |
|
|
EOH |
|
|
); |
|
123 |
|
|
124 |
|
Copyright 2003 Wakaba <w@suika.fam.cx> |
125 |
|
|
126 |
$ViewDefinition{diff} = {media => {type => 'text/html', charset => 1, expires => 120}, |
This program is free software; you can redistribute it and/or |
127 |
#xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 120}, |
modify it under the same terms as Perl itself. |
|
template => <<EOH, check => sub {1}} if $wiki::diff::UseDiff; |
|
|
%html-start;%html-head(title=>"%res(name=>\\"Diff:WebPageTitle\\");",link_meta=>"$vd{links}"); |
|
|
%section(level=>1,add_to_toc=>0,type=>body,title=>"%page-name;",heading,content=>" |
|
|
%section(id=>tools1,class=>tools,add_to_toc=>0,content=>\\"$vd{navbar}\\"); |
|
|
%section(level=>2,id=>\\"diff\\",title=>\\"Diff:Title\\",heading,content=>\\" |
|
|
<p>%res(name=>\\\\\\"Diff:Notice\\\\\\");</p> |
|
|
%diff-between-previous; |
|
|
\\"); |
|
|
%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}\\\"); |
|
|
%section(id=>footer,add_to_toc=>0,content=>\\"%res(name=>\\\\\\"About:Name:SuikaWiki\\\\\\"); %wiki-version;\\"); |
|
|
%apply-user-preferred-style;");%html-end; |
|
|
EOH |
|
128 |
|
|
129 |
$ViewDefinition{WithMenu} = {%{$ViewDefinition{read}}, template => <<EOH}; |
=cut |
|
%html-start;%html-head(title=>"%res(name=>\\"View:WebPageTitle\\");",link_meta=>"$vd{links}"); |
|
|
%section(level=>1,add_to_toc=>0,type=>body,title=>"%page-name;",heading,content=>" |
|
|
<div id=\\\"myuri\\\">%uri-wiki();</div> |
|
|
%section(id=>tools1,class=>tools,add_to_toc=>0,content=>\\" |
|
|
%anchor-wiki(rel=>view,up_to_date,mode=>default,class=>wiki-cmd,label=>\\\\\\"%res(name=>ReloadThisPage);\\\\\\",title=>\\\\\\"%res(name=>ReloadThisPageLong);\\\\\\"); |
|
|
$vd{navbar} |
|
|
\\"); |
|
|
%section(level=>2,id=>side-menu,add_to_toc=>0,content=>\\"%read(page=>WikiMenuBar);\\"); |
|
|
%section(id=>content-frame,add_to_toc=>0,content=>\\" |
|
|
%section(level=>2,id=>read,add_to_toc=>0,content=>\\\\\\"%read(comment);\\\\\\"); |
|
|
%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(id=>last-modified,add_to_toc=>0,content=>\\\\\\"%res(name=>\\\\\\\\\\\\\\"LastModified=\\\\\\\\\\\\\\");%last-modified;\\\\\\"); |
|
|
%section(id=>footer,add_to_toc=>0,content=>\\\\\\" |
|
|
<a href=\\\\\\\\\\\\\\"http://www.hyuki.com/yukiwiki/\\\\\\\\\\\\\\" title=\\\\\\\\\\\\\\"YukiWiki 2.0.beta1.2002-05-29 © 2000-2002 by Hiroshi Yuki\\\\\\\\\\\\\\">%res(name=>\\\\\\\\\\\\\\"About:Name:YukiWiki\\\\\\\\\\\\\\");</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> |
|
|
<a href=\\\\\\\\\\\\\\"http://suika.fam.cx/gate/cvs/wakaba/wiki/\\\\\\\\\\\\\\" title=\\\\\\\\\\\\\\"%res(name=>\\\\\\\\\\\\\\"About:SuikaWiki:JumpToCVS\\\\\\\\\\\\\\");\\\\\\\\\\\\\\">%res(name=>\\\\\\\\\\\\\\"About:Name:SuikaWiki\\\\\\\\\\\\\\"); %wiki-version;</a> |
|
|
\\\\\\"); |
|
|
\\"); |
|
|
%apply-user-preferred-style;");%html-end; |
|
|
EOH |
|
130 |
|
|
131 |
1; |
1; # $Date$ |