OSDN Git Service

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