--- suikawiki/script/wiki.cgi 2002/09/28 10:54:27 1.26 +++ suikawiki/script/wiki.cgi 2002/10/07 12:50:51 1.27 @@ -70,9 +70,9 @@ # my $modifier_sendmail = '/usr/sbin/sendmail -t -n'; # Your sendmail. my $modifier_sendmail = ''; # If you don't need mail notification. my $modifier_dir_data = './wikidata'; # Your data directory. -my $modifier_rss_title = "WalWiki $walversion"; +my $modifier_rss_title = "SuikaWiki $walversion"; my $modifier_rss_link = 'http://suika.fam.cx/~wakaba/-temp/wiki2/wiki'; # Blank is not allowed. -my $modifier_rss_description = 'This is WalWiki, yet another Wiki clone based on YukiWiki'; +my $modifier_rss_description = 'This is SuikaWiki'; ############################## # # You MAY modify following variables. @@ -205,12 +205,18 @@ } sub do_read { - &print_header($form{mypage}); my $content = $database{$form{mypage}}; + my $lm = &get_info($form{mypage}, $info_LastModified); + &print_header($form{mypage}, -last_modified => $lm); + wiki::referer::add ($form{mypage}, $ENV{HTTP_REFERER}); my $cf = 'SuikaWiki/0.9'; - $cf = $1 if $content =~ s#^(?:/\*\s*|\#\?)?([A-Z][A-Za-z0-9-]+/[0-9.]+(?:\s[^\x0D\x0A]+)?)[\x0D\x0A]+##s; + ## Should be support at least: + ## - 'SuikaWiki/0.9' CRLF + ## - 'H2H/' ("0.9" / "1.0" / "1.1") CRLF + ## - "/*" WSP* 'W3C-CSS/' ("1.0" / "2.0") "*/" CRLF + $cf = $1 if $content =~ s#^(?:/\*\s*|\#\?)?([A-Z][A-Za-z0-9-]+/[0-9.]+(?:[^0-9.][^\x0D\x0A]*)?)[\x0D\x0A]+##s; if ($cf =~ m#^SuikaWiki/0.9(?:$|\s)#) { - &print_content($content, $cf); + &print_content($content, content_format => $cf, last_modified => $lm); print &text_to_html (q([[#comment]])); } else { print "
@{[&escape($content)]}"; @@ -220,7 +226,11 @@ print q{