OSDN Git Service

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