/[pub]/suikawiki/script/wiki.cgi
Suika

Diff of /suikawiki/script/wiki.cgi

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

revision 1.1.1.1 by wakaba, Sun Jun 2 04:26:22 2002 UTC revision 1.8 by wakaba, Sun Mar 24 00:51:52 2002 UTC
# Line 1  Line 1 
1  #!/usr/local/bin/perl  #!/usr/bin/perl
2  #!perl  use lib "../lib";
3    use CGI::Carp 'fatalsToBrowser';
4    use Algorithm::Diff qw(traverse_sequences);
5    # use strict;
6  #  #
7  # wiki.cgi - This is YukiWiki, yet another Wiki clone.  # yukiwiki.cgi - Yet another WikiWikiWeb clone.
8  #  #
9  # Copyright (C) 2000-2002 by Hiroshi Yuki.  # Copyright (C) 2000,2001 by Hiroshi Yuki.
10  # <hyuki@hyuki.com>  # <hyuki@hyuki.com>
11  # http://www.hyuki.com/yukiwiki/  # http://www.hyuki.com/yukiwiki/
12  #  #
13  # This program is free software; you can redistribute it and/or  # This program is free software; you can redistribute it and/or modify
14  # modify it under the same terms as Perl itself.  # it under the terms of the GNU General Public License as published by
15    # the Free Software Foundation; either version 2 of the License, or
16    # (at your option) any later version.
17  #  #
18  ##############################  # This program is distributed in the hope that it will be useful,
19  #  # but WITHOUT ANY WARRANTY; without even the implied warranty of
20  # walwiki.cgi based on yukiwiki.cgi - Yet another WikiWikiWeb clone.  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21  #  # GNU General Public License for more details.
 # WalWikiの現バージョンは、YukiWiki 2.0.beta1をベースにしています。  
 #  
 # * 更新内容  
 #  
 # 2.0.beta1.wal.1 on 2002/05/19,22:32:19  
 # (1) Footerの変更  
 # (2) WikiNameの拡張 : PerlCEも包含、PPMInstallは含まない  
 # (3) 別名リンク([別名 URL])に対応。  
 # (4) ISBNをアマゾン.jpのAsociateプログラムリンクに変換。  
 # (5) [[#box:InterWikiName]]でInterWikiなテキストボックス生成  
 # (6) HTMLモード対応。  
22  #  #
23  # 旧2.0.alpha0.wal.3版までの修正の内、以下に変更があります。  # $Id$
 # ・以下はYukiWiki2に実装されたため、独自コードはなくなりました。  
 #   - インラインの画像変換  
 #   - YukiWikiDB対応  
 #   - テーブル  
 #   - DB関連モジュールuseのeval化  
 #   - BracketNameによるキーからブラケットを排除  
 # ・ISBN番号への対応はWalWiki2.0より、InterWikiへのAdd-Onになりました。  
 #   [[ISBN http://www.amazon.co.jp/exec/obidos/ASIN/isbn($1)/walrdigi-22]]のように登録。  
 #  
 #=======================================  
   
 # Walrus add (debug) start  
 my $walrus_log;  
 my $walrus_debugging = 0;  
 # Walrus add (debug) end  
   
 # Libraries.  
 use strict;  
 use lib qw(./WalWiki/lib);  
 use CGI qw(:standard);  
 use CGI::Carp qw(fatalsToBrowser);  
 use Yuki::RSS;  
 use Yuki::DiffText qw(difftext);  
 use Yuki::YukiWikiDB;  
 use AnyDBM_File;  
 require 'jcode.pl';  
 # use Jcode;  
 use Fcntl;  
 my $version = '2.0.beta1.2002-05-29';  
24  ##############################  ##############################
25  #  my $version = "1.6.6";
 # You MUST modify following '$modifier_...' variables.  
 #  
 my $modifier_mail = ''; # Your mail address, like 'walrus@digit.que.ne.jp'.  
 my $modifier_url  = ''; # Your web page, like 'http://digit.que.ne.jp/work/'.  
 my $modifier_name = ''; # Your name, like 'Makio Tsukamoto'.  
 # my $modifier_dbtype = 'AnyDBM_File';  # Fast, not available on some server, page size limited.  
 # my $modifier_dbtype = 'dbmopen';      # Fast, not available on some server, page size limited.  
 my $modifier_dbtype = 'YukiWikiDB';     # Slow, available on all environment.  
 # my $modifier_sendmail = '/usr/sbin/sendmail -t -n'; # Your sendmail.  
 my $modifier_sendmail = ''; # If you don't need mail notification.  
 my $modifier_dir_data = './WalWiki'; # Your data directory.  
 my $modifier_rss_title = "WalWiki $walversion";  
 my $modifier_rss_link = 'http://yourhost/wiki.cgi'; # Blank is not allowed.  
 my $modifier_rss_description = 'This is WalWiki, yet another Wiki clone based on YukiWiki';  
26  ##############################  ##############################
27  #  # テアニネ・ニ・ケ・ネ、ホ、ネ、ュ、ヒ、マ 1 、ヒ、ケ、。」
28  # You MAY modify following variables.  my $testing = 0;
29  #  ##############################
30  my $file_touch = "$modifier_dir_data/touched.txt";  # エチサ・鬣、・ヨ・鬣
31  my $file_resource = "$modifier_dir_data/resource.txt";  my $jcodelib = 'jcode.pl';
32  my $file_FrontPage = "$modifier_dir_data/frontpage.txt";  ##############################
33  my $file_conflict = "$modifier_dir_data/conflict.txt";  # ハンツク。ヲノスシィ、ホエチサ・ウ。シ・ノ
34  my $file_format = "$modifier_dir_data/format.txt";  my $kanjicode = 'euc';     # 'sjis' 'euc'
35  my $url_cgi = 'wiki.cgi';  my $charset = 'euc-jisx0213';  # 'Shift_JIS' 'EUC-JP'
36  my $url_stylesheet = './WalWiki/Theme/wiki.css';  ##############################
37  my $icontag = '<img src="./WalWiki/Theme/icon.gif" alt="*" width="40" height="40" />';  # dbmopen、ャサネ、ィ、、ハ、1。「サネ、ィ、ハ、、、ハ、0
38  my $maxrecent = 50;  my $dbmopen = 0;
39    ##############################
40    # ・ヌ。シ・ソ・ル。シ・ケフセ。ハ.pag, .dir, .db、ハ、ノ、マノヤヘラ。ヒ
41    # $dbmopen = 1、ホ、ネ、ュ、マ・ヌ。シ・ソ・ル。シ・ケフセ。「
42    # $dbmopen = 0、ホ、ネ、ュ、マ・ヌ・」・・ッ・ネ・フセ、ヒ、ハ、。」
43    my $dbname = './wikidata';
44    my $diffdbname = './wikidiff';
45    ##############################
46    # ス、タオシヤ、ホサ睥セ。ハシォヘウ、ヒハムケケ、キ、ニ、ッ、タ、オ、、。ヒ
47    my $modifier = 'suika';
48    ##############################
49    # ス、タオシヤ、ホWeb・レ。シ・ク。ハシォヘウ、ヒハムケケ、キ、ニ、ッ、タ、オ、、。ヒ
50    my $modifierlink = 'http://suika.fam.cx/';
51    ##############################
52    # 、ウ、ホ・レ。シ・ク、ホURL
53    my $thisurl = 'wiki';
54    ##############################
55    # ウォサマ・レ。シ・クフセ
56    my $toppage = 'HomePage';
57    ##############################
58    # コヌスェケケソキ・レ。シ・クフセ
59    my $whatsnew = 'RecentChanges';
60    ##############################
61    # コヌスェケケソキ、ヒキヌコワ、ケ、・レ。シ・クソ
62    my $maxnew = 50;
63    ##############################
64    # ・「・、・ウ・・ユ・。・、・フセ。ハ・ォ・鬘シネヌ。ヒ
65    my $iconfile = '';
66    ##############################
67    # ・「・、・ウ・・ユ・。・、・フセ。ハ・筵ホ・ッ・ネヌ。ヒ
68    # my $iconfile = '';
69    ##############################
70    # ・レ。シ・ク、ハムケケ、キ、ソ、ネ、ュ、ヒtouch、ケ、・ユ・。・、・。ハ''、ハ、魎ソ、筅キ、ハ、、。ヒ
71    my $touchfile = 'touch.txt';
72    ##############################
73    # ・ラ・・モ・蝪シヘム、ホヌリキハソァ
74    my $preview_color = '#FFCCCC';
75    ##############################
76    # チエ・レ。シ・ク、ホ・ケ・ソ・、・
77    my $style = <<'EOD';
78    pre, dl, ul, ol, p, blockquote { line-height:120%; }
79    a { text-decoration: none; }
80    a:link { color: #0000FF; background-color: #FFFFFF; }
81    a:visited { color: #9900CC; background-color: #FFFFFF; }
82    a:hover { text-decoration: underline; }
83    EOD
84    ##############################
85    # ・ニ・ュ・ケ・ネニホマノハャ、ホツ遉ュ、オ
86  my $cols = 80;  my $cols = 80;
87  my $rows = 20;  my $rows = 20;
88  ##############################  ##############################
89  #  my %form = ();
90  # You MAY, but do NOT NEED modify following variables.  my %database = ();
91  #  my %diffbase = ();
92  my $dataname = "$modifier_dir_data/wiki";  my $diff_text = '';
93  my $infoname = "$modifier_dir_data/info";  my @diff_added = ();
94  my $diffname = "$modifier_dir_data/diff";  my @diff_deleted = ();
95  my $editchar = '?';  my $msgrefA;
96  my $subject_delimiter = ' - ';  my $msgrefB;
 my $use_autoimg = 1; # automatically convert image URL into <img> tag.  
 my $use_exists = 0; # If you can use 'exists' method for your DB.  
 ##############################  
 my $InterWikiName = 'InterWikiName';  
 my $RecentChanges = 'RecentChanges';  
 my $AdminChangePassword = 'AdminChangePassword';  
 my $CompletedSuccessfully = 'CompletedSuccessfully';  
 my $FrontPage = 'FrontPage';  
 my $IndexPage = 'IndexPage';  
 my $SearchPage = 'SearchPage';  
 my $CreatePage = 'CreatePage';  
 my $ErrorPage = 'ErrorPage';  
 my $RssPage = 'RssPage';  
 my $AdminSpecialPage = 'Admin Special Page'; # must include spaces.  
 ##############################  
 # my $wiki_name = '\b([A-Z][a-z]+([A-Z][a-z]+)+)\b';        # Walrus del (2)  
 my $wiki_name   = '\b([A-Z][a-z]+([A-Z][a-z]*)+)\b';        # Walrus add (2)  
 my $bracket_name = '\[\[(\S+?)\]\]';  
 my $embedded_name = '\[\[(#\S+?)\]\]';  
 my $interwiki_definition = '\[\[(\S+?)\ (\S+?)\]\]';  
 my $interwiki_name = '([^:]+):([^:].*)';  
 ##############################  
 my $embed_comment = '[[#comment]]';  
 my $embed_rcomment = '[[#rcomment]]';  
 my $embed_interwiki = '^\[\[#(box|text|password):(\S+)\]\]$';    # Walrus add (5)  
 ##############################  
 my $info_LastModified = 'LastModified';  
 my $info_IsFrozen = 'IsFrozen';  
 my $info_AdminPassword = 'AdminPassword';  
 ##############################  
 my $kanjicode = 'euc';  
 my $charset = 'EUC-JP';  
 my $lang = 'ja';  
 my %fixedpage = (  
     $IndexPage => 1,  
     $CreatePage => 1,  
     $ErrorPage => 1,  
     $RssPage => 1,  
     $RecentChanges => 1,  
     $SearchPage => 1,  
     $AdminChangePassword => 1,  
     $CompletedSuccessfully => 1,  
     $FrontPage => 1,  
 );  
 my %form;  
 my %database;  
 my %infobase;  
 my %diffbase;  
 my %resource;  
 my %interwiki;  
 ##############################  
 my %page_command = (  
     $IndexPage => 'index',  
     $SearchPage => 'searchform',  
     $CreatePage => 'create',  
     $RssPage => 'rss',  
     $AdminChangePassword => 'adminchangepasswordform',  
     $FrontPage => 'FrontPage',  
 );  
 my %command_do = (  
     read => \&do_read,  
     edit => \&do_edit,  
     adminedit => \&do_adminedit,  
     adminchangepasswordform => \&do_adminchangepasswordform,  
     adminchangepassword => \&do_adminchangepassword,  
     write => \&do_write,  
     index => \&do_index,  
     searchform => \&do_searchform,  
     search => \&do_search,  
     create => \&do_create,  
     createresult => \&do_createresult,  
     FrontPage => \&do_FrontPage,  
     comment => \&do_comment,  
     rss => \&do_rss,  
     diff => \&do_diff,  
     interwikibox => \&do_interwiki_box, # Walrus add (5)  
 );  
 ##############################  
 my @ignore_html_page = ('FrontPage');        # Walrus add (6)  
 my @ignore_html_tags = ('a', 'br', 'img');   # Walrus add (6)  
 my $walversion = '2.0.beta1.wal.1';          # Walrus add (1)  
97  ##############################  ##############################
98  # &test_convert;  # ハヤスクノヤイト・レ。シ・クフセーヘ
99    my @uneditable = ( $whatsnew );
100    ##############################
101    # ・・・ッヘム、ホタオオャノスクス
102    # YukiWiki、ホ・・・ッ、マ2シホ爨「、。」
103    #
104    # (1) WikiName (RecentChanges、ネ、ォFrontPage、ホ、隍ヲ、ハ、筅ホ)
105    # (2) BracketName ([[キセケタ]]、ネ、ォ[[・ネ・鬣ヨ・・キ・蝪シ・ネ]]、ホ、隍ヲ、ハ、筅ホ)
106    #
107    # 「ィ・キ・ユ・ネJIS、ホ2・ミ・、・ネフワ、ヒ、マ ']' 、ャヘ隍ヲ、、ホ、ヌ。「
108    # ハクサ']'、1、トツソ、ッ、ネ、、隍ヲ、ヒ、キ、ニ、、、。」
109    #
110    my $WikiName = '([A-Z][a-z]+([A-Z][a-z]+)+)';
111    my $BracketName = '\[\[([^>\x09]+?\]?)\]\]';
112    
113    # ・「・、・ウ・ノハャ、ホ・ソ・ー
114    my $IconTag = ''; #<<"EOD";
115    #<a href="http://www.hyuki.com/yukiwiki/"><img src="$iconfile"
116    # border="0" width="80" height="80" alt="[YukiWiki]" /></a>
117    #EOD
118    
119    require "$jcodelib";
120    
121    &init_form($kanjicode);
122    
123    if ($testing) {
124        %form = (
125            # 'mycmd' => 'write',
126            'mycmd' => 'read',
127            #'mycmd' => 'search',
128            #'mycmd' => 'edit',
129            'mymsg' => <<"EOD",
130    、マ、ク、皃゙、キ、ニ。」
131    、ウ、、ォ、鬢、、、、、ス、ュケ、゚、゙、ケ、ヘ。」
132    LinkPage、篋ォ、ニ、ッ、タ、オ、、。」
133    TestPage、マ、ノ、ヲ、ヌ、キ、遉ヲ、ォ。」
134    、ノ、ヲ、セ、隍、キ、ッ。」
135    http://www.hyuki.com/
136    [[キセケタ]]
137    EOD
138            'mypage' => '<キセケタ>',
139            'myword' => 'キ',
140            # '3C8C8B8FE98D5F3E' => '',
141            # 'TestPage' => '',
142        );
143    }
144  &main;  &main;
145  exit(0);  exit(0);
 ##############################  
146    
147    # ・皈、・
148  sub main {  sub main {
149      &init_resource;      &normalize_form;
150      &open_db;      if ($dbmopen) {
151      &init_form;          if (!dbmopen(%database, $dbname, 0666)) {
152      &init_InterWikiName;              &print_error("(dbmopen) $dbname 、ャコ、、゙、サ、。」");
153      if ($command_do{$form{mycmd}}) {          }
         &{$command_do{$form{mycmd}}};  
154      } else {      } else {
155          &do_FrontPage;          if (!tie(%database, "YukiWikiDB", $dbname)) {
156                &print_error("(tie error)");
157            }
158        }
159    
160        # myspecialツミア
161        foreach (keys %form) {
162            if (/^myspecial_(.*)/) {
163                $form{mycmd} = $1;
164                last;
165            }
166        }
167    
168        if ($form{mycmd} eq 'read') {
169            &do_read;
170        } elsif ($form{mycmd} eq 'preview') {
171            &do_preview;
172        } elsif ($form{mycmd} eq 'write') {
173            &do_write;
174        } elsif ($form{mycmd} eq 'edit') {
175            &do_edit;
176        } elsif ($form{mycmd} eq 'reedit') {
177            &do_reedit;
178        } elsif ($form{mycmd} eq 'search') {
179            &do_search;
180        } elsif ($form{mycmd} eq 'list') {
181            &do_list;
182        } elsif ($form{mycmd} eq 'diff') {
183            &do_diff;
184        } else {
185            $form{mypage} = $toppage;
186            &do_read;
187        }
188        if ($dbmopen) {
189            dbmclose(%database);
190        } else {
191            untie(%database);
192      }      }
     &close_db;  
193  }  }
194    
195    # ・レ。シ・ク、ホノスシィ
196  sub do_read {  sub do_read {
197      &print_header($form{mypage});      my $page_name = $form{mypage};
198      &print_content($database{$form{mypage}});      my $percent_name = &encode_percent($page_name);
199      &print_footer($form{mypage});      &print_header($page_name);
200        print qq|<h1>$IconTag<a href="$thisurl?mycmd=search;myword=$percent_name">$page_name</a></h1>\n|;
201        &print_toolbar($page_name);
202        print &convert_html(&get_page($page_name));
203        &print_footer;
204  }  }
205    
206    # ・レ。シ・ク、ホハヤスク
207  sub do_edit {  sub do_edit {
208      my ($page) = &unarmor_name(&armor_name($form{mypage}));      if (not &is_editable($form{mypage})) {
209      &print_header($page);          # ハヤスクノヤイト・レ。シ・ク、マノスシィ、ホ、゚
210      if (not &is_editable($page)) {          &do_read;
211          &print_message($resource{cantchange});          return;
     } elsif (&is_frozen($page)) {  
         &print_message($resource{cantchange});  
     } else {  
         &print_editform($database{$page}, &get_info($page, $info_LastModified), admin=>0);  
212      }      }
213      &print_footer($page);      &editpage(&get_page($form{mypage}));
214  }  }
215    
216  sub do_adminedit {  # ・レ。シ・ク、ホコニハヤスク
217      my ($page) = &unarmor_name(&armor_name($form{mypage}));  sub do_reedit {
218      &print_header($page);      if (not &is_editable($form{mypage})) {
219      if (not &is_editable($page)) {          # ハヤスクノヤイト・レ。シ・ク、マノスシィ、ホ、゚
220          &print_message($resource{cantchange});          &do_read;
221      } else {      } else {
222          &print_message($resource{passwordneeded});          &editpage($form{mymsg});
         &print_editform($database{$page}, &get_info($page, $info_LastModified), admin=>1);  
223      }      }
     &print_footer($page);  
224  }  }
225    
226  sub do_adminchangepasswordform {  sub editpage {
227      &print_header($AdminChangePassword);      my $page_msg = shift;
228      &print_passwordform;      my $page_name = $form{mypage};
229      &print_footer($AdminChangePassword);      my $digest = &calc_message_digest($page_msg);
230  }      &print_header($page_name);
231        print qq|<h1>$IconTag${page_name}、ホハヤスク</h1>\n|;
232        &print_toolbar($page_name);
233        $page_msg = &escape($page_msg);
234        print <<"EOD";
235    <form action="$thisurl" method="post">
236    <!--<input type="hidden" name="mycmd" value="preview">-->
237    <input type="hidden" name="mypage" value="$page_name">
238    <input type="hidden" name="mydigest" value="$digest">
239    <textarea cols="$cols" rows="$rows" name="mymsg" wrap="virtual">$page_msg</textarea><br>
240    <input type="submit" name="myspecial_preview" value="ウホヌァ">
241    <input type="submit" name="myspecial_write" value="ウホヌァ、サ、コハムケケ">
242    </form>
243    <hr>
244    <h3>・ニ・ュ・ケ・ネターキチ、ホ・。シ・</h3>
245    
246  sub do_adminchangepassword {  <p>トフセ、マニホマ、キ、ソハクサ、ャ、ス、ホ、゙、゙スミホマ、オ、、゙、ケ、ャ。「
247      if ($form{mynewpassword} ne $form{mynewpassword2}) {  ーハイシ、ホ・。シ・、ヒスセ、テ、ニ・ニ・ュ・ケ・ネターキチ、ケヤ、ヲ、ウ、ネ、ャ、ヌ、ュ、゙、ケ。」</p>
248          &print_error($resource{passwordmismatcherror});  
249      }  <ul>
250      my ($validpassword_crypt) = &get_info($AdminSpecialPage, $info_AdminPassword);  <li>
251      if ($validpassword_crypt) {  カケヤ、マテハヘ、ホカ霏レ、熙ネ、ハ、熙゙、ケ。」
252          if (not &valid_password($form{myoldpassword})) {  
253              &send_mail_to_admin(<<"EOD", "AdminChangePassword");  <li>
254  myoldpassword=$form{myoldpassword}  HTML、ホ・ソ・ー、マス、ア、゙、サ、。」
255  mynewpassword=$form{mynewpassword}  
256  mynewpassword2=$form{mynewpassword2}  <li>
257    ''カットエ''、ホ、隍ヲ、ヒ・キ・・ー・・ッ・ゥ。シ・ネニ、ト、ヌ、マ、オ、爨ネ。「カットエ、ヒ、ハ、熙゙、ケ。」
258    
259    <li>
260    '''ケケ、ヒカットエ'''、ホ、隍ヲ、ヒ・キ・・ー・・ッ・ゥ。シ・ネサー、ト、ヌ、マ、オ、爨ネ。「ケケ、ヒカットエ、ヒ、ハ、熙゙、ケ。」
261    
262    <li>
263    ----、ホ、隍ヲ、ヒ・゙・、・ハ・ケ4、ト、ャ、「、、ネ。「ソ衞ソタ、ヒ、ハ、熙゙、ケ。」
264    
265    <li>
266    *、ケヤニャ、ヒス、ッ、ネツ邵ォスミ、キ、ヒ、ハ、熙゙、ケ。」
267    
268    <li>
269    **、ケヤニャ、ヒス、ッ、ネセョクォスミ、キ、ヒ、ハ、熙゙、ケ。」
270    
271    <li>
272    -、ケヤニャ、ヒス、ッ、ネイユセス、ュ、ヒ、ハ、熙゙、ケ。」- -- --- 、ホ3・・ル・、ャ、「、熙゙、ケ。」
273    
274    <li>
275    :、ケヤニャ、ヒス、ッ、ネヘムク、ネイタ簗ク、ャコ、、゙、ケ。」
276    
277    <pre>
278        :ヘムク1:、、、、、、ス、、、ソイタ簗ク1
279        :ヘムク2:、、、、、、ス、、、ソイタ簗ク2
280        :ヘムク3:、、、、、、ス、、、ソイタ簗ク3
281    </pre>
282    
283    <li>
284    http://www.hyuki.com/ 、ホ、隍ヲ、ハURL、マシォニーナェ、ヒ・・・ッ、ヒ、ハ、熙゙、ケ。」
285    
286    <li>
287    YukiWiki、ホ、隍ヲ、ヒツ醋クサセョハクサ、コョ、シ、ソアムハクサホ、ス、ッ、ネ。「
288    YukiWiki、ホ・レ。シ・クフセ、ヒ、ハ、熙゙、ケ。」
289    
290    <li>
291    [[キセケタ]]、ホ、隍ヲ、ヒニスナ、ホツ遉ォ、テ、ウ[[ ]]、ヌ、ッ、ッ、テ、ソハクサホ、ス、ッ、ネ。「
292    YukiWiki、ホ・レ。シ・クフセ、ヒ、ハ、熙゙、ケ。」
293    ツ遉ォ、テ、ウ、ホテ讀ヒ、マ・ケ・レ。シ・ケ、エ゙、皃ニ、マ、、、ア、゙、サ、。」
294    ニヒワク、篏ネ、ィ、゙、ケ。」
295    
296    <li>
297    ケヤニャ、ャ・ケ・レ。シ・ケ、ヌサマ、゙、テ、ニ、、、、ネ。「
298    、ス、ホテハヘ、マターキチコム、゚ーキ、、、゙、ケ。」
299    ・ラ・・ー・鬣爨ス、ュケ、爨ネ、ュ、ヒサネ、ヲ、ネハリヘ、ヌ、ケ。」
300    
301    <li>
302    &gt; 、ケヤニャ、ヒス、ッ、ネ。「
303    ーヘムハク、ャス、ア、゙、ケ。」
304    &gt; 、ホソ、ャツソ、、、ネ・、・・ヌ・・ネ、ャソシ、ッ、ハ、熙゙、ケ。ハ3・・ル・、゙、ヌ。ヒ。」
305    
306    </ul>
307  EOD  EOD
308              &print_error($resource{passworderror});      &print_footer;
309    }
310    
311    # ・レ。シ・ク、ホク。コ
312    sub do_search {
313        if ($form{myword}) {
314            &print_header('ク。コキイフ');
315            print qq|<h1>$IconTag$form{myword}、ホク。コキイフ</h1>\n|;
316            &print_toolbar();
317            print qq|<ul>\n|;
318            my $count = 0;
319            foreach my $page_name (sort keys %database) {    # sort、ケ、、ホ、マフオヒナ、ォ、ハ
320                if ($database{$page_name} =~ /\Q$form{'myword'}\E/) {
321                    my $encoded = &encode_percent($page_name);
322                    print qq|<li><a href="$thisurl?mycmd=read;mypage=$encoded">$page_name</a>\n|;
323                    $count++;
324                }
325          }          }
326      }          print qq|</ul>\n|;
327      my ($sec, $min, $hour, $day, $mon, $year, $weekday) = localtime(time);          if ($count > 0) {
328      my (@token) = ('0'..'9', 'A'..'Z', 'a'..'z');              print qq|<p><strong>$form{myword}</strong>、エ゙、爭レ。シ・ク、マ。「セ螟ヒシィ、ケ<strong>$count</strong> ・レ。シ・ク、ヌ、ケ。」</p>\n|;
329      my $salt1 = $token[(time | $$) % scalar(@token)];          } else {
330      my $salt2 = $token[($sec + $min*60 + $hour*60*60) % scalar(@token)];              print qq|<p><strong>$form{myword}</strong>、エ゙、爭レ。シ・ク、マクォ、ト、ォ、熙゙、サ、。」</p>\n|;
     my $crypted = crypt($form{mynewpassword}, "$salt1$salt2");  
     &set_info($AdminSpecialPage, $info_AdminPassword, $crypted);  
   
     &print_header($CompletedSuccessfully);  
     &print_message($resource{passwordchanged});  
     &print_footer($CompletedSuccessfully);  
 }  
   
 sub do_index {  
     &print_header($IndexPage);  
     print qq(<ul>);  
     foreach my $page (sort keys %database) {  
         if (&is_editable($page)) {  
             print qq(<li><a href="$url_cgi?@{[&encode($page)]}">$page</a>@{[&escape(&get_subjectline($page))]}</li>);  
             # print qq(<li>@{[&get_info($page, $info_IsFrozen)]}</li>);  
             # print qq(<li>@{[0 + &is_frozen($page)]}</li>);  
331          }          }
332        } else {
333            &print_header('テアクク。コ');
334            print qq|<h1>$IconTagテアクク。コ</h1>\n|;
335            &print_toolbar();
336      }      }
337      print qq(</ul>);      print <<"EOD";
338      &print_footer($IndexPage);  <p>
339    <form action="$thisurl" method="post">
340    <input type="hidden" name="mycmd" value="search">
341    <input type="text" name="myword" size="20" value="$form{myword}">
342    <input type="submit" value="テアクク。コ">
343    </form>
344    </p>
345    EOD
346        &print_footer;
347  }  }
348    
349  sub do_write {  # ・レ。シ・ク、ホーヘ
350      if (&frozen_reject()) {  sub do_list {
351          return;      &print_header('・レ。シ・クーヘ');
352        print qq|<h1>$IconTag ・レ。シ・クーヘ</h1>\n|;
353        &print_toolbar();
354        print qq|<ul>\n|;
355        foreach my $page_name (sort keys %database) {    # sort、ケ、、ホ、マフオヒナ、ォ、ハ
356            my $encoded = &encode_percent($page_name);
357            print qq|<li><a href="$thisurl?mycmd=read;mypage=$encoded">$page_name</a>\n|
358        }
359        print qq|</ul>\n|;
360        &print_footer;
361    }
362    
363    # ・ラ・・モ・蝪シ
364    sub do_preview {
365        my $page_name = $form{mypage};
366        my $escapedmsg = &escape($form{mymsg});
367        &print_header($page_name);
368        print qq|<h1>$IconTag${page_name}、ホ・ラ・・モ・蝪シ</h1>\n|;
369        &print_toolbar($page_name);
370        # local $percent_name = &encode_percent($page_name);
371        print qq|<p>ーハイシ、ホ・ラ・・モ・蝪シ、ウホヌァ、キ、ニ。「、隍ア、、ミ・レ。シ・クイシノ、ホ・ワ・ソ・、ヌケケソキ、キ、ニ、ッ、タ、オ、、。」</p>\n|;
372        if ($form{mymsg}) {
373            print qq|<table width="100%" bgcolor="$preview_color" ><tr><td>\n|;
374            # print &convert_html($escapedmsg);
375            print &convert_html($form{mymsg});
376            print qq|</td></tr></table>\n|;
377        } else {
378            print qq|<p>。ハ・レ。シ・ク、ホニ簣ニ、マカ、ヌ、ケ。」ケケソキ、ケ、、ネ、ウ、ホ・レ。シ・ク、マ<strong>コス</strong>、オ、、゙、ケ。」。ヒ</p>\n|;
379      }      }
380        &print_preview_buttons($page_name, $escapedmsg, $form{mydigest});
381        &print_footer;
382    }
383    
384    sub print_preview_buttons {
385        my ($page_name, $escapedmsg, $digest) = @_;
386        print <<"EOD";
387        <form action="$thisurl" method="post">
388        <textarea cols="$cols" rows="$rows" name="mymsg" wrap="virtual">$escapedmsg</textarea>
389        <br />
390        <input type="hidden" name="mypage" value="$page_name">
391        <input type="hidden" name="mydigest" value="$digest">
392        <input type="submit" name="myspecial_preview" value="コニナル・ラ・・モ・蝪シ">
393        <input type="submit" name="myspecial_write" value="・レ。シ・ク、ホケケソキ">
394        </form>
395    EOD
396    }
397    
398    # ス、ュケ、
399    sub do_write {
400      if (not &is_editable($form{mypage})) {      if (not &is_editable($form{mypage})) {
401          &print_header($form{mypage});          # ハヤスクノヤイト・レ。シ・ク、マノスシィ、ホ、゚
402          &print_message($resource{cantchange});          &do_read;
         &print_footer($form{mypage});  
403          return;          return;
404      }      }
405    
406      if (&conflict($form{mypage}, $form{mymsg})) {      my $page_name = $form{mypage};
407    
408        # digest、サネ、テ、ニ。「ケケソキ、ホセラニヘ・チ・ァ・テ・ッ
409        my $original_digest = &calc_message_digest(&get_page($page_name));
410        if ($form{mydigest} ne $original_digest) {
411            &print_header($page_name);
412            print qq|<h1>$IconTag${page_name}、ヌ。レケケソキ、ホセラニヘ。ロ、ャオッ、ュ、゙、キ、ソ</h1>\n|;
413            print <<"EOD";
414    <p>、「、ハ、ソ、ャ、ウ、ホ・レ。シ・ク、ハヤスク、キ、ニ、、、エヨ、ヒ。「
415    ツセ、ホソヘ、ャニア、ク・レ。シ・ク、ケケソキ、キ、ニ、キ、゙、テ、ソ、隍ヲ、ヌ、ケ。」
416    </p><p>
417    ーハイシ、ヒ。「、「、ハ、ソ、ホハヤスク、キ、ソ・ニ・ュ・ケ・ネ、ャ、「、熙゙、ケ、ホ、ヌ。「
418    、「、ハ、ソ、ホハヤスクニ簣ニ、ャシコ、、、ハ、、、隍ヲ、ヒ。「
419    、、、゙、ケ、ー。「・皈籠「、ハ、ノ、ヒ・ウ・ヤ。シ。・レ。シ・ケ・ネ、キ、ニ、ッ、タ、オ、、。」
420    </p><p>
421    ・ウ・ヤ。シ。・レ。シ・ケ・ネ、ャコム、、ヌ、ォ、鬘「
422    コヌソキ、ホニ簣ニ、クォ、ニコニナルハヤスク、キトセ、キ、ニ、ッ、タ、オ、、。」
423    コヌソキ、ホニ簣ニ、マ
424    <a target="_blank" href="$thisurl?mycmd=read;mypage=$form{mypage}">$form{mypage}</a>
425    、ヌクォ、、ウ、ネ、ャ、ヌ、ュ、゙、ケ。」
426    </p>
427    EOD
428            # &print_toolbar($page_name);
429            &print_preview_buttons($page_name, &escape($form{mymsg}), $form{mydigest});
430            &print_footer;
431          return;          return;
432      }      }
433    
434      # Making diff      # diffタクタョ
435      {      {
436          &open_diff;          &opendiff;
437          my @msg1 = split(/\n/, $database{$form{mypage}});          my @msg1 = split(/\n/, &get_page($page_name));
438          my @msg2 = split(/\n/, $form{mymsg});          my @msg2 = split(/\n/, $form{mymsg});
439          $diffbase{$form{mypage}} = &difftext(\@msg1, \@msg2);          $msgrefA = \@msg1;
440          &close_diff;          $msgrefB = \@msg2;
441            &diff_check;
442            $diffbase{$form{mypage}} = $diff_text;
443            $diff_text = '';
444            &closediff;
445      }      }
446    
447        &print_header($page_name);
448        &set_page($page_name, $form{mymsg});
449      if ($form{mymsg}) {      if ($form{mymsg}) {
450          $database{$form{mypage}} = $form{mymsg};          print qq|<h1>$IconTag${page_name}、ケケソキ、キ、゙、キ、ソ</h1>\n|;
451          &send_mail_to_admin($form{mypage}, "Modify");          &print_toolbar($page_name);
452          if ($form{mytouch}) {          print &convert_html(&get_page($page_name));
453              &set_info($form{mypage}, $info_LastModified, '' . localtime);      } else {
454              &update_recent_changes;          print qq|<h1>$IconTag${page_name}、コス、キ、゙、キ、ソ</h1>\n|;
455          }          &print_toolbar($page_name);
456          &set_info($form{mypage}, $info_IsFrozen, 0 + $form{myfrozen});          print qq|<p>${page_name}、コス、キ、゙、キ、ソ。」</p>\n|;
457          &print_header($CompletedSuccessfully);      }
458          &print_message($resource{saved});      &print_footer;
459          &print_content("$resource{continuereading} @{[&armor_name($form{mypage})]}");      # ケケソキ、オ、、ソ、ホ、ヌ・ソ・テ・チ、キ、ニ、ェ、ッ。」
460          &print_footer($CompletedSuccessfully);      if ($touchfile) {
461      } else {          open(FILE, "> $touchfile");
462          &send_mail_to_admin($form{mypage}, "Delete");          print FILE "\n";
463          delete $database{$form{mypage}};          close(FILE);
         delete $infobase{$form{mypage}};  
         if ($form{mytouch}) {  
             &update_recent_changes;  
         }  
         &print_header($form{mypage});  
         &print_message($resource{deleted});  
         &print_footer($form{mypage});  
464      }      }
465  }  }
466    
467  sub do_searchform {  # ・レ。シ・ク、ホハムケケナタ
468      &print_header($SearchPage);  sub do_diff {
469      &print_searchform("");      if (not &is_editable($form{mypage})) {
470      &print_footer($SearchPage);          # ハヤスクノヤイト・レ。シ・ク、マノスシィ、ホ、゚
471            &do_read;
472            return;
473        }
474        &opendiff;
475        &print_header($form{mypage} . '、ホハムケケナタ');
476        print qq|<h1>$IconTag <a href="$thisurl?mycmd=read&mypage=$form{mypage}">$form{mypage}</a>、ホハムケケナタ</h1>\n|;
477        &print_toolbar();
478        $_ = &escape($diffbase{$form{mypage}});
479        print <<"EOD";
480    <ul>
481    <li>トノイテ、オ、、ソケヤ、マ<ins>タトソァ</ins>、ヌ、ケ。」
482    <li>コス、オ、、ソケヤ、マ<del>タヨソァ</del>、ヌ、ケ。」
483    <li><a href="$thisurl?mycmd=read;mypage=$form{mypage}">$form{mypage}</a>、リケヤ、ッ。」
484    </ul>
485    <hr />
486    EOD
487        print qq|<pre>\n|;
488        foreach (split(/\n/, $_)) {
489            if (/^\+(.*)/) {
490                print qq|<ins>$1</ins>\n|;
491            } elsif (/^\-(.*)/) {
492                print qq|<del>$1</del>\n|;
493            } elsif (/^\=(.*)/) {
494                print qq|$1\n|;
495            } else {
496                print qq|??? $_\n|;
497            }
498        }
499        print qq|</pre>\n|;
500        &print_footer;
501        &closediff;
502  }  }
503    
504  sub do_search {  sub opendiff {
505      my $word = &escape($form{mymsg});      if ($dbmopen) {
506      &print_header($SearchPage);          if (!dbmopen(%diffbase, $diffdbname, 0666)) {
507      &print_searchform($word);              &print_error("(dbmopen) $diffdbname 、ャコ、、゙、サ、。」");
     my $counter = 0;  
     foreach my $page (sort keys %database) {  
         next if $page =~ /^$RecentChanges$/;  
         if ($database{$page} =~ /\Q$form{mymsg}\E/ or $page =~ /\Q$form{mymsg}\E/) {  
             if ($counter == 0) {  
                 print qq|<ul>|;  
             }  
             print qq(<li><a href ="$url_cgi?@{[&encode($page)]}">$page</a>@{[&escape(&get_subjectline($page))]}</li>);  
             $counter++;  
508          }          }
     }  
     if ($counter == 0) {  
         &print_message($resource{notfound});  
509      } else {      } else {
510          print qq|</ul>|;          if (!tie(%diffbase, "YukiWikiDB", $diffdbname)) {
511                &print_error("(tie error)");
512            }
513      }      }
     &print_footer($SearchPage);  
514  }  }
515    
516  sub do_create {  sub closediff {
517      &print_header($CreatePage);      if ($dbmopen) {
518      print <<"EOD";          dbmclose(%diffbase);
519  <form action="$url_cgi" method="post">      } else {
520      <input type="hidden" name="mycmd" value="edit">          untie(%diffbase);
521      <strong>$resource{newpagename}</strong><br>      }
     <input type="text" name="mypage" value="" size="20">  
     <input type="submit" value="$resource{createbutton}"><br>  
 </form>  
 EOD  
     &print_footer($CreatePage);  
522  }  }
523    
524  sub do_FrontPage {  # ・ユ・ゥ。シ・爨ォ、鬢ホセハ、マ「チロヌロホ %form 、ヒニ、、
525      open(FILE, $file_FrontPage) or &print_error("($file_FrontPage)");  # &init_form('euc');
526      my $content = join('', <FILE>);  sub init_form {
527      &code_convert(\$content, $kanjicode);      my ($charcode) = @_;
528      close(FILE);      my $query;
529      &print_header($FrontPage);      if ($ENV{REQUEST_METHOD} =~ /^post$/i) {
530      &print_content($content);          read(STDIN, $query, $ENV{CONTENT_LENGTH});
531      &print_footer($FrontPage);      } else {
532            $query = $ENV{QUERY_STRING};
533        }
534        my @assocarray = split(/[&;]/, $query);
535        foreach my $assoc (@assocarray) {
536            my ($property, $value) = split(/=/, $assoc);
537            $value =~ tr/+/ /;
538            $value =~ s/%([A-Fa-f0-9][A-Fa-f0-9])/pack("C", hex($1))/eg;
539            &jcode::convert(\$value, $charcode);
540            $form{$property} = $value;
541        }
542  }  }
543    
544    # ・ィ・鬘シ・レ。シ・ク、スミホマ、ケ、
545  sub print_error {  sub print_error {
546      my ($msg) = @_;      my ($msg) = @_;
547      &print_header($ErrorPage);      &print_header('Error');
548      print qq(<p><strong class="error">$msg</strong></p>);      print "<h1>$IconTag$msg</h1></body></html>";
     &print_footer($ErrorPage);  
549      exit(0);      exit(0);
550  }  }
551    
552  sub print_header {  sub escape {
553      my ($page) = @_;      my ($line) = shift;
554      my $bodyclass = "normal";      $line =~ s|<|&lt;|g;
555      my $editable = 0;      $line =~ s|>|&gt;|g;
556      my $admineditable = 0;      $line =~ s|"|&quot;|g;
557      if (&is_frozen($page) and $form{mycmd} =~ /^(read|write)$/) {      # $line =~ s|\&|&amp;|g;
558          $editable = 0;      return $line;
559          $admineditable = 1;  }
560          $bodyclass = "frozen";  
561      } elsif (&is_editable($page) and $form{mycmd} =~ /^(read|write)$/) {  sub inline {
562          $admineditable = 1;      my ($line) = shift;
563          $editable = 1;      $line = &escape($line);
564      } else {      $line =~ s|'''([^']+?)'''|<strong>$1</strong>|g;
565          $editable = 0;      $line =~ s|''([^']+?)''|<em>$1</em>|g;          
566        $line =~ s!
567           (
568             (?:&lt;(?:mailto|http|https|ftp|urn):[\x21-\x7E]*)&gt;
569           #| (?:$WikiName)                         # LocalLinkLikeThis
570           | (?:$BracketName)                      # [[ニヒワク・・・ッ]]
571           )
572                !
573                    &make_link($1)
574                !gex;
575        return $line;
576    }
577    
578    # ・レ。シ・ク、ホ・ソ・、・ネ・、ォ、鬣レ。シ・ク、ホニ簣ニ、ニタ、
579    sub get_page {
580        my $page_name = shift;
581        return $database{$page_name};
582    }
583    
584    # ・レ。シ・ク、ホニ簣ニ、ヘソ、ィ、
585    # &set_page($title, $txt)
586    sub set_page {
587        # ・レ。シ・ク、ケケソキ、ケ、
588        my $title = $_[0];
589        $database{$title} = $_[1];
590        # カ・レ。シ・ク、ハ、鮗ス、ケ、
591        unless ($database{$title}) {
592            delete $database{$title};
593        }
594        # RecentChanges、ケケソキ、ケ、
595        my $delim = ' - ';
596        my @pages = split(/\n/, $database{$whatsnew});
597        my $datestr = &get_current_datestr;
598        unshift(@pages, qq|-$datestr$delim$title|);
599        # ニアー・レ。シ・ク、ホケケソキ、マコヌソキ、ホ、筅ホ、ホ、゚、ヒ、キ。「
600        # ツクコ゚、キ、ハ、、・レ。シ・ク、マ・ケ・ュ・テ・ラ、ケ、。」
601        my %count;
602        my @newpages;
603        foreach my $line (@pages) {
604            my ($prefix, $title) = split(/$delim/, $line);
605            $count{$title}++;
606            if ($count{$title} == 1 and exists($database{$title})) {
607                push(@newpages, qq|$prefix - $title|);
608            }
609      }      }
610      my $cookedpage = &encode($page);      # 、ウ、ウ、ヌヒワナ、ヒケケソキ
611        $database{$whatsnew} = join("\n", splice(@newpages, 0, $maxnew));
612    }
613    
614    # ・レ。シ・ク、ホ・リ・テ・タ、スミホマ
615    sub print_header {
616        my $title = shift;
617      print <<"EOD";      print <<"EOD";
618  Content-type: text/html; charset=$charset  Content-type: text/html
619    
620  <!DOCTYPE html  <html><head>
621      PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"  <title>$title</title>
622      "http://www.w3.org/TR/html4/loose.dtd">  <style type="text/css">
623  <html lang="$lang">  $style
624  <head>  </style>
     <meta http-equiv="Content-Language" content="$lang">  
     <meta http-equiv="Content-Type" content="text/html; charset=$charset">  
     <title>$page @{[&escape(&get_subjectline($page))]}</title>  
     <link rel="index" href="$url_cgi?$IndexPage">  
     <link rev="made" href="mailto:$modifier_mail">  
     <link rel="stylesheet" type="text/css" href="$url_stylesheet">  
625  </head>  </head>
626  <body class="$bodyclass">  <body>
 <div class="tools">  
     @{[ $admineditable  
         ? qq(<a title="$resource{admineditthispage}" href="$url_cgi?mycmd=adminedit&amp;mypage=$cookedpage">$resource{admineditbutton}</a> | )  
         : qq()  
     ]}  
     @{[ $editable  
         ? qq(<a title="$resource{editthispage}" href="$url_cgi?mycmd=edit&amp;mypage=$cookedpage">$resource{editbutton}</a> | )  
         : qq()  
     ]}  
     @{[ $admineditable  
         ? qq(<a href="$url_cgi?mycmd=diff&amp;mypage=$cookedpage">$resource{diffbutton}</a> | )  
         : qq()  
     ]}  
     <a href="$url_cgi?$CreatePage">$resource{createbutton}</a> |  
     <a href="$url_cgi?$IndexPage">$resource{indexbutton}</a> |  
     <a href="$url_cgi?$RssPage">$resource{rssbutton}</a> |  
     <a href="$url_cgi?$FrontPage">$FrontPage</a> |  
     <a href="$url_cgi?$SearchPage">$resource{searchbutton}</a> |  
     <a href="$url_cgi?$RecentChanges">$resource{recentchangesbutton}</a>  
 </div>  
 <h1 class="header"><a  
     title="$resource{searchthispage}"  
     href="$url_cgi?mycmd=search&amp;mymsg=$cookedpage">$page</a>@{[&escape(&get_subjectline($page))]}</h1>  
627  EOD  EOD
628  }  }
629    
630  sub print_footer {  # ・ト。シ・・ミ。シ、スミホマ
631      my ($page) = @_;  sub print_toolbar {
632      $walrus_log = ($walrus_debugging) ? &text_to_html("----\n$walrus_log") : '';    # Walrus add (debug)      my $page_name = shift;
633      # Walrus mod (1) start      my $percent_name = &encode_percent($page_name);
634      my $mod_info = $modifier_name ? qq(Modified by <a href="$modifier_url">$modifier_name</a>.) : '';      my $editlink = '';
635        if ($page_name ne '' and &is_editable($page_name)) {
636            $editlink = <<"EOD";
637    <a href="$thisurl?mycmd=edit;mypage=$percent_name">ハヤスク</a> |
638    <a href="$thisurl?mycmd=diff;mypage=$percent_name">コケハャ</a> |
639    EOD
640        }
641      print <<"EOD";      print <<"EOD";
 <div class="footer">  
 <hr />  
642  <p>  <p>
643  <a href="http://digit.que.ne.jp/work/">WalWiki</a> $walversion &copy; 2000-2002 by <a href="http://digit.que.ne.jp/">Makio Tsukamoto</a>.<br />   [
644  based on <a href="http://www.hyuki.com/yukiwiki/">YukiWiki</a> $version &copy; 2000-2002 by <a href="http://www.hyuki.com/">Hiroshi Yuki</a>.<br />  <a href="$thisurl?mycmd=read;mypage=$toppage">・ネ・テ・ラ</a> |
645  $mod_info  <a href="$thisurl?mycmd=list">ーヘ</a> |
646  </p><p>  $editlink
647  <a href="http://digit.que.ne.jp/work/">$icontag</a>  <a href="$thisurl?mycmd=search">テアクク。コ</a> |
648    <a href="$thisurl?mycmd=read;mypage=$whatsnew">コヌスェケケソキ</a>
649     ]
650  </p>  </p>
 </div>  
 $walrus_log <!-- Walrus add (debug) -->  
 </body>  
 </html>  
651  EOD  EOD
 #       print <<"EOD";  
 #   <hr>  
 #   <address class="footer">  
 #       <a href="http://www.hyuki.com/yukiwiki/">YukiWiki</a> $version  
 #       &copy; 2000-2002 by <a href="http://www.hyuki.com/">Hiroshi Yuki</a>.<br />  
 #       Modified by <a href="$modifier_url">$modifier_name</a>.  
 #   </address>  
 #   <p class="footer">  
 #       <a href="http://www.hyuki.com/yukiwiki/">$icontag</a>  
 #   </p>  
 #   </body>  
 #   </html>  
 #   EOD  
     # Walrus mod (1) end  
652  }  }
653    
654  sub escape {  # ・レ。シ・ク、ホ・ユ・テ・ソ、スミホマ
655      my $s = shift;  sub print_footer {
656      $s =~ s|\r\n|\n|g;      print <<"EOD";
657      $s =~ s|\&|&amp;|g;  <address>
658      $s =~ s|<|&lt;|g;  <a href="http://www.hyuki.com/yukiwiki/">YukiWiki</a> 1.6.6 Copyright (C) 2000,2001 by <a href="http://www.hyuki.com/">Hiroshi Yuki.</a>
659      $s =~ s|>|&gt;|g;  + <a href="$modifierlink">$modifier</a> ${version}.
660      $s =~ s|"|&quot;|g;  [<a href="/" title="、ウ、ホ・オ。シ・ミ。シ、ホシハヌ">/</a>
661      return $s;  <a href="/map" title="、ウ、ホ・オ。シ・ミ。シ、ホーニニ">テマゾ</a>
662  }  <a href="/search/" title="、ウ、ホ・オ。シ・ミ。シ、ホク。コ">ク。コ</a>]
663    </address>
664  sub unescape {  </body></html>
665      my $s = shift;  EOD
     # $s =~ s|\n|\r\n|g;  
     $s =~ s|\&amp;|\&|g;  
     $s =~ s|\&lt;|\<|g;  
     $s =~ s|\&gt;|\>|g;  
     $s =~ s|\&quot;|\"|g;  
     return $s;  
 }  
   
 sub print_content {  
     my ($rawcontent) = @_;  
     print &text_to_html($rawcontent, toc=>1);  
666  }  }
667    
668  sub text_to_html {  # URL、茹レ。シ・ク、ホフセチー、ォ、鬣・・ッ、コ、
669      my ($txt, %option) = @_;  sub make_link {
670        my $name = shift;
671        $name =~ s/^&lt;(.*)&gt;$/$1/;
672        $name =~ s/^\[\[(.*)\]\]$/$1/;
673        if ($name =~ /^(http|https|ftp).*?(\.png|\.jpeg|\.jpg)?$/) {
674            if ($2) {
675                return qq|<a href="$name"><img border="0" src="$name" /></a>|;
676            } else {
677                return qq|&lt;<a href="$name">$name</a>&gt;|;
678            }
679        } elsif ($name =~ /^mailto:(.*)/) {
680            my $address = $1;
681            return qq|&lt;<a href="$name">$address</a>&gt;|;
682        } elsif ($name =~ /^urn:[0-9A-Za-z_:-]+/) {
683            return qq|&lt;<a href="/uri-res/N2L?${name}">$name</a>&gt;|;
684        } else {
685          my $name2 = $name; $name2 =~ tr/\x20/-/;
686          if ($database{$name2}) {
687            my $percent_name = &encode_percent($name2);
688            return qq|<a href="$thisurl?mycmd=read;mypage=$percent_name" class="wiki">$name</a>|;
689          } elsif ($database{'[['.$name2.']]'}) {
690            my $percent_name = &encode_percent('[['.$name2.']]');
691            return qq|<a href="$thisurl?mycmd=read;mypage=$percent_name" class="wiki">$name</a>|;
692          } else {
693            my $percent_name = &encode_percent($name2);
694            return qq|<a href="$thisurl?mycmd=edit;mypage=$percent_name" class="wiki newpage">$name?</a>|;
695          }
696        }
697    }
698    
699    # %xx 、ホキチシー、ヒ・ィ・・ウ。シ・ノ、ケ、
700    # 、ウ、、マ。「
701    # http://www.hyuki.com/yukiwiki/yukiwiki.cgi?mycmd=read&mypage=%3C%8C%8B%8F%E9%8D_%3E
702    # 、ネ、、、ヲキチシー、ホ、ソ、皃ヒサネ、、、。」
703    # '<キセケタ>' 「ェ '%3C%8C%8B%8F%E9%8D_%3E'
704    sub encode_percent {
705        my $name = shift;
706        my $encoded = '';
707        foreach my $ch (split(//, $name)) {
708            if ($ch =~ /[A-Za-z0-9_]/) {
709                $encoded .= $ch;
710            } else {
711                $encoded .= '%' . sprintf("%02X", ord($ch));
712            }
713        }
714        return $encoded;
715    }
716    
717    # ・ニ・ュ・ケ・ネヒワツホ、HTML、ヒハムエケ、ケ、
718    sub convert_html {
719        my ($txt) = shift;
720      my (@txt) = split(/\n/, $txt);      my (@txt) = split(/\n/, $txt);
     my (@toc);  
     my $tocnum = 0;  
     my (@saved, @result);  
     unshift(@saved, "</p>");  
     push(@result, "<p>");  
721      foreach (@txt) {      foreach (@txt) {
722          chomp;          chomp;
723          # Walrus mod (6) start          if (/^\*\*(.*)/) {
724          if ($saved[0] eq '</html>') {              push(@result, splice(@saved), '<h3>' . &inline($1) . '</h3>');
             if (/<\/html>/i) { splice(@saved); }  
             else { push (@result, &html_to_ignored_html($_)); }  
         } elsif (/^<html>/i and &is_ignore_html($form{mypage})) {  
             push(@result, splice(@saved));  
             push(@saved, '</html>');  
         } elsif (/^\*\*(.*)/) {  
         # if (/^\*\*(.*)/) {  
         # Walrus mod (6) end  
             push(@toc, qq(-- <a href="#i$tocnum">@{[&escape($1)]}</a>\n));  
             push(@result, splice(@saved), qq(<h3><a name="i$tocnum"> </a>) . &inline($1) . '</h3>');  
             $tocnum++;  
725          } elsif (/^\*(.*)/) {          } elsif (/^\*(.*)/) {
726              push(@toc, qq(- <a href="#i$tocnum">@{[&escape($1)]}</a>\n));              push(@result, splice(@saved), '<h2>' . &inline($1) . '</h2>');
             push(@result, splice(@saved), qq(<h2><a name="i$tocnum"> </a>) . &inline($1) . '</h2>');  
             $tocnum++;  
727          } elsif (/^----/) {          } elsif (/^----/) {
728              push(@result, splice(@saved), '<hr>');              push(@result, splice(@saved), '<hr>');
729          } elsif (/^(-{1,3})(.*)/) {          } elsif (/^(-{1,3})(.*)/) {
730              &back_push('ul', length($1), \@saved, \@result);              &back_push('ul', length($1));
731              push(@result, '<li>' . &inline($2) . '</li>');              push(@result, '<li>' . &inline($2) . '</li>');
732          } elsif (/^:([^:]+):(.*)/) {          } elsif (/^:([^:]+):(.*)/) {
733              &back_push('dl', 1, \@saved, \@result);              &back_push('dl', 1);
734              push(@result, '<dt>' . &inline($1) . '</dt>', '<dd>' . &inline($2) . '</dd>');              push(@result, '<dt>' . &inline($1) . '</dt>', '<dd>' . &inline($2) . '</dd>');
735          } elsif (/^(>{1,3})(.*)/) {          } elsif (/^(>{1,3})(.*)/) {
736              &back_push('blockquote', length($1), \@saved, \@result);              &back_push('blockquote', length($1));
737              push(@result, &inline($2));              push(@result, &inline($2));
738          } elsif (/^\s*$/) {          } elsif (/^\s*$/) {
739              push(@result, splice(@saved));              push(@result, splice(@saved));
740              unshift(@saved, "</p>");              unshift(@saved, "</p>");
741              push(@result, "<p>");              push(@result, "<p>");
742          } elsif (/^(\s+.*)$/) {          } elsif (/^(\s+.*)$/) {
743              &back_push('pre', 1, \@saved, \@result);              &back_push('pre', 1);
744              push(@result, &escape($1)); # Not &inline, but &escape              push(@result, &escape($1)); # Not &inline, but &escape
 #       } elsif (/^\,(.*)$/) {             # Walrus del (BF)  
         } elsif (/^\,(.*?)[\x0D\x0A]*$/) { # Walrus add (BF)  
             &back_push('table', 1, \@saved, \@result, ' border="1"');  
             #######  
             # This part is taken from Mr. Ohzaki's Perl Memo and Makio Tsukamoto's WalWiki.  
             # XXXXX  
             my $tmp = "$1,";  
             my @value = map {/^"(.*)"$/ ? scalar($_ = $1, s/""/"/g, $_) : $_} ($tmp =~ /("[^"]*(?:""[^"]*)*"|[^,]*),/g);  
             my @align = map {(s/^\s+//) ? ((s/\s+$//) ? ' align="center"' : ' align="right"') : ''} @value;  
             my @colspan = map {($_ eq '==') ? 0 : 1} @value;  
             for (my $i = 0; $i < @value; $i++) {  
                 if ($colspan[$i]) {  
                     while ($i + $colspan[$i] < @value and $value[$i + $colspan[$i]] eq '==') {  
                         $colspan[$i]++;  
                     }  
                     $colspan[$i] = ($colspan[$i] > 1) ? sprintf(' colspan="%d"', $colspan[$i]) : '';  
                     $value[$i] = sprintf('<td%s%s>%s</td>', $align[$i], $colspan[$i], &inline($value[$i]));  
                 } else {  
                     $value[$i] = '';  
                 }  
             }  
             push(@result, join('', '<tr>', @value, '</tr>'));  
             # XXXXX  
             #######  
745          } else {          } else {
746              push(@result, &inline($_));              push(@result, &inline($_));
747          }          }
748      }      }
749      push(@result, splice(@saved));      push(@result, splice(@saved));
750        return join("\n", @result);
     if ($option{toc}) {  
         # Convert @toc (table of contents) to HTML.  
         # This part is taken from Makio Tsukamoto's WalWiki.  
         my (@tocsaved, @tocresult);  
         foreach (@toc) {  
             if (/^(-{1,3})(.*)/) {  
                 &back_push('ul', length($1), \@tocsaved, \@tocresult);  
                 push(@tocresult, '<li>' . $2 . '</li>');  
             }  
         }  
         push(@tocresult, splice(@tocsaved));  
         return join("\n", @tocresult, @result);  
     } else {  
         return join("\n", @result);  
     }  
751  }  }
752    
753    # &back_push($tag, $count)
754    # $tag、ホ・ソ・ー、$level・・ル・、゙、ヌオヘ、皃。」
755  sub back_push {  sub back_push {
756      my ($tag, $level, $savedref, $resultref, $attr) = @_;      my ($tag, $level) = @_;
757      while (@$savedref > $level) {      while (@saved > $level) {
758          push(@$resultref, shift(@$savedref));          push(@result, shift(@saved));
     }  
     if ($savedref->[0] ne "</$tag>") {  
         push(@$resultref, splice(@$savedref));  
     }  
     while (@$savedref < $level) {  
         unshift(@$savedref, "</$tag>");  
         push(@$resultref, "<$tag$attr>");  
759      }      }
760  }      if ($saved[0] ne "</$tag>") {
761            push(@result, splice(@saved));
762  sub inline {      }
763      my ($line) = @_;      while (@saved < $level) {
764      $line = &escape($line);          unshift(@saved, "</$tag>");
765      $line =~ s|'''([^']+?)'''|<i>$1</i>|g;  # Italic          push(@result, "<$tag>");
     $line =~ s|''([^']+?)''|<b>$1</b>|g;    # Bold  
     $line =~ s|(\d\d\d\d-\d\d-\d\d \(\w\w\w\) \d\d:\d\d:\d\d)|<span class="date">$1</span>|g;   # Date  
     $line =~ s!  
                 (  
                     ((mailto|http|https|ftp):([^\x00-\x20()<>\x7F-\xFF])*)  # Direct http://...  
                         |  
                     ($bracket_name)             # [[likethis]], [[#comment]], [[Friend:remotelink]]  
                         |  
                     ($interwiki_definition)     # [[Friend http://somewhere/?q=sjis($1)]]  
                         |  
                     ($wiki_name)                # LocalLinkLikeThis  
                 )  
             !  
                 &make_link($1)  
             !gex;  
     return $line;  
 }  
   
 sub make_link {  
     my $chunk = shift;  
     # Walrus add (3) start  
     my $name  = $chunk;  
     if ($chunk =~ /^\[\[([^ ]+?) ([^ ]+?)\]\]$/ and $form{mypage} ne $InterWikiName) {  
         ($name, $chunk) = ($1, $2);  
     } elsif ($chunk =~ /^mailto:(.*)$/) {  
         $name = $1;  
     }  
     if ($use_autoimg and $name =~ /^(http|https|ftp|):.+\.(png|gif|jpe?g)/) {  
         $name = qq(<img src="$name">) ;  
     }  
     $name = &unarmor_name($name);  
     # Walrus add (3) end  
     if ($chunk =~ /^(http|https|ftp):/) {  
         # Walrus mod (3) start  
 #       if ($use_autoimg and $chunk =~ /\.(gif|png|jpeg|jpg)$/) {  
 #           return qq(<a href="$chunk"><img src="$chunk"></a>);  
 #       } else {  
 #           return qq(<a href="$chunk">$chunk</a>);  
 #       }  
         return qq(<a href="$chunk">$name</a>);  
         # Walrus mod (3) end  
     } elsif ($chunk =~ /^(mailto):(.*)/) {  
 #       return qq(<a href="$chunk">$2</a>);                 # Walrus del (3)  
         return qq(<a href="$chunk">$name</a>);              # Walrus add (3)  
     } elsif ($chunk =~ /^$interwiki_definition$/) {  
 #       return qq(<span class="InterWiki">$chunk</span>);   # Walrus del (3)  
         return qq(<span class="InterWiki">$name</span>);    # Walrus add (3)  
     } elsif ($chunk =~ /^$embedded_name$/) {  
         return &embedded_to_html($chunk);  
     } else {  
         $chunk = &unarmor_name($chunk);  
         $chunk = &unescape($chunk); # To treat '&' or '>' or '<' correctly.  
         my $cookedchunk = &encode($chunk);  
         if ($chunk =~ /^$interwiki_name$/) {  
             my ($intername, $localname) = ($1, $2);  
             my $remoteurl = $interwiki{$intername};  
             if ($remoteurl) {  
 #               $remoteurl =~ s/\b(euc|sjis|ykwk|asis)\(\$1\)/&interwiki_convert($1, $localname)/e;      # Walrus del (4)  
                 $remoteurl =~ s/\b(euc|sjis|ykwk|asis|isbn)\(\$1\)/&interwiki_convert($1, $localname)/e; # Walrus add (4)  
 #               return qq(<a href="$remoteurl">$chunk</a>); # Walrus del (3)  
                 return qq(<a href="$remoteurl">$name</a>);  # Walrus add (3)  
             } else {  
 #               return $chunk;                              # Walrus del (3)  
                 return $name;                               # Walrus add (3)  
             }  
         } elsif ($database{$chunk}) {  
             my $subject = &escape(&get_subjectline($chunk, delimiter => ''));  
 #           return qq(<a title="$subject" href="$url_cgi?$cookedchunk">$chunk</a>);  # Walrus del (3)  
             return qq(<a title="$subject" href="$url_cgi?$cookedchunk">$name</a>);   # Walrus add (3)  
         } elsif ($page_command{$chunk}) {  
 #           return qq(<a title="$chunk" href="$url_cgi?$cookedchunk">$chunk</a>);    # Walrus del (3)  
             return qq(<a title="$chunk" href="$url_cgi?$cookedchunk">$name</a>);     # Walrus add (3)  
         } else {  
 #           return qq($chunk<a title="$resource{editthispage}" href="$url_cgi?mycmd=edit&amp;mypage=$cookedchunk">$editchar</a>); # Walrus del (3)  
             return qq($name<a title="$resource{editthispage}" href="$url_cgi?mycmd=edit&amp;mypage=$cookedchunk">$editchar</a>);  # Walrus add (3)  
         }  
766      }      }
767  }  }
768    
769  # Walrus add (6) start  # ハヤスクイトヌス・レ。シ・ク、ォ。ゥ
770  sub is_ignore_html {  sub is_editable {
771      my ($pagename) = @_;      my ($pagename) = @_;
772      foreach (@ignore_html_page) {      foreach (@uneditable) {
773          return 1 if ($pagename eq $_);          if ($pagename eq $_) {
774                return 0;
775            }
776      }      }
777      return 0;      if (&is_valid_name($pagename)) {
778  }          return 1;
 # Walrus add (6) end  
   
 # Walrus add (6) start  
 sub html_to_ignored_html {  
     my $str = shift(@_);  
     my $text_regex        = q{[^<]*};  
     my $tag_regex_        = q{[^"'<>]*(?:"[^"]*"[^"'<>]*|'[^']*'[^"'<>]*)*(?:>|(?=<)|$(?!\n))}; #'}}}}  
     my $comment_tag_regex = '<!(?:--[^-]*-(?:[^-]+-)*?-(?:[^>-]*(?:-[^>-]+)*?)??)*(?:>|$(?!\n)|--.*$)';  
     my $tag_regex         = qq{$comment_tag_regex|<$tag_regex_};  
     my $ignored           = join('|', @ignore_html_tags);  
     my $result = '';  
     while ($str =~ /($text_regex)($tag_regex)?/gso) {  
       last if $1 eq '' and $2 eq '';  
       $result .= $1;  
       my $tag_tmp = $2;  
       $result .= ($tag_tmp =~ /^<\/?($ignored)(?![0-9A-Za-z])/i) ? $tag_tmp : &escape($tag_tmp);  
       if ($tag_tmp =~ /^<(XMP|PLAINTEXT|SCRIPT)(?![0-9A-Za-z])/i) {  
         $str =~ /(.*?)(?:<\/$1(?![0-9A-Za-z])$tag_regex_|$)/gsi;  
         $result .= &escape($1);  
       }  
779      }      }
780      return $result;      return 0;
 }  
 # Walrus add (6) end  
   
 sub print_message {  
     my ($msg) = @_;  
     print qq(<p><strong>$msg</strong></p>);  
781  }  }
782    
783  sub init_form {  # Valid、ハフセチー、ォ。ゥ
784      if (param()) {  sub is_valid_name {
785          foreach my $var (param()) {      my ($pagename) = @_;
786              $form{$var} = param($var);      if ($pagename =~ /^$WikiName$/) {
787          }          return 1;
788        } elsif ($pagename =~ /^$BracketName$/) {
789            return 1;
790      } else {      } else {
791          $ENV{QUERY_STRING} = $FrontPage;          return 0;
     }  
   
     my $query = &decode($ENV{QUERY_STRING});  
     if ($page_command{$query}) {  
         $form{mycmd} = $page_command{$query};  
         $form{mypage} = $query;  
     } elsif ($query =~ /^($wiki_name)$/) {  
         $form{mycmd} = 'read';  
         $form{mypage} = $1;  
     } elsif ($database{$query}) {  
         $form{mycmd} = 'read';  
         $form{mypage} = $query;  
     }  
   
     # mypreview_edit        -> do_edit, with preview.  
     # mypreview_adminedit   -> do_adminedit, with preview.  
     # mypreview_write       -> do_write, without preview.  
     foreach (keys %form) {  
         if (/^mypreview_(.*)$/) {  
             $form{mycmd} = $1;  
             $form{mypreview} = 1;  
         }  
     }  
   
     #  
     # $form{mycmd} is frozen here.  
     #  
   
     $form{mymsg} = &code_convert(\$form{mymsg}, $kanjicode);  
     $form{myname} = &code_convert(\$form{myname}, $kanjicode);  
 }  
   
 sub update_recent_changes {  
     my $update = "- @{[&get_now]} @{[&armor_name($form{mypage})]} @{[&get_subjectline($form{mypage})]}";  
     my @oldupdates = split(/\r?\n/, $database{$RecentChanges});  
     my @updates;  
     foreach (@oldupdates) {  
         /^\- \d\d\d\d\-\d\d\-\d\d \(...\) \d\d:\d\d:\d\d (\S+)/;    # date format.  
         my $name = &unarmor_name($1);  
         if (&is_exist_page($name) and ($name ne $form{mypage})) {  
             push(@updates, $_);  
         }  
     }  
     if (&is_exist_page($form{mypage})) {  
         unshift(@updates, $update);  
     }  
     splice(@updates, $maxrecent + 1);  
     $database{$RecentChanges} = join("\n", @updates);  
     if ($file_touch) {  
         open(FILE, "> $file_touch");  
         print FILE localtime() . "\n";  
         close(FILE);  
792      }      }
793  }  }
794    
795  sub get_subjectline {  # クスコ゚サケ、ホハクサホ、ニタ、
796      my ($page, %option) = @_;  sub get_current_datestr {
797      if (not &is_editable($page)) {      my (@wdays) = ( "ニ", "キ", "イミ", "ソ", "フレ", "カ", "ナレ" );
798          return "";      my ($sec, $min, $hour, $mday, $mon, $year, $wday) = localtime(time);
799      } else {      return sprintf("%4d-%02d-%02d (%s) %02d:%02d:%02d",
800          # Delimiter check.          $year + 1900, $mon + 1, $mday, $wdays[$wday], $hour, $min, $sec);
801          my $delim = $subject_delimiter;  }
802          if (defined($option{delimiter})) {  
803              $delim = $option{delimiter};  # URL?SomePage、茖「
804    # URL?[[キセケタ]]、ホキチシー、タ、テ、ソセケ遑「(not yet)
805    # カッタゥナェ、ヒmycmd、read、ヒ、キ、ニ$form、ホニ簣ニ、タ゚ト熙ケ、。」
806    sub normalize_form {
807        foreach my $key (keys %form) {
808            if ($key =~ /^$WikiName$/) {
809                $form{mycmd} = 'read';
810                $form{mypage} = $1;
811                last;
812            } elsif ($key =~ /^$BracketName$/) {
813                $form{mycmd} = 'read';
814                $form{mypage} = $1;
815                last;
816          }          }
   
         # Get the subject of the page.  
         my $subject = $database{$page};  
         $subject =~ s/\r?\n.*//s;  
         return "$delim$subject";  
817      }      }
818  }  }
819    
820  sub send_mail_to_admin {  # ハムエケ・ニ・ケ・ネ、ケヤ、ハ、ヲ、ネ、ュ、ホ・オ・・ラ・
821      my ($page, $mode) = @_;  sub print_sample {
822      return unless $modifier_sendmail;      my $txt = &convert_html(<<"EOD");
823      my $message = <<"EOD";  *ツ邵ォスミ、キ1
824  To: $modifier_mail  **セョクォスミ、キ1-1
825  From: $modifier_mail  -ケ猯ワ1
826  Subject: [Wiki]  -ケ猯ワ2
827  MIME-Version: 1.0  -ケ猯ワ3
828  Content-Type: text/plain; charset=ISO-2022-JP  テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1
829  Content-Transfer-Encoding: 7bit  テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ''カットエ''1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1
830    テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1
831  --------  
832  MODE = $mode  テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2
833  REMOTE_ADDR = $ENV{REMOTE_ADDR}  テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2
834  REMOTE_HOST = $ENV{REMOTE_HOST}  テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2
835  --------  **セョクォスミ、キ1-2
836  $page  :ヘムク1:、、、、、、ス、、、ソイタ簗ク1、ネ''カットエテアク''
837  --------  テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1
838  $database{$page}  テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1
839  --------  テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1
840    :ヘムク2:、、、、、、ス、、、ソイタ簗ク2
841    :ヘムク3:、、、、、、ス、、、ソイタ簗ク3
842    ----
843    *ツ邵ォスミ、キ2
844    **セョクォスミ、キ2-1
845    &lt;http://suika.fam.cx/&gt;
846    **セョクォスミ、キ2-2
847    
848    [[キセケタ]]
849    
850    テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1
851    テハヘ1テハヘ1テハヘ1テハヘ'''カットエ'''1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1
852    テハヘ1テハヘ1テハヘ1テハヘ'''''カッ、、カットエ'''''1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1テハヘ1
853    >テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2
854    >テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2
855    >テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2テハヘ2
856    
857    ・・ル・0・・ル・0・・ル・0・・ル・0・・ル・0・・ル・0
858    
859    >・・ル・1
860    >・・ル・1
861    >・・ル・1
862    >>・・ル・2
863    >>・・ル・2
864    >>・・ル・2
865    >>>・・ル・3
866    -、マ、1
867    --、マ、2
868    、、、、2
869    ---、マ、3
870    --、マ、2
871    ---、マ、3
872    --、マ、2
873    ---、マ、3
874    >>>・・ル・3
875    >>>・・ル・3
876    >>>・・ル・3
877  EOD  EOD
878      &code_convert(\$message, 'jis');      print $txt;
879      open(MAIL, "| $modifier_sendmail");      exit;
     print MAIL $message;  
     close(MAIL);  
880  }  }
881    
882  sub open_db {  sub diff_check {
883      if ($modifier_dbtype eq 'dbmopen') {      traverse_sequences(
884          dbmopen(%database, $dataname, 0666) or &print_error("(dbmopen) $dataname");              $msgrefA, $msgrefB,
885          dbmopen(%infobase, $infoname, 0666) or &print_error("(dbmopen) $infoname");              {
886      } elsif ($modifier_dbtype eq 'AnyDBM_File') {                  MATCH => \&df_match,
887          tie(%database, "AnyDBM_File", $dataname, O_RDWR|O_CREAT, 0666) or &print_error("(tie AnyDBM_File) $dataname");                  DISCARD_A => \&df_delete,
888          tie(%infobase, "AnyDBM_File", $infoname, O_RDWR|O_CREAT, 0666) or &print_error("(tie AnyDBM_File) $infoname");                  DISCARD_B => \&df_add,
889      } else {              }
890          tie(%database, "Yuki::YukiWikiDB", $dataname) or &print_error("(tie Yuki::YukiWikiDB) $dataname");      );
891          tie(%infobase, "Yuki::YukiWikiDB", $infoname) or &print_error("(tie Yuki::YukiWikiDB) $infoname");      &diff_flush;
     }  
892  }  }
893    
894  sub close_db {  sub diff_flush {
895      if ($modifier_dbtype eq 'dbmopen') {      $diff_text .= join('', map { "-$_\n" } splice(@diff_deleted));
896          dbmclose(%database);      $diff_text .= join('', map { "+$_\n" } splice(@diff_added));
         dbmclose(%infobase);  
     } elsif ($modifier_dbtype eq 'AnyDBM_File') {  
         untie(%database);  
         untie(%infobase);  
     } else {  
         untie(%database);  
         untie(%infobase);  
     }  
897  }  }
898    
899  sub open_diff {  sub df_match {
900      if ($modifier_dbtype eq 'dbmopen') {      my ($a, $b) = @_;
901          dbmopen(%diffbase, $diffname, 0666) or &print_error("(dbmopen) $diffname");      &diff_flush;
902      } elsif ($modifier_dbtype eq 'AnyDBM_File') {      $diff_text .= "=$msgrefA->[$a]\n";
         tie(%diffbase, "AnyDBM_File", $diffname, O_RDWR|O_CREAT, 0666) or &print_error("(tie AnyDBM_File) $diffname");  
     } else {  
         tie(%diffbase, "Yuki::YukiWikiDB", $diffname) or &print_error("(tie Yuki::YukiWikiDB) $diffname");  
     }  
903  }  }
904    
905  sub close_diff {  sub df_delete {
906      if ($modifier_dbtype eq 'dbmopen') {      my ($a, $b) = @_;
907          dbmclose(%diffbase);      push(@diff_deleted, $msgrefA->[$a]);
     } elsif ($modifier_dbtype eq 'AnyDBM_File') {  
         untie(%diffbase);  
     } else {  
         untie(%diffbase);  
     }  
908  }  }
909    
910  sub print_searchform {  sub df_add {
911      my ($word) = @_;      my ($a, $b) = @_;
912      print <<"EOD";      push(@diff_added, $msgrefB->[$b]);
 <form action="$url_cgi" method="get">  
     <input type="hidden" name="mycmd" value="search">  
     <input type="text" name="mymsg" value="$word" size="20">  
     <input type="submit" value="$resource{searchbutton}">  
 </form>  
 EOD  
913  }  }
914    
915  sub print_editform {  sub calc_message_digest {   # You have to use MD5...
916      my ($mymsg, $lastmodified, %mode) = @_;      my $text = shift;
917      my $frozen = &is_frozen($form{mypage});      my @text = split(//, $text);
918        my $len = length($text);
919      if ($form{mypreview}) {      my $checksum = 0;
920          if ($form{mymsg}) {      foreach (@text) {
921              unless ($mode{conflict}) {          $checksum += ord($_);
922                  print qq(<h3>$resource{previewtitle}</h3>\n);          $checksum = ($checksum * 2) % 65536 + (($checksum & 32768) ? 1 : 0); # 16bit rotate
                 print qq($resource{previewnotice}\n);  
                 print qq(<div class="preview">\n);  
                 &print_content($form{mymsg});  
                 print qq(</div>\n);  
             }  
         } else {  
             print qq($resource{previewempty});  
         }  
         $mymsg = &escape($form{mymsg});  
     } else {  
         $mymsg = &escape($mymsg);  
923      }      }
924        return "$len:$checksum";
925    }
926    
927      my $edit = $mode{admin} ? 'adminedit' : 'edit';  # Definition of YukiWikiDB
928    package YukiWikiDB;
929    
930      print <<"EOD";  my $debug = 1;
 <form action="$url_cgi" method="post">  
     @{[ $mode{admin} ? qq($resource{frozenpassword} <input type="password" name="mypassword" value="$form{mypassword}" size="10"><br>) : "" ]}  
     <input type="hidden" name="myLastModified" value="$lastmodified">  
     <input type="hidden" name="mypage" value="$form{mypage}">  
     <textarea cols="$cols" rows="$rows" name="mymsg" wrap="off">$mymsg</textarea><br>  
 @{[  
     $mode{admin} ?  
     qq(  
     <input type="radio" name="myfrozen" value="1" @{[$frozen ? qq(checked="checked") : ""]}>$resource{frozenbutton}  
     <input type="radio" name="myfrozen" value="0" @{[$frozen ? "" : qq(checked="checked")]}>$resource{notfrozenbutton}<br>)  
     : ""  
 ]}  
 @{[  
     $mode{conflict} ? "" :  
     qq(  
         <input type="checkbox" name="mytouch" value="on" checked="checked">$resource{touch}<br>  
         <input type="submit" name="mypreview_$edit" value="$resource{previewbutton}">  
         <input type="submit" name="mypreview_write" value="$resource{savebutton}"><br>  
     )  
 ]}  
 </form>  
 EOD  
     unless ($mode{conflict}) {  
         # Show the format rule.  
         open(FILE, $file_format) or &print_error("($file_format)");  
         my $content = join('', <FILE>);  
         &code_convert(\$content, $kanjicode);  
         close(FILE);  
         print &text_to_html($content, toc=>0);  
     }  
 }  
931    
932  sub print_passwordform {  # Constructor
933          print <<"EOD";  sub new {
934  <form action="$url_cgi" method="post">      return shift->TIEHASH(@_);
     <input type="hidden" name="mycmd" value="adminchangepassword">  
     $resource{oldpassword} <input type="password" name="myoldpassword" size="10"><br>  
     $resource{newpassword} <input type="password" name="mynewpassword" size="10"><br>  
     $resource{newpassword2} <input type="password" name="mynewpassword2" size="10"><br>  
     <input type="submit" value="$resource{changepasswordbutton}"><br>  
 </form>  
 EOD  
935  }  }
936    
937  sub is_editable {  # tying
938      my ($page) = @_;  sub TIEHASH {
939      if (&is_bracket_name($page)) {      my ($class, $dbname) = @_;
940          return 0;      my $self = {
941      } elsif ($fixedpage{$page}) {          dir => $dbname,
942          return 0;          keys => [],
943      } elsif ($page =~ /\s/) {      };
944          return 0;      if (not -d $self->{dir}) {
945      } elsif ($page =~ /^\#/) {          if (!mkdir($self->{dir}, 0777)) {
946          return 0;              print "mkdir(" . $self->{dir} . ") fail\n" if ($debug);
947      } elsif ($page =~ /^$interwiki_name$/) {              return undef;
948          return 0;          }
     } else {  
         return 1;  
949      }      }
950        return bless($self, $class);
951  }  }
952    
953  # armor_name:  # Store
954  #   WikiName -> WikiName  sub STORE {
955  #   not_wiki_name -> [[not_wiki_name]]      my ($self, $key, $val) = @_;
956  sub armor_name {      my $file = &make_filename($self, $key);
957      my ($name) = @_;      if (open(FILE,"> $file")) {
958      if ($name =~ /^$wiki_name$/) {          binmode(FILE);
959          return $name;          print FILE $val;
960            close(FILE);
961            return $self->{$key} = $val;
962      } else {      } else {
963          return "[[$name]]";          print "$file create error.";
964      }      }
965  }  }
966    
967  # unarmor_name:  # Fetch
968  #   [[bracket_name]] -> bracket_name  sub FETCH {
969  #   WikiName -> WikiName      my ($self, $key) = @_;
970  sub unarmor_name {      my $file = &make_filename($self, $key);
971      my ($name) = @_;      if (open(FILE, $file)) {
972      if ($name =~ /^$bracket_name$/) {          local $/;
973          return $1;          $self->{$key} = <FILE>;
974      } else {          close(FILE);
         return $name;  
975      }      }
976        return $self->{$key};
977  }  }
978    
979  sub is_bracket_name {  # Exists
980      my ($name) = @_;  sub EXISTS {
981      if ($name =~ /^$bracket_name$/) {      my ($self, $key) = @_;
982          return 1;      my $file = &make_filename($self, $key);
983      } else {      return -e($file);
         return 0;  
     }  
984  }  }
985    
986  sub decode {  # Delete
987      my ($s) = @_;  sub DELETE {
988      $s =~ tr/+/ /;      my ($self, $key) = @_;
989      $s =~ s/%([A-Fa-f0-9][A-Fa-f0-9])/pack("C", hex($1))/eg;      my $file = &make_filename($self, $key);
990      return $s;      unlink $file;
991        return delete $self->{$key};
992  }  }
993    
994  sub encode {  sub FIRSTKEY {
995      my ($s) = @_;      my ($self) = @_;
996      my $encoded = '';      opendir(DIR, $self->{dir}) or die $self->{dir};
997      foreach my $ch (split(//, $s)) {      @{$self->{keys}} = grep /\.txt$/, readdir(DIR);
998          if ($ch =~ /[A-Za-z0-9_]/) {      foreach my $name (@{$self->{keys}}) {
999              $encoded .= $ch;          $name =~ s/\.txt$//;
1000          } else {          $name =~ s/[0-9A-F][0-9A-F]/pack("C", hex($&))/eg;
             $encoded .= '%' . sprintf("%02X", ord($ch));  
         }  
1001      }      }
1002      return $encoded;      return shift @{$self->{keys}};
1003  }  }
1004    
1005  sub init_resource {  sub NEXTKEY {
1006      open(FILE, $file_resource) or &print_error("(resource)");      my ($self) = @_;
1007      while (<FILE>) {      return shift @{$self->{keys}};
         chomp;  
         next if /^#/;  
         my ($key, $value) = split(/=/, $_, 2);  
         $resource{$key} = &code_convert(\$value, $kanjicode);  
     }  
     close(FILE);  
1008  }  }
1009    
1010  sub conflict {  sub make_filename {
1011      my ($page, $rawmsg) = @_;      my ($self, $key) = @_;
1012      if ($form{myLastModified} eq &get_info($page, $info_LastModified)) {      my $enkey = '';
1013          return 0;      foreach my $ch (split(//, $key)) {
1014      }          $enkey .= sprintf("%02X", ord($ch));
     open(FILE, $file_conflict) or &print_error("(conflict)");  
     my $content = join('', <FILE>);  
     &code_convert(\$content, $kanjicode);  
     close(FILE);  
     &print_header($page);  
     &print_content($content);  
     &print_editform($rawmsg, $form{myLastModified}, frozen=>0, conflict=>1);  
     &print_footer($page);  
     return 1;  
 }  
   
 sub get_now {  
     my (@week) = qw(Sun Mon Tue Wed Thu Fri Sat);  
     my ($sec, $min, $hour, $day, $mon, $year, $weekday) = localtime(time);  
     $year += 1900;  
     $mon++;  
     $mon = "0$mon" if $mon < 10;  
     $day = "0$day" if $day < 10;  
     $hour = "0$hour" if $hour < 10;  
     $min = "0$min" if $min < 10;  
     $sec = "0$sec" if $sec < 10;  
     $weekday = $week[$weekday];  
     return "$year-$mon-$day ($weekday) $hour:$min:$sec";  
 }  
   
 # [[YukiWiki http://www.hyuki.com/yukiwiki/wiki.cgi?euc($1)]]  
 sub init_InterWikiName {  
     my $content = $database{$InterWikiName};  
     while ($content =~ /\[\[(\S+) +(\S+)\]\]/g) {  
         my ($name, $url) = ($1, $2);  
         $interwiki{$name} = $url;  
1015      }      }
1016        return $self->{dir} . "/$enkey.txt";
1017  }  }
1018    __END__
1019    
1020  sub interwiki_convert {  =head1 NAME
     my ($type, $localname) = @_;  
     if ($type eq 'sjis' or $type eq 'euc') {  
         &code_convert(\$localname, $type);  
         return &encode($localname);  
     } elsif ($type eq 'ykwk') {  
         # for YukiWiki1  
         if ($localname =~ /^$wiki_name$/) {  
             return $localname;  
         } else {  
             &code_convert(\$localname, 'sjis');  
             return &encode("[[" . $localname . "]]");  
         }  
     } elsif ($type eq 'asis') {  
         return $localname;  
     # Walrus add (4) start  
     } elsif ($type eq 'isbn') {  
         $localname = join('', ($localname =~ /[0-9x]/g)) if ($localname =~ /^(\d-?){9}[\dx]$/);  
         return $localname;  
     # Walrus add (4) end  
     } else {  
         return $localname;  
     }  
 }  
1021    
1022  sub get_info {  YukiWiki - シォヘウ、ヒ・レ。シ・ク、トノイテ。ヲコス。ヲハヤスク、ヌ、ュ、Web・レ。シ・クケステロCGI
     my ($page, $key) = @_;  
     my %info = map { split(/=/, $_, 2) } split(/\n/, $infobase{$page});  
     return $info{$key};  
 }  
1023    
1024  sub set_info {      Copyright (C) 2000,2001 by Hiroshi Yuki.
1025      my ($page, $key, $value) = @_;      キセケタ <hyuki@hyuki.com>
1026      my %info = map { split(/=/, $_, 2) } split(/\n/, $infobase{$page});      http://www.hyuki.com/
1027      $info{$key} = $value;      http://www.hyuki.com/yukiwiki/
     my $s = '';  
     for (keys %info) {  
         $s .= "$_=$info{$_}\n";  
     }  
     $infobase{$page} = $s;  
 }  
1028    
1029  sub frozen_reject {  =head1 SYNOPSIS
     my ($isfrozen) = &get_info($form{mypage}, $info_IsFrozen);  
     my ($willbefrozen) = $form{myfrozen};  
     if (not $isfrozen and not $willbefrozen) {  
         # You need no check.  
         return 0;  
     } elsif (valid_password($form{mypassword})) {  
         # You are admin.  
         return 0;  
     } else {  
         &print_error($resource{passworderror});  
         return 1;  
     }  
 }  
1030    
1031  sub valid_password {      http://www.hyuki.com/yukiwiki/yukiwiki.cgi
     my ($givenpassword) = @_;  
     my ($validpassword_crypt) = &get_info($AdminSpecialPage, $info_AdminPassword);  
     if (crypt($givenpassword, $validpassword_crypt) eq $validpassword_crypt) {  
         return 1;  
     } else {  
         return 0;  
     }  
 }  
1032    
1033  sub is_frozen {  =head1 DESCRIPTION
     my ($page) = @_;  
     if (&get_info($page, $info_IsFrozen)) {  
         return 1;  
     } else {  
         return 0;  
     }  
 }  
1034    
1035  sub do_comment {  YukiWiki。ハキセ・ヲ・」・ュ・」。ヒ、マサイイテシヤ、ャシォヘウ、ヒ・レ。シ・ク、トノイテ。ヲコス。ヲハヤスク、ヌ、ュ、
1036      my ($content) = $database{$form{mypage}};  ノヤサラオト、ハWeb・レ。シ・クキイ、コ、CGI、ヌ、ケ。」
1037      my $datestr = &get_now;  Web、ヌニーコ、ケ、キヌシィネト、ネ、チ、遉テ、ネサ、ニ、、、゙、ケ、ャ。「
1038      my $namestr = $form{myname} ? " ''[[$form{myname}]]'' : " : " ";  Webキヌシィネト、ャテア、ヒ・皈テ・サ。シ・ク、トノイテ、ケ、、タ、ア、ハ、ホ、ヒツミ、キ、ニ。「
1039      if ($content =~ s/(\Q$embed_comment\E)/- $datestr$namestr$form{mymsg}\n$1/) {  YukiWiki、マ。「Web・レ。シ・クチエツホ、シォヘウ、ヒハムケケ、ケ、、ウ、ネ、ャ、ヌ、ュ、゙、ケ。」
         ;  
     } else {  
         $content =~ s/(\Q$embed_rcomment\E)/$1\n- $datestr$namestr$form{mymsg}/;  
     }  
     if ($form{mymsg}) {  
         $form{mymsg} = $content;  
         $form{mytouch} = 'on';  
         &do_write;  
     } else {  
         $form{mycmd} = 'read';  
         &do_read;  
     }  
 }  
1040    
1041  sub embedded_to_html {  YukiWiki、マ。「Cunningham & Cunningham、ホWikiWikiWeb、ホ
1042      my ($embedded) = @_;  サナヘヘ、サイケヘ、ヒ、キ、ニニネシォ、ヒコ、鬢、゙、キ、ソ。」
     if ($embedded eq $embed_comment or $embedded eq $embed_rcomment) {  
         my $lastmodified = &get_info($form{mypage}, $info_LastModified);  
         return <<"EOD";  
 <form action="$url_cgi" method="post">  
     <input type="hidden" name="mycmd" value="comment">  
     <input type="hidden" name="mypage" value="$form{mypage}">  
     <input type="hidden" name="myLastModified" value="$lastmodified">  
     <input type="hidden" name="mytouch" value="on">  
     $resource{yourname}  
     <input type="text" name="myname" value="" size="10">  
     <input type="text" name="mymsg" value="" size="40">  
     <input type="submit" value="$resource{commentbutton}">  
 </form>  
 EOD  
     # Walrus add (5) start  
     } elsif ($embedded =~ /$embed_interwiki/ and my $remoteurl = $interwiki{$2}) {  
         $_ = &make_interwiki_box($1, $2);  
         return ($_) ? $_ : $embedded;  
     # Walrus add (5) end  
     } else {  
         return $embedded;  
     }  
 }  
1043    
1044  # Walrus add (5) start  YukiWiki、マPerl、ヌス、ォ、、ソCGI・ケ・ッ・・ラ・ネ、ネ、キ、ニシツクス、オ、、ニ、、、゙、ケ、ホ、ヌ。「
1045  sub do_interwiki_box {  Perl、ャニーコ、ケ、Web・オ。シ・ミ、ハ、鬢ミネ豕モナェヘニーラ、ヒタ゚テヨ、ヌ、ュ、゙、ケ。」
     my $remoteurl = $interwiki{$form{'myintername'}};  
     if ($remoteurl) {  
         $remoteurl =~ s/\b(euc|sjis|ykwk|asis|isbn)\(\$1\)/&interwiki_convert($1, $form{'mylocalname'})/e;  
         print "Location: $remoteurl\n\n";  
         exit(1);  
     } else {  
         &do_read;  
     }  
 }  
 # Walrus add (5) end  
1046    
1047  # Walrus add (5) start  、「、ネ、マdbmopen、ャサネ、ィ、エトカュ、ハ、鬢ミタ゚テヨ、ヌ、ュ、゙、ケ(Version 1.5.0ーハケ゚、ハ、馘bmopen、ャサネ、ィ、ハ、ッ、ニ、簑゚テヨ、ヌ、ュ、゙、ケ)。」
 sub make_interwiki_box {  
     my ($localname, $intername) = @_;  
     my %ignoretype = (  
         'box'      => 'text',  
         'text'     => 'text',  
         'pass'     => 'password',  
         'password' => 'password'  
     );  
     my $converted = ($ignoretype{$localname}) ? <<EOD : undef;  
 <form action="$url_cgi" method="post">  
     <input type="hidden" name="mycmd" value="interwikibox">  
     <input type="hidden" name="mypage" value="$form{mypage}">  
     <input type="hidden" name="myintername" value="$intername">  
     $intername:  
     <input type="$ignoretype{$localname}" name="mylocalname" value="" size="10">  
     <input type="submit" value="Submit">  
 </form>  
 EOD  
 }  
 # Walrus add (5) end  
1048    
 sub code_convert {  
     my ($contentref, $kanjicode) = @_;  
 #   &Jcode::convert($contentref, $kanjicode);       # for Jcode.pm  
     &jcode::convert($contentref, $kanjicode);       # for jcode.pl  
     return $$contentref;  
 }  
   
 sub test_convert {  
     my $txt = &text_to_html(<<"EOD", toc=>1);  
 *HEADER1  
 **HEADER1-1  
 -ITEM1  
 -ITEM2  
 -ITEM3  
 PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1  
 PAR1PAR1PAR1PAR1PAR1PAR1''BOLD''PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1  
 PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1  
   
 PAR2PAR2PAR2PAR2PAR2PAR2PAR2PAR2PAR2PAR2PAR2PAR2PAR2PAR2PAR2PAR2  
 PAR2PAR2PAR2PAR2PAR2PAR2'''ITALIC'''PAR2PAR2PAR2PAR2PAR2PAR2PAR2  
 PAR2PAR2PAR2PAR2PAR2PAR2PAR2PAR2PAR2PAR2PAR2PAR2PAR2PAR2PAR2PAR2  
 **HEADER1-2  
 :TERM1:DESCRIPTION1 AND ''BOLD''  
 PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1  
 PAR1PAR1PAR1PAR1PAR1PAR1''BOLD''PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1  
 PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1  
 :TERM2:DESCRIPTION2  
 :TERM3:DESCRIPTION3  
 ----  
 *HEADER2  
 **HEADER2-1  
 http://www.hyuki.com/  
 **HEADER2-2  
1049    
1050  [[YukiWiki2]]  YukiWiki、マ・ユ・遙シ・ス・ユ・ネ、ヌ、ケ。」
1051    、エシォヘウ、ヒ、ェサネ、、、ッ、タ、オ、、。」
1052    
1053  PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1  =head1 タ゚テヨハヒ。
 PAR1PAR1PAR1PAR1PAR1PAR1'''''BOLD ITALIC'''''PAR1PAR1PAR1PAR1PAR1  
 PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1PAR1  
 >PAR2PAR2PAR2PAR2PAR2PAR2PAR2PAR2PAR2PAR2PAR2PAR2PAR2PAR2PAR2PAR2  
 >PAR2PAR2PAR2PAR2PAR2PAR2'''ITALIC'''PAR2PAR2PAR2PAR2PAR2PAR2PAR2  
 >PAR2PAR2PAR2PAR2PAR2PAR2PAR2PAR2PAR2PAR2PAR2PAR2PAR2PAR2PAR2PAR2  
   
 LEVEL0LEVEL0LEVEL0LEVEL0LEVEL0LEVEL0LEVEL0  
   
 >LEVEL1  
 >LEVEL1  
 >LEVEL1  
 >>LEVEL2  
 >>LEVEL2  
 >>LEVEL2  
 >>>LEVEL3  
 -HELLO-1  
 --HELLO-2  
 (HELLO-2, HELLO-2, HELLO-2)  
 ---HELLO-3  
 (HELLO-3, HELLO-3, HELLO-3)  
 --HELLO-2  
 ---HELLO-3  
 --HELLO-2  
 ---HELLO-3  
 >>>LEVEL3  
 >>>LEVEL3  
 >>>LEVEL3  
 >>>LEVEL3  
 EOD  
     print $txt;  
     exit;  
 }  
1054    
1055  sub do_diff {  =head2 ニシ
     if (not &is_editable($form{mypage})) {  
         &do_read;  
         return;  
     }  
     &open_diff;  
     my $title = $form{mypage};  
     &print_header($title);  
     $_ = &escape($diffbase{$form{mypage}});  
     &close_diff;  
     print qq(<h3>$resource{difftitle}</h3>);  
     print qq($resource{diffnotice});  
     print qq(<pre class="diff">);  
     foreach (split(/\n/, $_)) {  
         if (/^\+(.*)/) {  
             print qq(<b class="added">$1</b>\n);  
         } elsif (/^\-(.*)/) {  
             print qq(<s class="deleted">$1</s>\n);  
         } elsif (/^\=(.*)/) {  
             print qq(<span class="same">$1</span>\n);  
         } else {  
             print qq|??? $_\n|;  
         }  
     }  
     print qq(</pre>);  
     print qq(<hr>);  
     &print_footer($title);  
 }  
1056    
1057  sub do_rss {  YukiWiki、ホコヌソキネヌ、マ。「
1058      my $rss = new Yuki::RSS(  http://www.hyuki.com/yukiwiki/
1059          version => '1.0',  、ォ、鯣シ熙ヌ、ュ、゙、ケ。」
         encoding => $charset,  
     );  
     $rss->channel(  
         title => $modifier_rss_title,  
         link  => $modifier_rss_link,  
         description => $modifier_rss_description,  
     );  
     my $recentchanges = $database{$RecentChanges};  
     my $count = 0;  
     foreach (split(/\n/, $recentchanges)) {  
         last if ($count >= 15);  
         /^\- \d\d\d\d\-\d\d\-\d\d \(...\) \d\d:\d\d:\d\d (\S+)/;    # date format.  
         my $title = &unarmor_name($1);  
         my $escaped_title = &escape($title);  
         my $link = $modifier_rss_link . '?' . &encode($title);  
         my $description = $escaped_title . &escape(&get_subjectline($title));  
         $rss->add_item(  
             title => $escaped_title,  
             link  => $link,  
             description => $description,  
         );  
         $count++;  
     }  
     # print RSS information (as XML).  
     print <<"EOD"  
 Content-type: text/xml  
1060    
1061  @{[$rss->as_string]}  =head2 ・ユ・。・、・ーヘ
 EOD  
 }  
1062    
1063  sub is_exist_page {      readme.txt      ・ノ・ュ・螂皈・ネ
1064      my ($name) = @_;      yukiwiki.cgi    YukiWikiヒワツホ
1065      if ($use_exists) {      yukiwiki.gif    ・・エ。ハ・ォ・鬘シネヌ。ヒ
1066          return exists($database{$name});      yukimono.gif    ・・エ。ハ・筵ホ・ッ・ネヌ。ヒ
1067      } else {      jcode.pl        エチサ・ウ。シ・ノ・鬣、・ヨ・鬣
         return $database{$name};  
     }  
 }  
1068    
1069  1;  =head2 ・、・・ケ・ネ。シ・
 __END__  
 =head1 NAME  
1070    
1071  wiki.cgi - This is YukiWiki, yet another Wiki clone.  =over 4
1072    
1073  =head1 DESCRIPTION  =item 1.
1074    
1075    ・「。シ・ォ・、・ヨ、イ、ッ。」
1076    
1077    =item 2.
1078    
1079    yukiwiki.cgi、ホ、マ、ク、皃ホハ、ヒ、「、タ゚ト熙ウホヌァ、キ、゙、ケ。」
1080    トフセ、マイソ、筅キ、ハ、ッ、ニ、隍、、ャ。「
1081    、マ、ク、皃マ$touchfile、''、ヒ、キ、ソハ、ャ、隍、、ヌ、キ、遉ヲ。」
1082    
1083    =item 3.
1084    
1085    yukiwiki.cgi、ネjcode.pl、ニア、ク、ネ、ウ、、ヒタ゚テヨ、キ、゙、ケ。」
1086    
1087    =item 4.
1088    
1089    ・オ・、・コ0、ホyukiwiki.db、ネ、、、ヲ・ユ・。・、・、タ゚テヨ、キ、゙、ケ。」
1090    。ハPerl・キ・ケ・ニ・爨ヒ、隍テ、ニ、マyukiwiki.pag, yukiwiki.dir。ヒ
1091    
1092    =item 5.
1093    
1094    yukiwiki.cgi、ヒ・ヨ・鬣ヲ・カ、ォ、鬣「・ッ・サ・ケ、キ、゙、ケ。」
1095    
1096    =back
1097    
1098    =head2 ・ム。シ・゚・テ・キ・逾
1099    
1100            ・ユ・。・、・        ・ム。シ・゚・テ・キ・逾      ナセチ・筍シ・ノ
1101            yukiwiki.cgi    755                 ASCII
1102            yukiwiki.gif    644                 BINARY
1103            yukimono.gif    644                 BINARY
1104            jcode.pl        644                 ASCII
1105    
1106        $dbmopen = 1; 、ヒ、キ、ソセケ:
1107            yukiwiki.db     666                 BINARY
1108            (yukiwiki.pag, yukiwiki.dir、ホセケ遉筅「、遙ヒ
1109    
1110        $dbmopen = 0; 、ヒ、キ、ソセケ: (・ォ・・・ネ・ヌ・」・・ッ・ネ・熙777、ヒ、キ、ニ、ェ、ッ)
1111            .               777                 (ナセチ、キ、ハ、、)
1112    
1113    =head1 ・ヌ。シ・ソ、ホ・ミ・テ・ッ・「・テ・ラハヒ。
1114    
1115    $dbmopen = 1;、ホセケ遉マ。「
1116    ・ヌ。シ・ソ、マ、ケ、ル、ニyukiwiki.db(.dir, .pag)、ヒニ、。」
1117    、ウ、、・ミ・テ・ッ・「・テ・ラ、ケ、、ミ、隍、。」
1118    
1119    $dbmopen = 0;、ホセケ遉マ。「
1120    yukiwiki、ネ、、、ヲ・ヌ・」・・ッ・ネ・熙ャ、ヌ、ュ、、ホ、ヌ。「
1121    、ウ、ーハイシ、・ミ・テ・ッ・「・テ・ラ、ケ、、ミ、隍、。」
1122    
1123    =head1 ソキ、キ、、・レ。シ・ク、ホコ、ハ
1124    
1125    =over 4
1126    
1127    =item 1.
1128    
1129    、゙、コ。「ナャナ、ハ・レ。シ・ク。ハホ网ィ、ミFrontPage。ヒ、チェ、モ。「
1130    ・レ。シ・ク、ホイシ、ヒ、「、。ヨハヤスク。ラ・・・ッ、、ソ、ノ、熙゙、ケ。」
1131    
1132    =item 2.
1133    
1134    、ケ、、ネ・ニ・ュ・ケ・ネニホマ、ャ、ヌ、ュ、セツヨ、ヒ、ハ、、ホ、ヌ。「
1135    、ス、ウ、ヒNewPage、ホ、隍ヲ、ハテアク
1136    。ハツ醋クサセョハクサコョコ゚、キ、ニ、、、アムハクサホ。ヒ
1137    、ス、、、ニ。ヨハンツク。ラ、キ、゙、ケ。」
1138    
1139    =item 3.
1140    
1141    ハンツク、ケ、、ネ。「FrontPage、ホ・レ。シ・ク、ャス、ュエケ、、遙「
1142    、「、ハ、ソ、ャス、、、ソNewPage、ネ、、、ヲハクサホ、ホク螟、ヒ ? 、ネ、、、ヲ・・・ッ、ャノスシィ、オ、、゙、ケ。」
1143    、ウ、ホ ? 、マ、ス、ホ・レ。シ・ク、ャ、゙、タツクコ゚、キ、ハ、、、ウ、ネ、シィ、ケー、ヌ、ケ。」
1144    
1145    =item 4.
1146    
1147    、ス、ホ ? 、・ッ・・テ・ッ、ケ、、ネソキ、キ、、・レ。シ・クNewPage、ャ、ヌ、ュ、゙、ケ、ホ、ヌ。「
1148    、「、ハ、ソ、ホケ・、ュ、ハハクセマ、、ス、ホソキ、キ、、・レ。シ・ク、ヒス、、、ニハンツク、キ、゙、ケ。」
1149    
1150    =item 5.
1151    
1152    NewPage・レ。シ・ク、ャ、ヌ、ュ、、ネFrontPage、ホ ? 、マセテ、ィ、ニ。「・・・ッ、ネ、ハ、熙゙、ケ。」
1153    
1154    =back
1155    
1156    =head1 ・ニ・ュ・ケ・ネターキチ、ホ・。シ・
1157    
1158    =over 4
1159    
1160    =item *
1161    
1162    マ「ツウ、キ、ソハ」ソケヤ、マ・ユ・」・、オ、、ニノスシィ、オ、、゙、ケ。」
1163    
1164    =item *
1165    
1166    カケヤ、マテハヘC<< <p> >>、ホカ霏レ、熙ネ、ハ、熙゙、ケ。」
1167    
1168    =item *
1169    
1170    HTML、ホ・ソ・ー、マス、ア、゙、サ、。」
1171    
1172    =item *
1173    
1174    B<''・ワ。シ・・ノ''>、ホ、隍ヲ、ヒ・キ・・ー・・ッ・ゥ。シ・ネニ、ト、ヌ、マ、オ、爨ネ。「
1175    ・ワ。シ・・ノC<< <b> >>、ヒ、ハ、熙゙、ケ。」
1176    
1177    =item *
1178    
1179    B<'''・、・ソ・・テ・ッ'''>、ホ、隍ヲ、ヒ・キ・・ー・・ッ・ゥ。シ・ネサー、ト、ヌ、マ、オ、爨ネ。「
1180    ・、・ソ・・テ・ッC<< <i> >>、ヒ、ハ、熙゙、ケ。」
1181    
1182    =item *
1183    
1184    B<---->、ホ、隍ヲ、ヒ・゙・、・ハ・ケ4、ト、ャ、「、、ネ。「
1185    ソ衞ソタC<< <hr> >>、ヒ、ハ、熙゙、ケ。」
1186    
1187    =item *
1188    
1189    ケヤ、B<*>、ヌ、マ、ク、皃、ネ。「
1190    ツ邵ォスミ、キC<< <h2> >>、ヒ、ハ、熙゙、ケ。」
1191    
1192    =item *
1193    
1194    ケヤ、B<**>、ヌ、マ、ク、皃、ネ。「
1195    セョクォスミ、キC<< <h3> >>、ヒ、ハ、熙゙、ケ。」
1196    
1197    =item *
1198    
1199    ケヤ、・゙・、・ハ・ケ-、ヌ、マ、ク、皃、ネ。「
1200    イユセス、ュC<< <ul> >>、ヒ、ハ、熙゙、ケ。」
1201    ・゙・、・ハ・ケ、ホソ、ャチ、ィ、、ネ・・ル・、ャイシ、ャ、熙゙、ケ。ハ3・・ル・、゙、ヌ。ヒ
1202    
1203        -ケ猯ワ1
1204        --ケ猯ワ1-1
1205        --ケ猯ワ1-2
1206        -ケ猯ワ2
1207        -ケ猯ワ3
1208        --ケ猯ワ3-1
1209        ---ケ猯ワ3-1-1
1210        ---ケ猯ワ3-1-2
1211        --ケ猯ワ3-2
1212    
1213    =item *
1214    
1215    ・ウ・・、サネ、ヲ、ネ。「
1216    ヘムク、ネイタ簗ク、ホ・・ケ・ネC<< <dl> >>、ャス、ア、゙、ケ。」
1217    
1218        :ヘムク1:、、、、、、ス、、、ソイタ簗ク1
1219        :ヘムク2:、、、、、、ス、、、ソイタ簗ク2
1220        :ヘムク3:、、、、、、ス、、、ソイタ簗ク3
1221    
1222    =item *
1223    
1224    ・・・ッ
1225    
1226    =over 4
1227    
1228    =item *
1229    
1230    LinkToSomePage、腱rontPage、ホ、隍ヲ、ヒ。「
1231    アムテアク、ホコヌス鬢ホーハクサ、ツ醋クサ、ヒ、キ、ソ、筅ホ、ャ
1232    ニ、トーハセ袞「ツウ、キ、ソ、筅ホ、マYukiWiki、ホ・レ。シ・クフセ、ネ、ハ、遙「
1233    、ス、、ャハクセマテ讀ヒエ゙、゙、、、ネ・・・ッ、ヒ、ハ、熙゙、ケ。」
1234    
1235    =item *
1236    
1237    http://www.hyuki.com/ 、ホ、隍ヲ、ハURL、マシォニーナェ、ヒ・・・ッ、ヒ、ハ、熙゙、ケ。」
1238    
1239    =item *
1240    
1241    ニスナ、ホツ遉ォ、テ、ウ[[ ]]、ヌ、ッ、ッ、テ、ソハクサホ、筍「
1242    YukiWiki、ホ・レ。シ・クフセ、ヒ、ハ、熙゙、ケ。」
1243    ツ遉ォ、テ、ウ、ホテ讀ヒ、マ・ケ・レ。シ・ケ、エ゙、皃ニ、マ、、、ア、゙、サ、。」
1244    ニヒワク、篏ネ、ィ、゙、ケ。」
1245    
1246    =back
1247    
1248    =item *
1249    
1250    ケヤニャ、ャ・ケ・レ。シ・ケ、茹ソ・ヨ、ヌサマ、゙、テ、ニ、、、、ネ。「
1251    、ス、、マターキチコム、゚、ホテハヘC<< <pre> >>、ネ、キ、ニーキ、、、゙、ケ。」
1252    ・ラ・・ー・鬣爨ホノスシィ、ハ、ノ、ヒサネ、ヲ、ネハリヘ、ヌ、ケ。」
1253    
1254    
1255    =item *
1256    
1257    ケヤ、 > 、ヌ、マ、ク、皃、ネ。「
1258    ーヘムハクC<< <blockquote> >>、ャス、ア、゙、ケ。」
1259    >、ホソ、ャツソ、、、ネ・、・・ヌ・・ネ、ャソシ、ッ、ハ、熙゙、ケ。ハ3・・ル・、゙、ヌ。ヒ。」
1260    
1261        >ハクセマ
1262        >ハクセマ
1263        >>、オ、鬢ハ、ーヘム
1264        >ハクセマ
1265    
1266    =back
1267    
1268    =head1 ケケソキヘホ
1269    
1270    =over 4
1271    
1272    =item *
1273    
1274    2001ヌッ10キ20ニ。「Version 1.6.6。」
1275    
1276    ケケソキ、ホセラニヘツミコ。」
1277    クオ・レ。シ・ク、ホエハテア、ハ・チ・ァ・テ・ッ・オ・爨シ隍テ、ニ、ェ、ュ。「
1278    ケケソキチー、ヒ・チ・ァ・テ・ッ・オ・爨ネ豕モ、ケ、。」
1279    ス、タオクトス熙マdigest、ネ、、、ヲハクサホ、ク。コ、ケ、、ミハャ、ォ、。」
1280    ヒワヘ隍マMD5、ハ、ノ、ヌ、チ、网、ネ、荀テ、ソハ、ャ、、、、、ホ、タ、ア、、ノ。」
1281    
1282    セラニヘサ、ヒノスシィ、オ、、・皈テ・サ。シ・ク、ハ、ノ、マ。ヨカヒーュ。ラ、オ、、ホ・レ。シ・ク、サイケヘ、ヒ、キ、ソ。」
1283    
1284    =item *
1285    
1286    2001ヌッ10キ17ニ。「Version 1.6.5。」
1287    
1288    ・ラ・・モ・蝪シイ靂フ、ヌ。「ケケソキ・ワ・ソ・、イ。、キ、ソ、ネ、ュ、ヒチソョ、オ、、
1289    ・皈テ・サ。シ・ク、ホニ簣ニ、inputヘラチヌ、ホtype="hidden"、サネ、テ、ニヒ荀盪、爨ホ、、荀皃。」
1290    ツ螟、熙ヒ。「textareaヘラチヌ、サネ、ヲ。」
1291    コニ・ラ・・モ・蝪シヘム、ヒmyspecial_、ニウニ。」、ヌ、筅ュ、、、、ハツミコ、ヌ、マ、ハ、、。」
1292    
1293    =item *
1294    
1295    2001ヌッ8キ30ニ。「Version 1.6.4。」
1296    
1297    URL、ヌ・タ・、・・ッ・ネ、ヒ・レ。シ・クフセ、サリト熙キ、ニ、筍「
1298    $WikiName、ネ$BracketNameーハウー、ホ・レ。シ・ク、コ、、ハ、、、隍ヲ、ヒ、キ、ソ。」
1299    (is_valid_name、ネis_editableサイセネ)。」
1300    
1301    =item *
1302    
1303    2001ヌッ8キ30ニ。「Version 1.6.3。」
1304    
1305    RecentChanges、ハヤスク。ヲコニハヤスクノヤイト、ネ、キ、ソ。」
1306    ハヤスクノヤイト・レ。シ・ク、マ@uneditable、ヒ・レ。シ・クフセ、ニ、、。」
1307    
1308    =item *
1309    
1310    2001ヌッ2キ25ニ。「Version 1.6.1, 1.6.2。」
1311    
1312    コケハャオ。ヌス、ホ・ミ・ース、タオ。」
1313    do_preview、ヌ'>'、ャーキ、ィ、ハ、、・ミ・ー、ス、タオ
1314    。ハ・譯シ・カ、ォ、鬢ホサリナヲ。ヒ。」
1315    
1316    =item *
1317    
1318    2001ヌッ2キ22ニ。「Version 1.6.0。」
1319    コケハャオ。ヌス、シツチ、キ、ソ。」
1320    
1321    =item *
1322    
1323    2001ヌッ2キ19ニ。「Version 1.5.4。」
1324    イ霖・ユ・。・、・、リ、ホ・・・ッ、マイ霖、ヒ、キ、ニ、゚、ソ。」
1325    
1326    =item *
1327    
1328    2001ヌッ2キ19ニ。「Version 1.5.3。」
1329    RecentChanges、ホテ讀ヒコス、キ、ソ・レ。シ・ク、ャ、「、、ホ、、荀皃ソ。」
1330    use strict;、ヌー、テ、ォ、ォ、ノハャ、セッ、キターヘ(エーチエ、ヌ、マ、ハ、、)。」
1331    
1332    =item *
1333    
1334    2001ヌッ2キ16ニ。「Version 1.5.2。」
1335    textarea、ヒノスシィ、ェ、隍モ・ラ・・モ・蝪シ、ケ、チー、ヒ < 、 > 、 &lt; 、 &gt; 、ヒハムエケ、キ、ソ
1336    (do_preview, editpage, print_preview_buttons)。」
1337    
1338    =item *
1339    
1340    2000ヌッ12キ27ニ。「Version 1.5.1。」
1341    ・ラ・・モ・蝪シイ靂フ、ターヘ、キ、ソ。」
1342    
1343    =item *
1344    
1345    2000ヌッ12キ22ニ。「Version 1.5.0。」
1346    チエツホナェ、ヒ、コ、、、ヨ、ス、ュトセ、キ、ソ。」
1347    ーヘ、ハフナモコタョ、ケ、、隍ヲ、ヒ、キ、ソ(do_list)。」
1348    ス、ュケ、狠ー、ヒウホヌァイ靂フ、スミ、ケ、隍ヲ、ヒ、キ、ソ(do_preview)。」
1349    ・ニ・ュ・ケ・ネ、ホス、ュハ、ハヤスクイ靂フ、ヒニ、、ソ(do_edit, do_reedit)。」
1350    WhatsNew「ェRecentChanges。「TopPage「ェFrontPage、ヒハムケケ、キ、ソ。」
1351    
1352    =item *
1353    
1354    2000ヌッ12キ20ニ。「Version 1.1.0。」
1355    tie、ヘヘム、キ、ニ。「dbmopen、ャサネ、ィ、ハ、、セケ遉ヌ、簇ーコ、ケ、、隍ヲ、ヒス、タオ。」
1356    ヘヘムシヤ、ホ1ソヘ、ヌ、「、。ヨカヒーュ。ラ、オ、、ォ、
1357    チ、テ、ニ、、、ソ、タ、、、ソ・ウ。シ・ノ、クオ、ヒ、キ、ニ、、、゙、ケ。」
1358    
1359    =item *
1360    
1361    2000ヌッ9キ5ニ。「Version 1.0.2。」
1362     <body color=...> 「ェ <body bgcolor=...>
1363    ヘヘムシヤ、ォ、鬢ホサリナヲ、ヒ、隍。」エカシユ。」
1364    
1365    =item *
1366    
1367    2000ヌッ8キ6ニ。「Version 1.0.1、クウォ。」
1368    C MAGAZINE。ハ・ス・ユ・ネ・ミ・・ッ・ム・ヨ・・テ・キ・・ー。ヒ
1369    2000ヌッ10キケ賺「コワオュサク、アクウォネヌ。」
1370    [[ ]] 、ホコヌク螟ャ。ヨヒセ。ラ、ホ、隍ヲ、ヒ・キ・ユ・ネJIS、ヌ
1371    0x5D、ヒ、ハ、セケ遉ホイネ、ケヤ、ハ、テ、ソ。」
1372    
1373    =item *
1374    
1375    2000ヌッ8キ5ニ。「Version 1.0.0、クウォ。」
1376    
1377    =item *
1378    
1379    2000ヌッ7キ23ニ。「Version 0.82、クウォ。」
1380    ハヤスクサ、ホ・・・ッ・゚・ケ。」
1381    <textarea>、ホツータュハムケケ。」
1382    
1383    =item *
1384    
1385    2000ヌッ7キ22ニ。「Version 0.81、クウォ。」
1386    ・・エ、チネ、゚ケ、爍」
1387    
1388    =item *
1389    
1390    2000ヌッ7キ21ニ。「Version 0.80、クウォ。」
1391    POD、CGIテ讀ヒス、ュケ、爍」
1392    
1393    =item *
1394    
1395    2000ヌッ7キ19ニ。「Version 0.70、クウォ。」
1396    '''・、・ソ・・テ・ッ'''、茖「--。「---。「>>。「>>>、ハ、ノ、シツチ。」
1397    
1398    =item *
1399    
1400    2000ヌッ7キ18ニ。「Version 0.60、クウォ。」
1401    *ツタサ*、''ツタサ''、ヒハムケケ
1402    
1403    =item *
1404    
1405    2000ヌッ7キ17ニ。「Version 0.50、クウォ。」
1406    
1407    =item *
1408    
1409    2000ヌッ7キ17ニ。「、オ、鬢ヒ、、、、、、トノイテ、ケ、。」
1410    
1411    =item *
1412    
1413    2000ヌッ7キ16ニ。「、、、、、、トノイテ。」
1414    
1415    =item *
1416    
1417    2000ヌッ7キ15ニ。「クウォ。」
1418    
1419    =back
1420    
1421    =head1 TODO
1422    
1423        - ・ニ・ュ・ケ・ネノスシィ・筍シ・ノ
1424        - Charset、フタシィ。」
1425        - textareaテ讀ホハト、ク・ソ・ーツミア
1426        - ・皈ヒ・蝪シ、ホアムクノスオュノユオュ
1427        - ・ラ・・モ・蝪シ、ホ・ワ・ソ・、ヌ。「mymsg、input、ホvalue、ヒニ、、ニ、、、、ャ。「イケヤ、、ス、ホ、゙、゙value、ヒ、、、、ニ、マ、、、ア、ハ、、、ホ、ヌ、マ、ハ、、、ォ。」
1428        - 。ヨコニハヤスク。ラ、ホオ。ヌス、マ・ヨ・鬣ヲ・カ、ホ back 、ヌスシハャ、ヌ、マ、ハ、、、ォ。」・ラ・・モ・蝪シ、マ、筅テ、ネ・キ・・ラ・、ヒ。」
1429        - ・レ。シ・ク・ソ・、・ネ・。ハWikiname。ヒ、ャク。コ、ヒ、ォ、ォ、、隍ヲ、ヒ、ケ、。」
1430        - InterWikiノ、ホオ。ヌス。ヨURL、ア」、キ、ト、ト。「・・・ッ、ト・、。ラ
1431    
1432    =head1 コシヤ
1433    
1434        Copyright (C) 2000 by Hiroshi Yuki.
1435        キセケタ <hyuki@hyuki.com>
1436        http://www.hyuki.com/
1437        http://www.hyuki.com/yukiwiki/
1438    
1439    シチフ茖「ーユクォ。「・ミ・ーハケ、マ hyuki@hyuki.com 、ヒ・癸シ・、キ、ニ、ッ、タ、オ、、。」
1440    
1441    =head1 ヌロノロセキ
1442    
1443    YukiWiki、マ。「
1444    GNU General Public License、ヒ、ニクウォ、キ、゙、ケ。」
1445    
1446    YukiWiki、マ・ユ・遙シ・ス・ユ・ネ、ヌ、ケ。」
1447    、エシォヘウ、ヒ、ェサネ、、、ッ、タ、オ、、。」
1448    シォハャケ・、゚、ホYukiWiki、ャコ、、、隍ヲ、ヒ・キ・・ラ・、ヒ、キ、ニ、「、熙゙、ケ。」
1449    
1450    =head1 シユシュ
1451    
1452    ヒワイネ、ホWikiWiki、コ、テ、ソCunningham & Cunningham, Inc.、ヒ
1453    エカシユ、キ、゙、ケ。」
1454    
1455    YukiWiki、ウレ、キ、、ヌサネ、テ、ニ、ッ、タ、オ、
1456    ・ヘ・テ・ネセ螟ホハ。ケ、ヒエカシユ、キ、゙、ケ。」
1457    
1458    YukiWiki、ホ・・エ、・ヌ・カ・、・、キ、ニ、ッ、タ、オ、テ、ソカカヒワホ鯣爨オ、
1459    http://city.hokkai.or.jp/~reina/
1460    、ヒエカシユ、キ、゙、ケ。」
1461    
1462    tie、サネ、テ、ソネヌ、ホクオ、ヒ、ハ、・ウ。シ・ノ、チ、テ、ニ、ッ、タ、オ、テ、ソ
1463    。ヨカヒーュ。ラ、オ、、ヒエカシユ、キ、゙、ケ。」
1464    
1465    =head1 サイセネ・・・ッ
1466    
1467    =over 4
1468    
1469    =item *
1470    
1471  YukiWiki is yet another Wiki clone.  YukiWiki・ロ。シ・爭レ。シ・ク
1472    http://www.hyuki.com/yukiwiki/
1473    
1474  YukiWiki can treat Japanese WikiNames (enclosed with [[ and ]]).  =item *
 YukiWiki provides 'InterWiki' feature, RDF Site Summary (RSS),  
 and some embedded commands (such as [[#comment]] to add comments).  
1475    
1476  Read F<readme_en.txt> (English) or F<readme_ja.txt> (Japanese) in more detail.  ヒワイネ、ホWikiWiki
1477    http://c2.com/cgi/wiki?WikiWikiWeb
1478    
1479  =head1 AUTHOR  =item *
1480    
1481  Hiroshi Yuki <hyuki@hyuki.com> http://www.hyuki.com/yukiwiki/  ヒワイネ、ホWikiWiki、ホコシヤ(Cunningham & Cunningham, Inc.)
1482    http://c2.com/
1483    
1484  =head1 LICENSE  =item *
1485    
1486  Copyright (C) 2000-2002 by Hiroshi Yuki.  YukiWiki、ホ・・エ・ヌ・カ・、・、、キ、ニ、ッ、タ、オ、テ、ソカカヒワホ鯣爨オ、、ホ・レ。シ・ク
1487    http://city.hokkai.or.jp/~reina/
1488    
1489  This program is free software; you can redistribute it and/or  =back
 modify it under the same terms as Perl itself.  
1490    
1491  =cut  =cut

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.8

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24