OSDN Git Service

98e0805823f6bc44651aedd3da5859a16ae33556
[pukiwiki/pukiwiki.git] / pukiwiki.ini.php
1 <?php
2 /////////////////////////////////////////////////
3 // PukiWiki - Yet another WikiWikiWeb clone.
4 //
5 // $Id: pukiwiki.ini.php,v 1.95 2004/11/23 02:01:29 henoheno Exp $
6 //
7 // PukiWiki setting file
8
9 /////////////////////////////////////////////////
10 // ½é´üÀßÄê (ʸ»ú¥¨¥ó¥³¡¼¥É¡¢¸À¸ì)
11
12 // Internal Language ('en' or 'ja')
13 define('LANG', 'ja');   // For internal message encoding
14
15 // UI Language (Language for buttons, menus,  etc)
16 if (! defined('UI_LANG'))
17         define('UI_LANG', 'ja');        // 'en' or 'ja'
18
19 /////////////////////////////////////////////////
20 // ¥Ç¥£¥ì¥¯¥È¥ê»ØÄ꠺Ǹå¤Ë / ¤¬É¬Íנ°À­¤Ï 777
21
22 // ¥Ç¡¼¥¿³ÊǼ¥Ç¥£¥ì¥¯¥È¥ê
23 define('DATA_DIR',      DATA_HOME . 'wiki/');   // ºÇ¿·¤Î¥Ç¡¼¥¿
24 define('DIFF_DIR',      DATA_HOME . 'diff/');   // º¹Ê¬¥Õ¥¡¥¤¥ë
25 define('BACKUP_DIR',    DATA_HOME . 'backup/'); // ¥Ð¥Ã¥¯¥¢¥Ã¥×
26 define('CACHE_DIR',     DATA_HOME . 'cache/');  // ¥­¥ã¥Ã¥·¥å
27 define('UPLOAD_DIR',    DATA_HOME . 'attach/'); // ÅºÉÕ¥Õ¥¡¥¤¥ë
28 define('COUNTER_DIR',   DATA_HOME . 'counter/');        // ¥«¥¦¥ó¥¿
29 define('TRACKBACK_DIR', DATA_HOME . 'trackback/');      // TrackBack
30 define('PLUGIN_DIR',    DATA_HOME . 'plugin/'); // ¥×¥é¥°¥¤¥ó¥Õ¥¡¥¤¥ë
31
32 /////////////////////////////////////////////////
33 // ¥Ç¥£¥ì¥¯¥È¥ê»ØÄ꠺Ǹå¤Ë / ¤¬É¬Í×
34 //
35 //  PukiWikiËÜÂΤòWeb¥Ö¥é¥¦¥¶¤«¤é¥¢¥¯¥»¥¹¤Ç¤­¤Ê¤¤
36 //  ¾ì½ê¤ËÀßÃÖ¤¹¤ë¤È¤­¤Ï¡¢°Ê²¼¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤¢¤ë
37 //  ¥Õ¥¡¥¤¥ë¤Î°ìÉô¤ò Web¥Ö¥é¥¦¥¶¤«¤é¥¢¥¯¥»¥¹¤Ç¤­¤ë
38 //  ¾ì½ê¤ËÀßÃÖ¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
39 //  (̵¤¯¤È¤âÆ°ºî¤Ï¤·¤Þ¤¹¤¬¡¢¾¯¡¹Ì£µ¤¤Ê¤¯¤Ê¤ë¤Ç¤·¤ç¤¦)
40
41 // ¥¹¥­¥ó/¥¹¥¿¥¤¥ë¥·¡¼¥È¥Õ¥¡¥¤¥ë³ÊǼ¥Ç¥£¥ì¥¯¥È¥ê
42 define('SKIN_DIR', 'skin/');
43 //  ¤³¤Î¥Ç¥£¥ì¥¯¥È¥ê°Ê²¼¤Î¥¹¥­¥ó¥Õ¥¡¥¤¥ë (*.php) ¤Ï
44 //  PukiWikiËÜÂΦ(DATA_HOME/SKIN_DIR) ¤ËɬÍפǤ¹¤¬¡¢
45 //  CSS¥Õ¥¡¥¤¥ë(*.css) ¤ª¤è¤ÓJavaScript¥Õ¥¡¥¤¥ë( *.js)
46 //  ¤ÏWeb¥Ö¥é¥¦¥¶¤«¤é¸«¤¨¤ë¾ì½ê(./SKIN_DIR)¤ËÇÛÃÖ
47 //  ¤·¤Æ²¼¤µ¤¤
48
49 // ²èÁü¥Õ¥¡¥¤¥ë³ÊǼ¥Ç¥£¥ì¥¯¥È¥ê
50 define('IMAGE_DIR', 'image/');
51 //  ¤³¤Î¥Ç¥£¥ì¥¯¥È¥ê°Ê²¼¤ÎÁ´¤Æ¤Î¥Õ¥¡¥¤¥ë¤Ï
52 //  Web¥Ö¥é¥¦¥¶¤«¤é¸«¤¨¤ë¾ì½ê(./IMAGE_DIR)¤ËÇÛÃÖ
53 //  ¤·¤Æ²¼¤µ¤¤
54
55
56 /////////////////////////////////////////////////
57 // ¥í¡¼¥«¥ë»þ´Ö
58 define('ZONE','JST');
59 define('ZONETIME',9 * 3600); // JST = GMT+9
60
61 /////////////////////////////////////////////////
62 // ¥Û¡¼¥à¥Ú¡¼¥¸¤Î¥¿¥¤¥È¥ë(½¤Àµ¤·¤Æ¤¯¤À¤µ¤¤)
63 // * RSS ¤Ë½ÐÎϤ¹¤ë¥Á¥ã¥ó¥Í¥ë̾¤ò·ó¤Í¤ë
64 $page_title = 'PukiWiki';
65
66 // index.php ¤Ê¤É¤ËÊѹ¹¤·¤¿¾ì¹ç¤Î¥¹¥¯¥ê¥×¥È̾¤ÎÀßÄê
67 // ¤È¤¯¤ËÀßÄꤷ¤Ê¤¯¤Æ¤âÌäÂê¤Ê¤·
68 //$script = 'http://example.com/pukiwiki/';
69
70 // ÊÔ½¸¼Ô¤Î̾Á°(½¤Àµ¤·¤Æ¤¯¤À¤µ¤¤)
71 $modifier = 'anonymous';
72
73 // ÊÔ½¸¼Ô¤Î¥Û¡¼¥à¥Ú¡¼¥¸(½¤Àµ¤·¤Æ¤¯¤À¤µ¤¤)
74 $modifierlink = 'http://pukiwiki.example.com/';
75
76 // ¥Ç¥Õ¥©¥ë¥È¤Î¥Ú¡¼¥¸Ì¾
77 $defaultpage  = 'FrontPage';    // ¥È¥Ã¥×¥Ú¡¼¥¸ (¥Ú¡¼¥¸¤ò»ØÄꤷ¤Ê¤¤¤È¤­)
78 $whatsnew     = 'RecentChanges';        // ¹¹¿·ÍúÎò
79 $whatsdeleted = 'RecentDeleted';        // ºï½üÍúÎò
80 $interwiki    = 'InterWikiName';        // InterWikiName ¤Î°ìÍ÷¤ò½ñ¤¯¥Ú¡¼¥¸
81 $menubar      = 'MenuBar';      // ¥á¥Ë¥å¡¼¤È¤·¤Æɽ¼¨¤µ¤»¤ëÆâÍƤò½ñ¤¯¥Ú¡¼¥¸
82
83 /////////////////////////////////////////////////
84 // XHTML version
85 // skinÆâ¤ÇDTDÀë¸À¤òÀÚ¤êÂؤ¨¤ë¤Î¤Ë»ÈÍÑ¡£paint.inc.phpÂкö
86 $html_transitional = FALSE; // FALSE:XHTML 1.1, TRUE:XHTML 1.0 Transitional
87
88 /////////////////////////////////////////////////
89
90 // Allow using JavaScript
91 //   JavaScript¤ò»ÈÍѤ¹¤ë¥×¥é¥°¥¤¥ó¤Ê¤É¤Î
92 //   µ¡Ç½¤òÍÞÀ©¤·¤Þ¤¹
93 define('PKWK_ALLOW_JAVASCRIPT', 0);     // 0 or 1
94
95 /////////////////////////////////////////////////
96 // TrackBackµ¡Ç½¤ò»ÈÍѤ¹¤ë
97 $trackback = 0;
98
99 // Show trackbacks with an another window
100 $trackback_javascript = 0;
101
102 /////////////////////////////////////////////////
103 // Refererµ¡Ç½¤ò»ÈÍѤ¹¤ë
104 $referer = 0;
105
106 /////////////////////////////////////////////////
107 // WikiName¤ò *̵¸ú¤Ë* ¤¹¤ë
108 $nowikiname = 0;
109
110 /////////////////////////////////////////////////
111 // AutoLink¤òÍ­¸ú¤Ë¤¹¤ë¾ì¹ç¤Ï¡¢AutoLinkÂоݤȤʤë
112 // ¥Ú¡¼¥¸Ì¾¤ÎºÇû¥Ð¥¤¥È¿ô¤ò»ØÄê
113 // AutoLink¤ò̵¸ú¤Ë¤¹¤ë¾ì¹ç¤Ï0
114 $autolink = 0;
115
116 /////////////////////////////////////////////////
117 // Åà·ëµ¡Ç½¤òÍ­¸ú¤Ë¤¹¤ë
118 $function_freeze = 1;
119
120 /////////////////////////////////////////////////
121 // ´ÉÍý¼Ô¥Ñ¥¹¥ï¡¼¥É
122
123 // °Ê²¼¤Ï md5('pass') ¤Î½ÐÎÏ·ë²Ì¤Ç¤¹
124 $adminpass = '1a1dc91c907325c69271ddf0c944bc72';
125
126 // = Ãí°Õ =
127 //
128 // ¥Ñ¥¹¥ï¡¼¥É¤òÀßÄꤹ¤ëÊýË¡¤È¤·¤Æ¡¢md5()´Ø¿ô¤ò»È¤¦ÊýË¡¤È¡¢
129 // md5()´Ø¿ô¤Î·ë²Ì¤òÊÌÅÓ»»½Ð¤·¤Æ»È¤¦ÊýË¡¤¬¤¢¤ê¤Þ¤¹¡£
130 // ¤¢¤Ê¤¿¤¬¥³¥ó¥Ô¥å¡¼¥¿¤ÎÁàºî¤Ë½¼Ê¬´·¤ì¤Æ¤¤¤ë¤Î¤Ç¤¢¤ì¤Ð¡¢
131 // ¸å¼Ô¤ò¤ª´«¤á¤·¤Þ¤¹¡£
132 //
133 // Î㤨¤Ð¥Ñ¥¹¥ï¡¼¥É¤ò¡Öpass¡×¤È¤·¤¿¤¤¾ì¹ç¡¢°Ê²¼¤ÎÍͤ˵­½Ò¤¹¤ë
134 // ¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£
135 //
136 // $adminpass = md5('pass');    // md5() ´Ø¿ô¤ò»È¤¦ÊýË¡
137 //
138 // ¤¿¤À¤·¡¢¤³¤ÎÊýË¡¤Ç¤Ï¡¢¤³¤Î¥Õ¥¡¥¤¥ë¤òÇÁ¤­¸«¤ë¤³¤È¤¬¤Ç¤­¤ë
139 // (¤Ç¤­¤¿) Ã¯¤«¤Ë¡¢¥Ñ¥¹¥ï¡¼¥É¤½¤Î¤â¤Î¤òÃΤé¤ì¤ë¹â¤¤´í¸±À­¤¬
140 // ¤¢¤ê¤Þ¤¹¡£¤³¤Î´í¸±À­¤ò²¼¤²¤ë¤¿¤á¤Ë¡¢md5()´Ø¿ô¤Î·ë²Ì¤À¤±¤ò
141 // µ­½Ò¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£
142 //
143 // md5()´Ø¿ô¤Î·ë²Ì(MD5¥Ï¥Ã¥·¥å)¤Ï0¤«¤é9¤Î¿ô»ú¤È¡¢A¤«¤éF¤Þ¤Ç
144 // ¤Î±Ñ»ú¤«¤é¤Ê¤ë32ʸ»ú¤Îʸ»úÎó¤Ç¡¢¤³¤Î¾ðÊó¤À¤±¤Ç¤Ï¸µ¤Îʸ»úÎó¤ò
145 // ¿ä¬¤¹¤ë¤³¤È¤Ïº¤Æñ¤Ç¤¹¡£
146 //
147 // MD5¥Ï¥Ã¥·¥å¤Ï¡¢Linux¤äcygwin¤Ç¤¢¤ì¤Ð
148 //
149 //    $ echo -n 'pass' | md5sum
150 //
151 // ¤ÎÍͤˤ·¤Æ·×»»¤µ¤»¤ë»ö¤¬¤Ç¤­¤Þ¤¹¡£('-n' ¥ª¥×¥·¥ç¥ó¤ò˺¤ì¤º¤Ë!)
152 // FreeBSD¤Ê¤É¤Ç¤Ï md5sum ¤ÎÂå¤ï¤ê¤Ë md5 ¥³¥Þ¥ó¥É¤ò»È¤Ã¤Æ¤¯¤À¤µ¤¤¡£
153 //
154 // ¤ª´«¤á¤Ç¤­¤Þ¤»¤ó¤¬¡¢PukiWiki¤Îmd5¥³¥Þ¥ó¥É¤Ç¤â»»½Ð¤¬²Äǽ¤Ç¤¹¡£
155 //
156 // http://<ÀßÃÖ¤·¤¿¾ì½ê>/pukiwiki.php?md5=pass
157 //
158 // ¤³¤ÎURL¤Ë¥¢¥¯¥»¥¹¤¹¤ë¤³¤È¤Ç¡¢»»½Ð·ë²Ì¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£¤½¤Î
159 // ¤«¤ï¤ê¡¢¤¢¤Ê¤¿¤¬¥¿¥¤¥×¤·¤¿¥Ñ¥¹¥ï¡¼¥É¤Ï¥Í¥Ã¥È¥ï¡¼¥¯¤òή¤ì¡¢
160 // Ã¯¤Ë¤Ç¤âÇÁ¤­¸«¤¬¤Ç¤­¡¢Web¥µ¡¼¥Ð¡¼¤Î¥í¥°¤Ë¤â»Ä¤Ã¤Æ¤·¤Þ¤¦¡¢
161 // ¤È¤¤¤Ã¤¿ÍÍ¡¹¤Ê¥ê¥¹¥¯¤òÉ餦²ÄǽÀ­¤¬¤¢¤ê¤Þ¤¹¡£¤¢¤Ê¤¿¤¬»È¤Ã¤Æ
162 // ¤¤¤ë¥³¥ó¥Ô¥å¡¼¥¿¡¢¥µ¡¼¥Ð¡¼¤Þ¤Ç¤Î¥Í¥Ã¥È¥ï¡¼¥¯¡¢¥µ¡¼¥Ð¡¼¤Î
163 // ¤É¤³¤«¤¬¿®Íê¤Ç¤­¤Ê¤¤¤Î¤Ç¤¢¤ì¤Ð¡¢¤³¤ÎÊýË¡¤Ï»È¤ï¤Ê¤¤¤Ç²¼¤µ¤¤¡£
164
165 /////////////////////////////////////////////////
166 // ChaSen, KAKASI ¤Ë¤è¤ë¡¢¥Ú¡¼¥¸Ì¾¤ÎÆɤߤμèÆÀ (0:̵¸ú,1:Í­¸ú)
167 $pagereading_enable = 0;
168
169 // ChaSen('chasen') or KAKASI('kakasi') or None('none')
170 $pagereading_kanji2kana_converter = 'none';
171
172 // ChaSen/KAKASI ¤È¤Î¼õ¤±ÅϤ·¤Ë»È¤¦´Á»ú¥³¡¼¥É (UNIX·Ï¤Ï EUC¡¢Win·Ï¤Ï SJIS ¤¬´ðËÜ)
173 $pagereading_kanji2kana_encoding = 'EUC';
174 //$pagereading_kanji2kana_encoding = 'SJIS';
175
176 // ChaSen/KAKASI ¤Î¼Â¹Ô¥Õ¥¡¥¤¥ë (³Æ¼«¤Î´Ä¶­¤Ë¹ç¤ï¤»¤ÆÀßÄê)
177 $pagereading_chasen_path = '/usr/local/bin/chasen';
178 //$pagereading_chasen_path = 'c:\progra~1\chasen21\chasen.exe';
179
180 $pagereading_kakasi_path = '/usr/local/bin/kakasi';
181 //$pagereading_kakasi_path = 'c:\kakasi\bin\kakasi.exe';
182
183 // ¥Ú¡¼¥¸Ì¾Æɤߤò³ÊǼ¤·¤¿¥Ú¡¼¥¸¤Î̾Á°
184 $pagereading_config_page = ':config/PageReading';
185
186 // converter ='none' ¤Î¾ì¹ç¤ÎÆɤ߲¾Ì¾¼­½ñ
187 $pagereading_config_dict = ':config/PageReading/dict';
188
189 /////////////////////////////////////////////////
190 // ¥æ¡¼¥¶ÄêµÁ
191 $auth_users = array(
192         'foo'   => 'foo_passwd',
193         'bar'   => 'bar_passwd',
194         'hoge'  => 'hoge_passwd',
195 );
196
197 /////////////////////////////////////////////////
198 // Ç§¾ÚÊý¼°¼ïÊÌ
199 // 'pagename' : ¥Ú¡¼¥¸Ì¾
200 // 'contents' : ¥Ú¡¼¥¸ÆâÍÆ
201 $auth_method_type = 'contents';
202
203 /////////////////////////////////////////////////
204 // ±ÜÍ÷ǧ¾Ú¥Õ¥é¥° (0:ÉÔÍ× 1:ɬÍ×)
205 $read_auth = 0;
206
207 // ±ÜÍ÷ǧ¾ÚÂоݥѥ¿¡¼¥óÄêµÁ
208 $read_auth_pages = array(
209         '/¤Ò¤­¤³¤â¤ë¤Û¤²/'      => 'hoge',
210         '/(¥Í¥¿¥Ð¥ì|¤Í¤¿¤Ð¤ì)/' => 'foo,bar,hoge',
211 );
212
213 /////////////////////////////////////////////////
214 // ÊÔ½¸Ç§¾Ú¥Õ¥é¥° (0:ÉÔÍ× 1:ɬÍ×)
215 $edit_auth = 0;
216
217 // ÊÔ½¸Ç§¾ÚÂоݥѥ¿¡¼¥óÄêµÁ
218 $edit_auth_pages = array(
219         '/Bar¤Î¸ø³«Æüµ­/'       => 'bar',
220         '/¤Ò¤­¤³¤â¤ë¤Û¤²/'      => 'hoge',
221         '/(¥Í¥¿¥Ð¥ì|¤Í¤¿¤Ð¤ì)/' => 'foo',
222 );
223
224 /////////////////////////////////////////////////
225 // ¸¡º÷ǧ¾Ú¥Õ¥é¥°
226 // 0: ±ÜÍ÷¤¬µö²Ä¤µ¤ì¤Æ¤¤¤Ê¤¤¥Ú¡¼¥¸ÆâÍƤ⸡º÷ÂоݤȤ¹¤ë
227 // 1: ¸¡º÷»þ¤Î¥í¥°¥¤¥ó¥æ¡¼¥¶¤Ëµö²Ä¤µ¤ì¤¿¥Ú¡¼¥¸¤Î¤ß¸¡º÷ÂоݤȤ¹¤ë
228 $search_auth = 0;
229
230 /////////////////////////////////////////////////
231 // $whatsnew: ¹¹¿·ÍúÎò¤òɽ¼¨¤¹¤ë¤È¤­¤ÎºÇÂç·ï¿ô
232 $maxshow = 60;
233
234 // $whatsdeleted: ºï½üÍúÎò¤ÎºÇÂç·ï¿ô(0¤Çµ­Ï¿¤·¤Ê¤¤)
235 $maxshow_deleted = 60;
236
237 /////////////////////////////////////////////////
238 // ÊÔ½¸¤¹¤ë¤³¤È¤Î¤Ç¤­¤Ê¤¤¥Ú¡¼¥¸¤Î̾Á° , ¤Ç¶èÀÚ¤ë
239 $cantedit = array( $whatsnew, $whatsdeleted );
240
241 /////////////////////////////////////////////////
242 // Last-Modified ¥Ø¥Ã¥À¤ò½ÐÎϤ¹¤ë
243 $lastmod = 0;
244
245 /////////////////////////////////////////////////
246 // ÆüÉÕ¥Õ¥©¡¼¥Þ¥Ã¥È
247 $date_format = 'Y-m-d';
248
249 // »þ¹ï¥Õ¥©¡¼¥Þ¥Ã¥È
250 $time_format = 'H:i:s';
251
252 /////////////////////////////////////////////////
253 // RSS ¤Ë½ÐÎϤ¹¤ë¥Ú¡¼¥¸¿ô
254 $rss_max = 15;
255
256 /////////////////////////////////////////////////
257 // ¥Ð¥Ã¥¯¥¢¥Ã¥×¤ò¹Ô¤¦
258 $do_backup = 1;
259
260 // ¥Ú¡¼¥¸¤òºï½ü¤·¤¿ºÝ¤Ë¥Ð¥Ã¥¯¥¢¥Ã¥×¤â¤¹¤Ù¤Æºï½ü¤¹¤ë
261 $del_backup = 0;
262
263 // ¥Ð¥Ã¥¯¥¢¥Ã¥×´Ö³Ö¤ÈÀ¤Âå¿ô
264 $cycle  = 3;    // Ä¾Á°¤Î½¤Àµ¤«¤é²¿»þ´Ö·Ð²á¤·¤Æ¤¤¤¿¤é¥Ð¥Ã¥¯¥¢¥Ã¥×¤¹¤ë¤« (0¤Ç¹¹¿·Ëè)
265 $maxage = 120;  // À¤Âå¿ô
266
267 // NOTE: $cycle x $maxage / 24 = ¥Ç¡¼¥¿¤ò¼º¤¦¤¿¤á¤ËºÇÄã¸ÂɬÍפÊÆü¿ô
268 //          3   x   120   / 24 = 15
269
270 // ¥Ð¥Ã¥¯¥¢¥Ã¥×¤ÎÀ¤Âå¤ò¶èÀÚ¤ëʸ»úÎó
271 define('PKWK_SPLITTER', '>>>>>>>>>>');
272
273 /////////////////////////////////////////////////
274 // ¥Ú¡¼¥¸¤Î¹¹¿·»þ¤Ë¥Ð¥Ã¥¯¥°¥é¥ó¥É¤Ç¼Â¹Ô¤¹¤ë¥³¥Þ¥ó¥É(mknmz¤Ê¤É)
275 $update_exec = '';
276 //$update_exec = '/usr/bin/mknmz --media-type=text/pukiwiki -O /var/lib/namazu/index/ -L ja -c -K /var/www/wiki/';
277
278 /////////////////////////////////////////////////
279 // HTTP¥ê¥¯¥¨¥¹¥È¤Ë¥×¥í¥­¥·¥µ¡¼¥Ð¤ò»ÈÍѤ¹¤ë
280 $use_proxy = 0;
281
282 $proxy_host = 'proxy.example.com'; // proxy¥µ¡¼¥Ð̾
283 $proxy_port = 8080; // ¥Ý¡¼¥ÈÈÖ¹æ
284
285 // Basicǧ¾Ú¤ò¹Ô¤¦
286 $need_proxy_auth = 0;
287 $proxy_auth_user = 'username';  // ¥æ¡¼¥¶¡¼Ì¾
288 $proxy_auth_pass = 'password';  // ¥Ñ¥¹¥ï¡¼¥É
289
290 // ¥×¥í¥­¥·¥µ¡¼¥Ð¤ò»ÈÍѤ·¤Ê¤¤¥Û¥¹¥È¤Î¥ê¥¹¥È
291 $no_proxy = array(
292         'localhost',    // localhost
293         '127.0.0.0/8',  // loopback
294 //      '10.0.0.0/8'    // private class A
295 //      '172.16.0.0/12' // private class B
296 //      '192.168.0.0/16'        // private class C
297 //      'no-proxy.com',
298 );
299
300 ////////////////////////////////////////////////
301 // ¥á¡¼¥ëÁ÷¿®
302
303 $notify = 0;    // (1:¥Ú¡¼¥¸¤Î¹¹¿·»þ¤Ë¥á¡¼¥ë¤òÁ÷¿®¤¹¤ë)
304 $notify_diff_only = 0;  // (1:º¹Ê¬¤À¤±¤òÁ÷¿®¤¹¤ë)
305
306 // SMTP¥µ¡¼¥Ð (Windows ¤Î¤ß, Ä̾ï¤Ï php.ini ¤Ç»ØÄê)
307 $smtp_server = 'localhost';
308
309 $notify_to   = 'to@example.com';        // To:¡Ê°¸Àè¡Ë
310 $notify_from = 'from@example.com';      // From:¡ÊÁ÷¤ê¼ç¡Ë
311
312 // Subject:¡Ê·ï̾¡Ë $page¤Ë¥Ú¡¼¥¸Ì¾¤¬Æþ¤ê¤Þ¤¹
313 $notify_subject = '[pukiwiki] $page';
314
315 // ¥á¡¼¥ë¥Ø¥Ã¥À
316 $notify_header = "From: $notify_from\r\n" .
317         'X-Mailer: PukiWiki/' .  S_VERSION . ' PHP/' . phpversion();
318
319 /////////////////////////////////////////////////
320 // ¥á¡¼¥ëÁ÷¿®: POP / APOP Before SMTP
321
322 // ¥á¡¼¥ëÁ÷¿®Á°¤ËPOP¤Þ¤¿¤ÏAPOP¤Ë¤è¤ëǧ¾Ú¤ò¹Ô¤¦
323 $smtp_auth = 0;
324
325 $pop_server = 'localhost';      // POP¥µ¡¼¥Ð
326 $pop_port   = 110;      // ¥Ý¡¼¥ÈÈÖ¹æ
327 $pop_userid = '';       // POP¥æ¡¼¥¶Ì¾
328 $pop_passwd = '';       // POP¥Ñ¥¹¥ï¡¼¥É
329
330 // Ç§¾Ú¤Ë APOP ¤òÍøÍѤ¹¤ë¤«¤É¤¦¤« (¢¨¥µ¡¼¥Ð¦¤ÎÂбþ¤¬É¬Í×)
331 //   Ì¤ÀßÄê = ¼«Æ° (²Äǽ¤Ç¤¢¤ì¤ÐAPOP¤ò»ÈÍѤ¹¤ë)
332 //   1 = APOP¸ÇÄê  (ɬ¤ºAPOP¤ò»ÈÍѤ¹¤ë)
333 //   0 = POP¸ÇÄê   (ɬ¤ºPOP¤ò»ÈÍѤ¹¤ë)
334 // $pop_auth_use_apop = 1;
335
336 /////////////////////////////////////////////////
337 // °ìÍ÷¡¦¹¹¿·°ìÍ÷¤Ë´Þ¤á¤Ê¤¤¥Ú¡¼¥¸Ì¾(Àµµ¬É½¸½¤Ç)
338 $non_list = '^\:';
339
340 // $non_list¤òʸ»úÎ󸡺÷¤ÎÂоݥڡ¼¥¸¤È¤¹¤ë¤«
341 // 0¤Ë¤¹¤ë¤È¡¢¾åµ­¥Ú¡¼¥¸Ì¾¤¬Ã±¸ì¸¡º÷¤«¤é¤â½ü³°¤µ¤ì¤Þ¤¹¡£
342 $search_non_list = 1;
343
344 /////////////////////////////////////////////////
345 // ¥Ú¡¼¥¸Ì¾¤Ë½¾¤Ã¤Æ¼«Æ°¤Ç¡¢¿÷·Á¤È¤¹¤ë¥Ú¡¼¥¸¤ÎÆɤ߹þ¤ß
346 $auto_template_func = 1;
347 $auto_template_rules = array(
348         '((.+)\/([^\/]+))' => '\2/template'
349 );
350
351 /////////////////////////////////////////////////
352 // ¸«½Ð¤·¹Ô¤Ë¸ÇÍ­¤Î¥¢¥ó¥«¡¼¤ò¼«Æ°ÁÞÆþ¤¹¤ë
353 $fixed_heading_anchor = 1;
354
355 /////////////////////////////////////////////////
356 // <pre>¤Î¹ÔƬ¥¹¥Ú¡¼¥¹¤ò¤Ò¤È¤Ä¼è¤ê½ü¤¯
357 $preformat_ltrim = 1;
358
359 /////////////////////////////////////////////////
360 // ²þ¹Ô¤òÈ¿±Ç¤¹¤ë(²þ¹Ô¤ò<br />¤ËÃÖ´¹¤¹¤ë)
361 $line_break = 0;
362
363 /////////////////////////////////////////////////
364 // ¥æ¡¼¥¶¡¼¥¨¡¼¥¸¥§¥ó¥ÈÂбþÀßÄê
365 //
366 // ¥ê¥Ã¥Á¥¯¥é¥¤¥¢¥ó¥È¤òÁ°Äó¤È¤·¤¿¥µ¥¤¥È¤ò¹½ÃÛ¤¹¤ë
367 // ¤¿¤á¤Ë¡¢·ÈÂÓÅÅÏäʤɤ˰տÞŪ¤ËÈóÂбþ¤È¤·¤¿¤¤¾ì¹ç¡¢
368 // ºÇ¸å¤Î¥Ç¥Õ¥©¥ë¥ÈÀßÄê°Ê³°¤Î¹Ô¤òÁ´¤Æºï½ü¤¢¤ë¤¤¤Ï
369 // ¥³¥á¥ó¥È¥¢¥¦¥È¤·¤Æ²¼¤µ¤¤¡£
370 //
371 // ¥Ç¥¶¥¤¥ó¤ä¥¹¥¿¥¤¥ë¤ò´ÊÁǤÊkeitai¥×¥í¥Õ¥¡¥¤¥ë¤Ë
372 // Åý°ì¤·¤¿¤¤»þ¤Ï¡¢¥Ç¥Õ¥©¥ë¥ÈÀßÄê°Ê³°¤Î¹Ô¤òÁ´¤Æºï½ü
373 // ¤¢¤ë¤¤¤Ï¥³¥á¥ó¥È¥¢¥¦¥È¤·¤¿¸å¤Ë¡¢¥Ç¥Õ¥©¥ë¥ÈÀßÄê¤ò
374 // 'profile'=>'keitai' ¤È½¤Àµ¤·¤Æ²¼¤µ¤¤¡£
375
376 $agents = array(
377 // pattern: A regular-expression that matches device(browser)'s name and version
378 // profile: A group of browsers
379
380     // Embedded browsers (Rich-clients for PukiWiki)
381
382         // Windows CE (Microsoft(R) Internet Explorer 5.5 for Windows(R) CE)
383         // Sample: "Mozilla/4.0 (compatible; MSIE 5.5; Windows CE; sigmarion3)" (sigmarion, Hand-held PC)
384         array('pattern'=>'#\b(?:MSIE [5-9]).*\b(Windows CE)\b#', 'profile'=>'default'),
385
386         // ACCESS "NetFront" / "Compact NetFront" and thier OEM, expects to be "Mozilla/4.0"
387         // Sample: "Mozilla/4.0 (PS2; PlayStation BB Navigator 1.0) NetFront/3.0" (PlayStation BB Navigator, for SONY PlayStation 2)
388         // Sample: "Mozilla/4.0 (PDA; PalmOS/sony/model crdb/Revision:1.1.19) NetFront/3.0" (SONY Clie series)
389         // Sample: "Mozilla/4.0 (PDA; SL-A300/1.0,Embedix/Qtopia/1.1.0) NetFront/3.0" (SHARP Zaurus)
390         array('pattern'=>'#^(?:Mozilla/4).*\b(NetFront)/([0-9\.]+)#',   'profile'=>'default'),
391
392     // Embedded browsers (Non-rich)
393
394         // Windows CE (the others)
395         // Sample: "Mozilla/2.0 (compatible; MSIE 3.02; Windows CE; 240x320 )" (GFORT, NTT DoCoMo)
396         array('pattern'=>'#\b(Windows CE)\b#', 'profile'=>'keitai'),
397
398         // ACCESS "NetFront" / "Compact NetFront" and thier OEM
399         // Sample: "Mozilla/3.0 (AveFront/2.6)" ("SUNTAC OnlineStation", USB-Modem for PlayStation 2)
400         // Sample: "Mozilla/3.0(DDIPOCKET;JRC/AH-J3001V,AH-J3002V/1.0/0100/c50)CNF/2.0" (DDI Pocket: AirH" Phone by JRC)
401         array('pattern'=>'#\b(NetFront)/([0-9\.]+)#',   'profile'=>'keitai'),
402         array('pattern'=>'#\b(CNF)/([0-9\.]+)#',        'profile'=>'keitai'),
403         array('pattern'=>'#\b(AveFront)/([0-9\.]+)#',   'profile'=>'keitai'),
404         array('pattern'=>'#\b(AVE-Front)/([0-9\.]+)#',  'profile'=>'keitai'), // The same?
405
406         // NTT-DoCoMo, i-mode (embeded Compact NetFront) and FOMA (embedded NetFront) phones
407         // Sample: "DoCoMo/1.0/F501i", "DoCoMo/1.0/N504i/c10/TB/serXXXX" // c°Ê¹ß¤Ï²ÄÊÑ
408         // Sample: "DoCoMo/2.0 MST_v_SH2101V(c100;TB;W22H12;serXXXX;iccxxxx)" // ()¤ÎÃæ¤Ï²ÄÊÑ
409         array('pattern'=>'#^(DoCoMo)/([0-9\.]+)#',      'profile'=>'keitai'),
410
411         // Vodafone's embedded browser
412         // Sample: "J-PHONE/2.0/J-T03"  // 2.0¤Ï"¥Ö¥é¥¦¥¶¤Î"¥Ð¡¼¥¸¥ç¥ó
413         // Sample: "J-PHONE/4.0/J-SH51/SNxxxx SH/0001a Profile/MIDP-1.0 Configuration/CLDC-1.0 Ext-Profile/JSCL-1.1.0"
414         array('pattern'=>'#^(J-PHONE)/([0-9\.]+)#',     'profile'=>'keitai'),
415
416         // Openwave(R) Mobile Browser (EZweb, WAP phone, etc)
417         // Sample: "OPWV-SDK/62K UP.Browser/6.2.0.5.136 (GUI) MMP/2.0"
418         array('pattern'=>'#\b(UP\.Browser)/([0-9\.]+)#',        'profile'=>'keitai'),
419
420         // Opera, dressing up as other embedded browsers
421         // Sample: "Mozilla/3.0(DDIPOCKET;KYOCERA/AH-K3001V/1.4.1.67.000000/0.1/C100) Opera 7.0" (Like CNF at 'keitai'-mode)
422         array('pattern'=>'#\bDDIPOCKET\b.+\b(Opera) ([0-9\.]+)\b#',     'profile'=>'keitai'),
423
424         // Planetweb http://www.planetweb.com/
425         // Sample: "Mozilla/3.0 (Planetweb/v1.07 Build 141; SPS JP)" ("EGBROWSER", Web browser for PlayStation 2)
426         array('pattern'=>'#\b(Planet[Ww]eb)/[a-z]?([0-9\.]+)#', 'profile'=>'keitai'),
427
428         // DreamPassport, Web browser for SEGA DreamCast
429         // Sample: "Mozilla/3.0 (DreamPassport/3.0)"
430         array('pattern'=>'#\b(DreamPassport)/([0-9\.]+)#',      'profile'=>'keitai'),
431
432         // Palm "Web Pro" http://www.palmone.com/us/support/accessories/webpro/
433         // Sample: "Mozilla/4.76 [en] (PalmOS; U; WebPro)"
434         array('pattern'=>'#\b(WebPro)\b#',      'profile'=>'keitai'),
435
436         // ilinx "Palmscape" / "Xiino" http://www.ilinx.co.jp/
437         // Sample: "Xiino/2.1SJ [ja] (v. 4.1; 153x130; c16/d)"
438         array('pattern'=>'#^(Palmscape)/([0-9\.]+)#',   'profile'=>'keitai'),
439         array('pattern'=>'#^(Xiino)/([0-9\.]+)#',       'profile'=>'keitai'),
440
441         // SHARP PDA Browser (SHARP Zaurus)
442         // Sample: "sharp pda browser/6.1[ja](MI-E1/1.0) "
443         array('pattern'=>'#^(sharp [a-z]+ browser)/([0-9\.]+)#',        'profile'=>'keitai'),
444
445         // WebTV
446         array('pattern'=>'#^(WebTV)/([0-9\.]+)#',       'profile'=>'keitai'),
447
448     // Desktop-PC browsers
449
450         // Opera (for desktop PC, not embedded) -- See BugTrack/743 for detail
451         // NOTE: Keep this pattern above MSIE and Mozilla
452         // Sample: "Opera/7.0 (OS; U)" (not disguise)
453         // Sample: "Mozilla/4.0 (compatible; MSIE 5.0; OS) Opera 6.0" (disguise)
454         array('pattern'=>'#\b(Opera)[/ ]([0-9\.]+)\b#', 'profile'=>'default'),
455
456         // MSIE: Microsoft Internet Explorer (or something disguised as MSIE)
457         // Sample: "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
458         array('pattern'=>'#\b(MSIE) ([0-9\.]+)\b#',     'profile'=>'default'),
459
460         // Mozilla Firefox
461         // NOTE: Keep this pattern above Mozilla
462         // Sample: "Mozilla/5.0 (Windows; U; Windows NT 5.0; ja-JP; rv:1.7) Gecko/20040803 Firefox/0.9.3"
463         array('pattern'=>'#\b(Firefox)/([0-9\.]+)\b#',  'profile'=>'default'),
464
465         // Loose default: Including something Mozilla
466         array('pattern'=>'#^([a-zA-z0-9 ]+)/([0-9\.]+)\b#',     'profile'=>'default'),
467
468         array('pattern'=>'#^#', 'profile'=>'default'),  // Sentinel
469 );
470 ?>