/[pub]/suikawiki/wikidata/suikawiki-config.ph
Suika

Diff of /suikawiki/wikidata/suikawiki-config.ph

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

revision 1.4 by w, Sun Jan 26 02:39:48 2003 UTC revision 1.5 by wakaba, Thu Mar 27 07:29:20 2003 UTC
# Line 10  our $modifier_dbtype = 'Yuki::YukiWikiDB Line 10  our $modifier_dbtype = 'Yuki::YukiWikiDB
10  our $url_cgi; {  our $url_cgi; {
11      my $scheme = 'http';      my $scheme = 'http';
12      $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+.%-]+)#;
13      $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}/temp/suikawiki/wiki";
14          ## - MUST NOT include [&<>"] and/or non-URI characters          ## - MUST NOT include [&<>"] and/or non-URI characters
15  }  }
16  our %uri = (  our %uri = (
17    cookie_path   => '/~wakaba/suikawiki/',    cookie_path   => '/temp/suikawiki/',
18    external_script       => '../wiki/script/',    external_script       => '../wiki/script/',
19  );  );
20  $uri{wiki} = $url_cgi;  $uri{wiki} = $url_cgi;
21    use lib qw!../wiki/lib!;
22  $SuikaWiki::Plugin::plugin_directory = q(../wiki/lib/SuikaWiki/Plugin/);  $SuikaWiki::Plugin::plugin_directory = q(../wiki/lib/SuikaWiki/Plugin/);
23  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)
24    CachePrefix   => q(./wikidata/.cache.),    CachePrefix   => q(./wikidata/.cache.),
# Line 55  $vd{links} = <<'EOH'; Line 56  $vd{links} = <<'EOH';
56    %link-wiki(page=>SearchPage,rel=>search,class=>wiki,title=>\"%res(name=>GoToSearchPageLink);\");    %link-wiki(page=>SearchPage,rel=>search,class=>wiki,title=>\"%res(name=>GoToSearchPageLink);\");
57    %link-wiki(page=>WikiHelp,mode=>read,rel=>help,class=>wiki,title=>\"%res(name=>GoToWikiHelpLink);\");    %link-wiki(page=>WikiHelp,mode=>read,rel=>help,class=>wiki,title=>\"%res(name=>GoToWikiHelpLink);\");
58    %link-wiki(page=>WikiPageLicense,rel=>copyright,class=>wiki,title=>\"%res(name=>GoToWikiPageLicenseLink);\");    %link-wiki(page=>WikiPageLicense,rel=>copyright,class=>wiki,title=>\"%res(name=>GoToWikiPageLicenseLink);\");
59    %link-wiki(mode=>map,rel=>contents,class=>wiki-cmd,title=>\"%res(name=>ShowMapOfThisPageLink);\");    %link-wiki(mode=>map,rel=>sitemap,class=>wiki-cmd,title=>\"%res(name=>ShowMapOfThisPageLink);\");
60    %link-wiki(mode=>RandomJump,up_to_date,rel=>lucky,class=>\"wiki randomlink\",title=>\"%res(name=>GoSomewhereLink);\");    %link-wiki(mode=>RandomJump,up_to_date,rel=>lucky,class=>\"wiki randomlink\",title=>\"%res(name=>GoSomewhereLink);\");
61      %link-wiki(page=>WikiMenuBar,mode=>mininav,rel=>\"sidebar navigator\",class=>wiki);
62      %link-favicon(use_page_icon);
63  EOH  EOH
64    #%link-viewcvs(href=>\"http://path-to-viewcvs/path-to-repository/\",rel=>history,class=>wiki-cmd,title=>\"%res(name=>ViewHistoryOfThisPageLink);\",hreflang=>en);    #%link-viewcvs(href=>\"http://path-to-viewcvs/path-to-repository/\",rel=>history,class=>wiki-cmd,title=>\"%res(name=>ViewHistoryOfThisPageLink);\",hreflang=>en);
65  $vd{links} .= q(  %link-wiki(mode=>diff,rel=>history,class=>wiki-cmd,title=>\"%res(name=>ViewDiffOfThisPageLink);\");) if $wiki::diff::UseDiff;  $vd{links} .= q(  %link-wiki(mode=>diff,rel=>history,class=>wiki-cmd,title=>\"%res(name=>ViewDiffOfThisPageLink);\");) if $wiki::diff::UseDiff;
# Line 94  read => {media => {type => 'text/html', Line 97  read => {media => {type => 'text/html',
97      <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>
98    \\");    \\");
99  %apply-user-preferred-style;");%html-end;  %apply-user-preferred-style;");%html-end;
100    %log-hotness();
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},
# Line 178  EOH Line 182  EOH
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  %apply-user-preferred-style;");%html-end;  %apply-user-preferred-style;");%html-end;
185    %log-hotness(weight=>2);
186  EOH  EOH
187  -deleted => {media => {type => 'text/html', charset => 1, expires => 60}, check => sub {1},  -deleted => {media => {type => 'text/html', charset => 1, expires => 60}, check => sub {1},
188    xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 60},    xmedia => {type => 'application/xhtml+xml', charset => 1, expires => 60},
# Line 206  EOH Line 211  EOH
211  css => {media => {type => 'text/css', charset => 1, expires => 3600},  css => {media => {type => 'text/css', charset => 1, expires => 3600},
212    check => sub { ref $_[0]->format_converter ($_[0]->{magic} => 'CSS') ? 1 : 0 },    check => sub { ref $_[0]->format_converter ($_[0]->{magic} => 'CSS') ? 1 : 0 },
213    template => '%read(to=>CSS);'},    template => '%read(to=>CSS);'},
214    image_jpeg => {media => {type => 'image/jpeg', expires => 240*3600},
215      check => sub { ref ($_[0]->format_converter ($_[0]->{magic} => 'image_jpeg'))
216                     && $_[0]->{magic} =~ m#image-type="image/jpeg"# ? 1 : 0 },
217      template => '%read(to=>image_jpeg);'},
218    image_png => {media => {type => 'image/png', expires => 240*3600},
219      check => sub { ref ($_[0]->format_converter ($_[0]->{magic} => 'image_png'))
220                     && $_[0]->{magic} =~ m#image-type="image/png"# ? 1 : 0 },
221      template => '%read(to=>image_png);'},
222  rss => {media => {type => 'application/rss+xml', charset => 1, expires => 3600},  rss => {media => {type => 'application/rss+xml', charset => 1, expires => 3600},
223    check => sub { ref $_[0]->format_converter ($_[0]->{magic} => 'RSS') ? 1 : 0 },    check => sub { ref $_[0]->format_converter ($_[0]->{magic} => 'RSS') ? 1 : 0 },
224    template => '%read(to=>RSS);'},    template => '<?xml version="1.0"?>%styles-wiki-xml(page=>"WikiStyleList:RSS");%read(to=>RSS);'},
225  -UnsupportedMediaType => {media => {type => 'text/html', charset => 1, expires => -1},  -UnsupportedMediaType => {media => {type => 'text/html', charset => 1, expires => -1},
226    xmedia => {type => 'application/xhtml+xml', charset => 1, expires => -1},    xmedia => {type => 'application/xhtml+xml', charset => 1, expires => -1},
227    check => sub {1}, template => <<EOH},    check => sub {1}, template => <<EOH},
# Line 246  EOH Line 259  EOH
259    
260  $ViewDefinition{WithMenu} = {%{$ViewDefinition{read}}, template => <<EOH};  $ViewDefinition{WithMenu} = {%{$ViewDefinition{read}}, template => <<EOH};
261  %html-start;%html-head(title=>"%res(name=>\\"View:WebPageTitle\\");",link_meta=>"$vd{links}");  %html-start;%html-head(title=>"%res(name=>\\"View:WebPageTitle\\");",link_meta=>"$vd{links}");
262    %log-hotness;
263  %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=>"
264    <div id=\\\"myuri\\\">%uri-wiki();</div>    <div id=\\\"myuri\\\">%img-favicon(use_page_icon);%uri-wiki();</div>
265    %section(id=>tools1,class=>tools,add_to_toc=>0,content=>\\"    %section(id=>tools1,class=>tools,add_to_toc=>0,content=>\\"
266      %anchor-wiki(rel=>view,up_to_date,mode=>default,class=>wiki-cmd,label=>\\\\\\"%res(name=>ReloadThisPage);\\\\\\",title=>\\\\\\"%res(name=>ReloadThisPageLong);\\\\\\");      %anchor-wiki(rel=>view,up_to_date,mode=>default,class=>wiki-cmd,label=>\\\\\\"%res(name=>ReloadThisPage);\\\\\\",title=>\\\\\\"%res(name=>ReloadThisPageLong);\\\\\\");
267      $vd{navbar}      $vd{navbar}
# Line 267  $ViewDefinition{WithMenu} = {%{$ViewDefi Line 281  $ViewDefinition{WithMenu} = {%{$ViewDefi
281    \\");    \\");
282  %apply-user-preferred-style;");%html-end;  %apply-user-preferred-style;");%html-end;
283  EOH  EOH
284    $ViewDefinition{mininav} = {%{$ViewDefinition{read}}, template => <<EOH};
285    %html-start;%html-head(title=>"%res(name=>\\"View:WebPageTitle\\");",link_meta=>"$vd{links}");
286    %section(level=>1,add_to_toc=>0,type=>body,content=>"
287      %section(level=>2,id=>side-menu,class=>\\"mininav\\",add_to_toc=>0,content=>\\"
288        %read;
289        %anchor-wiki(rel=>view,mode=>mininav,class=>wiki-cmd,target=>_self,label=>\\\\\\"%res(name=>ReloadThisPage);\\\\\\",title=>\\\\\\"%res(name=>ReloadThisPageLong);\\\\\\");
290      \\");
291    %apply-user-preferred-style;");%html-end;
292    EOH
293    
294  1;  1;

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

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24