OSDN Git Service

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