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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.5

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24