OSDN Git Service

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