OSDN Git Service

Added PKWK_SKIN_SHOW_NAVBAR to remove navigator links from skin
[pukiwiki/pukiwiki.git] / pukiwiki.ini.php
1 <?php
2 // PukiWiki - Yet another WikiWikiWeb clone
3 // $Id: pukiwiki.ini.php,v 1.109 2005/01/25 14:17:53 henoheno Exp $
4 //
5 // PukiWiki main setting file
6
7 /////////////////////////////////////////////////
8 // Functionality settings
9
10 // PKWK_OPTIMISE - Ignore verbose but understandable checking and warning
11 //   If you end testing this PukiWiki, set '1'.
12 //   If you feel in trouble about this PukiWiki, set '0'.
13 if (! defined('PKWK_OPTIMISE'))
14         define('PKWK_OPTIMISE', 0);
15
16 /////////////////////////////////////////////////
17 // Security settings
18
19 // PKWK_READONLY - Prohibits editing and maintain via WWW
20 //   NOTE: Counter-related functions will work now (counter, attach count, etc)
21 if (! defined('PKWK_READONLY'))
22         define('PKWK_READONLY', 0); // 0 or 1
23
24 // PKWK_SAFE_MODE - Prohibits some unsafe(but compatible) functions 
25 if (! defined('PKWK_SAFE_MODE'))
26         define('PKWK_SAFE_MODE', 0);
27
28 // PKWK_QUERY_STRING_MAX
29 //   Max length of GET method, prohibits some worm attack ASAP
30 //   NOTE: Keep (page-name + attach-file-name) <= PKWK_QUERY_STRING_MAX
31 define('PKWK_QUERY_STRING_MAX', 640);
32
33 /////////////////////////////////////////////////
34 // Language / Encoding settings
35
36 // LANG - Internal content encoding ('en', 'ja', or ...)
37 define('LANG', 'ja');
38
39 // UI_LANG - Content Language for buttons, menus,  etc
40 define('UI_LANG', LANG); // 'en' for Internationalized wikisite
41
42 /////////////////////////////////////////////////
43 // Directory settings I (ended with '/', permission '777')
44
45 // You may hide these directories (from web browsers)
46 // by setting DATA_HOME at index.php.
47
48 define('DATA_DIR',      DATA_HOME . 'wiki/'     ); // Latest wiki texts
49 define('DIFF_DIR',      DATA_HOME . 'diff/'     ); // Latest diffs
50 define('BACKUP_DIR',    DATA_HOME . 'backup/'   ); // Backups
51 define('CACHE_DIR',     DATA_HOME . 'cache/'    ); // Some sort of caches
52 define('UPLOAD_DIR',    DATA_HOME . 'attach/'   ); // Attached files and logs
53 define('COUNTER_DIR',   DATA_HOME . 'counter/'  ); // Counter plugin's counts
54 define('TRACKBACK_DIR', DATA_HOME . 'trackback/'); // TrackBack logs
55 define('PLUGIN_DIR',    DATA_HOME . 'plugin/'   ); // Plugin directory
56
57 /////////////////////////////////////////////////
58 // Directory settings II (ended with '/')
59
60 // Skins / Stylesheets
61 define('SKIN_DIR', 'skin/');
62 // Skin files (SKIN_DIR/*.skin.php) are needed at
63 // ./DATAHOME/SKIN_DIR from index.php, but
64 // CSSs(*.css) and JavaScripts(*.js) are needed at
65 // ./SKIN_DIR from index.php.
66
67 // Static image files
68 define('IMAGE_DIR', 'image/');
69 // Keep this directory shown via web browsers like
70 // ./IMAGE_DIR from index.php.
71
72 /////////////////////////////////////////////////
73 // Local time setting
74
75 switch (LANG) { // or specifiy one
76 case 'ja':
77         define('ZONE', 'JST');
78         define('ZONETIME', 9 * 3600); // JST = GMT + 9
79         break;
80 default  :
81         define('ZONE', 'GMT');
82         define('ZONETIME', 0);
83         break;
84 }
85
86 /////////////////////////////////////////////////
87 // Title of your Wikisite (Define this)
88 // and also RSS feed's channel name
89 $page_title = 'PukiWiki';
90
91 // Specify PukiWiki URL (default: auto)
92 //$script = 'http://example.com/pukiwiki/';
93
94 // Shorten $script: Cut its file name (default: not cut)
95 //$script_directory_index = 'index.php';
96
97 // Site admin's name (CHANGE THIS)
98 $modifier = 'anonymous';
99
100 // Site admin's Web page (CHANGE THIS)
101 $modifierlink = 'http://pukiwiki.example.com/';
102
103 // Defautl page name
104 $defaultpage  = 'FrontPage';     // Top / Default page
105 $whatsnew     = 'RecentChanges'; // Modified page list
106 $whatsdeleted = 'RecentDeleted'; // Removeed page list
107 $interwiki    = 'InterWikiName'; // Set InterWiki definition here
108 $menubar      = 'MenuBar';       // Menu
109
110 /////////////////////////////////////////////////
111 // Change default Document Type Definition
112
113 // Some web browser's bug, and / or Java apprets may needs not-Strict DTD.
114 // Some plugin (e.g. paint) set this PKWK_DTD_XHTML_1_0_TRANSITIONAL.
115
116 //$pkwk_dtd = PKWK_DTD_XHTML_1_1; // Default
117 //$pkwk_dtd = PKWK_DTD_XHTML_1_0_STRICT;
118 //$pkwk_dtd = PKWK_DTD_XHTML_1_0_TRANSITIONAL;
119 //$pkwk_dtd = PKWK_DTD_HTML_4_01_STRICT;
120 //$pkwk_dtd = PKWK_DTD_HTML_4_01_TRANSITIONAL;
121
122 /////////////////////////////////////////////////
123
124 // PKWK_ALLOW_JAVASCRIPT - Allow using JavaScript
125 define('PKWK_ALLOW_JAVASCRIPT', 0);
126
127 /////////////////////////////////////////////////
128 // TrackBack feature
129
130 // Enable Trackback
131 $trackback = 0;
132
133 // Show trackbacks with an another window
134 $trackback_javascript = 0;
135
136 /////////////////////////////////////////////////
137 // Referer list feature
138 $referer = 0;
139
140 /////////////////////////////////////////////////
141 // _Disable_ WikiName auto-linking
142 $nowikiname = 0;
143
144 /////////////////////////////////////////////////
145 // AutoLink feature
146
147 // AutoLink minimum bytes (0 = Disable)
148 $autolink = 8;
149
150 /////////////////////////////////////////////////
151 // Enable Freeze / Unfreeze feature
152 $function_freeze = 1;
153
154 /////////////////////////////////////////////////
155 // Wikisite admin password
156
157 // CHANGE THIS
158 $adminpass = '1a1dc91c907325c69271ddf0c944bc72'; // md5('pass')
159
160 /////////////////////////////////////////////////
161 // Page-reading feature settings
162 // (Automatically creating pronounce datas, for Kanji-included page names,
163 //  to show sorted page-list correctly)
164
165 // Enable page-reading feature by calling ChaSen or KAKASHI command (0:Enable, 1:Disable)
166 $pagereading_enable = 0;
167
168 // Specify converter as ChaSen('chasen') or KAKASI('kakasi') or None('none')
169 $pagereading_kanji2kana_converter = 'none';
170
171 // Specify Kanji encoding to pass data between PukiWiki and the converter
172 $pagereading_kanji2kana_encoding = 'EUC'; // Default for Unix
173 //$pagereading_kanji2kana_encoding = 'SJIS'; // Default for Windows
174
175 // Absolute path of the converter (ChaSen)
176 $pagereading_chasen_path = '/usr/local/bin/chasen';
177 //$pagereading_chasen_path = 'c:\progra~1\chasen21\chasen.exe';
178
179 // Absolute path of the converter (KAKASI)
180 $pagereading_kakasi_path = '/usr/local/bin/kakasi';
181 //$pagereading_kakasi_path = 'c:\kakasi\bin\kakasi.exe';
182
183 // Page name contains pronounce data (written by the converter)
184 $pagereading_config_page = ':config/PageReading';
185
186 // Page name of default pronouncing dictionary, used when converter = 'none'
187 $pagereading_config_dict = ':config/PageReading/dict';
188
189 /////////////////////////////////////////////////
190 // User definition
191 $auth_users = array(
192         'foo'   => 'foo_passwd',
193         'bar'   => 'bar_passwd',
194         'hoge'  => 'hoge_passwd',
195 );
196
197 /////////////////////////////////////////////////
198 // Authentication method
199
200 // 'pagename' : by Page name
201 // 'contents' : by Page contents
202 $auth_method_type = 'contents';
203
204 /////////////////////////////////////////////////
205 // Read auth (0:Disable, 1:Enable)
206 $read_auth = 0;
207
208 // Read auth regex
209 $read_auth_pages = array(
210         '#¤Ò¤­¤³¤â¤ë¤Û¤²#'      => 'hoge',
211         '#(¥Í¥¿¥Ð¥ì|¤Í¤¿¤Ð¤ì)#' => 'foo,bar,hoge',
212 );
213
214 /////////////////////////////////////////////////
215 // Edit auth (0:Disable, 1:Enable)
216 $edit_auth = 0;
217
218 // Edit auth regex
219 $edit_auth_pages = array(
220         '#Bar¤Î¸ø³«Æüµ­#'       => 'bar',
221         '#¤Ò¤­¤³¤â¤ë¤Û¤²#'      => 'hoge',
222         '#(¥Í¥¿¥Ð¥ì|¤Í¤¿¤Ð¤ì)#' => 'foo',
223 );
224
225 /////////////////////////////////////////////////
226 // Search auth
227 // 0: Disabled (Search read-prohibited page contents)
228 // 1: Enabled  (Search only permitted pages for the user)
229 $search_auth = 0;
230
231 /////////////////////////////////////////////////
232 // $whatsnew: Max number of RecentChanges
233 $maxshow = 60;
234
235 // $whatsdeleted: Max number of RecentDeleted
236 // (0 = Disabled)
237 $maxshow_deleted = 60;
238
239 /////////////////////////////////////////////////
240 // Page names can't be edit via PukiWiki
241 $cantedit = array( $whatsnew, $whatsdeleted );
242
243 /////////////////////////////////////////////////
244 // HTTP: Send Last-Modified header
245 $lastmod = 0;
246
247 /////////////////////////////////////////////////
248 // Date format
249 $date_format = 'Y-m-d';
250
251 // Time format
252 $time_format = 'H:i:s';
253
254 /////////////////////////////////////////////////
255 // Max number of RSS feed
256 $rss_max = 15;
257
258 /////////////////////////////////////////////////
259 // Backup related settings
260
261 // Enable backup
262 $do_backup = 1;
263
264 // When a page had been removed, remove its backup too?
265 $del_backup = 0;
266
267 // Bacukp interval and generation
268 $cycle  = 3;    // Wait N hours between backup (0 = no wait)
269 $maxage = 120; // Stock latest N backups
270
271 // NOTE: $cycle x $maxage / 24 = Minimum days to lost your data
272 //          3   x   120   / 24 = 15
273
274 // Spilitter of backup data (NOTE: Too dangerous to change)
275 define('PKWK_SPLITTER', '>>>>>>>>>>');
276
277 /////////////////////////////////////////////////
278 // Command executed per update
279 $update_exec = '';
280 //$update_exec = '/usr/bin/mknmz --media-type=text/pukiwiki -O /var/lib/namazu/index/ -L ja -c -K /var/www/wiki/';
281
282 /////////////////////////////////////////////////
283 // Proxy setting (for TrackBack etc)
284
285 // Use HTTP proxy server to get remote data
286 $use_proxy = 0;
287
288 $proxy_host = 'proxy.example.com';
289 $proxy_port = 8080;
290
291 // Do Basic authentication
292 $need_proxy_auth = 0;
293 $proxy_auth_user = 'username';
294 $proxy_auth_pass = 'password';
295
296 // Hosts that proxy server will not be needed
297 $no_proxy = array(
298         'localhost',    // localhost
299         '127.0.0.0/8',  // loopback
300 //      '10.0.0.0/8'    // private class A
301 //      '172.16.0.0/12' // private class B
302 //      '192.168.0.0/16'        // private class C
303 //      'no-proxy.com',
304 );
305
306 ////////////////////////////////////////////////
307 // Mail related settings
308
309 // Send mail per update of pages
310 $notify = 0;
311
312 // Send diff only
313 $notify_diff_only = 1;
314
315 // SMTP server (Windows only. Usually specified at php.ini)
316 $smtp_server = 'localhost';
317
318 $notify_to   = 'to@example.com';        // To:
319 $notify_from = 'from@example.com';      // From:
320
321 // Subject: ($page = Page name wll be replaced)
322 $notify_subject = '[PukiWiki] $page';
323
324 // Mail header
325 $notify_header = "From: $notify_from\r\n" .
326         'X-Mailer: PukiWiki/' .  S_VERSION . ' PHP/' . phpversion();
327
328 /////////////////////////////////////////////////
329 // Mail: POP / APOP Before SMTP
330
331 // Do POP/APOP authentication before send mail
332 $smtp_auth = 0;
333
334 $pop_server = 'localhost';
335 $pop_port   = 110;
336 $pop_userid = '';
337 $pop_passwd = '';
338
339 // Use APOP instead of POP (If server uses)
340 //   Default = Auto (Use APOP if possible)
341 //   1       = Always use APOP
342 //   0       = Always use POP
343 // $pop_auth_use_apop = 1;
344
345 /////////////////////////////////////////////////
346 // Ignore list
347
348 // Regex of ignore pages
349 $non_list = '^\:';
350
351 // Search ignored pages
352 $search_non_list = 1;
353
354 /////////////////////////////////////////////////
355 // Template setting
356
357 $auto_template_func = 1;
358 $auto_template_rules = array(
359         '((.+)\/([^\/]+))' => '\2/template'
360 );
361
362 /////////////////////////////////////////////////
363 // Automatically add fixed heading anchor
364 $fixed_heading_anchor = 1;
365
366 /////////////////////////////////////////////////
367 // Remove the first spaces from Preformatted text
368 $preformat_ltrim = 1;
369
370 /////////////////////////////////////////////////
371 // Convert linebreaks into <br/>
372 $line_break = 0;
373
374 /////////////////////////////////////////////////
375 // User-Agent settings
376 //
377 // If you want to ignore embedded browsers for rich-content-wikisite,
378 // remove (or comment-out) all 'keitai' settings.
379 //
380 // If you want to to ignore desktop-PC browsers for simple wikisite,
381 // copy keitai.ini.php to default.ini.php and customize it.
382
383 $agents = array(
384 // pattern: A regular-expression that matches device(browser)'s name and version
385 // profile: A group of browsers
386
387     // Embedded browsers (Rich-clients for PukiWiki)
388
389         // Windows CE (Microsoft(R) Internet Explorer 5.5 for Windows(R) CE)
390         // Sample: "Mozilla/4.0 (compatible; MSIE 5.5; Windows CE; sigmarion3)" (sigmarion, Hand-held PC)
391         array('pattern'=>'#\b(?:MSIE [5-9]).*\b(Windows CE)\b#', 'profile'=>'default'),
392
393         // ACCESS "NetFront" / "Compact NetFront" and thier OEM, expects to be "Mozilla/4.0"
394         // Sample: "Mozilla/4.0 (PS2; PlayStation BB Navigator 1.0) NetFront/3.0" (PlayStation BB Navigator, for SONY PlayStation 2)
395         // Sample: "Mozilla/4.0 (PDA; PalmOS/sony/model crdb/Revision:1.1.19) NetFront/3.0" (SONY Clie series)
396         // Sample: "Mozilla/4.0 (PDA; SL-A300/1.0,Embedix/Qtopia/1.1.0) NetFront/3.0" (SHARP Zaurus)
397         array('pattern'=>'#^(?:Mozilla/4).*\b(NetFront)/([0-9\.]+)#',   'profile'=>'default'),
398
399     // Embedded browsers (Non-rich)
400
401         // Windows CE (the others)
402         // Sample: "Mozilla/2.0 (compatible; MSIE 3.02; Windows CE; 240x320 )" (GFORT, NTT DoCoMo)
403         array('pattern'=>'#\b(Windows CE)\b#', 'profile'=>'keitai'),
404
405         // ACCESS "NetFront" / "Compact NetFront" and thier OEM
406         // Sample: "Mozilla/3.0 (AveFront/2.6)" ("SUNTAC OnlineStation", USB-Modem for PlayStation 2)
407         // Sample: "Mozilla/3.0(DDIPOCKET;JRC/AH-J3001V,AH-J3002V/1.0/0100/c50)CNF/2.0" (DDI Pocket: AirH" Phone by JRC)
408         array('pattern'=>'#\b(NetFront)/([0-9\.]+)#',   'profile'=>'keitai'),
409         array('pattern'=>'#\b(CNF)/([0-9\.]+)#',        'profile'=>'keitai'),
410         array('pattern'=>'#\b(AveFront)/([0-9\.]+)#',   'profile'=>'keitai'),
411         array('pattern'=>'#\b(AVE-Front)/([0-9\.]+)#',  'profile'=>'keitai'), // The same?
412
413         // NTT-DoCoMo, i-mode (embeded Compact NetFront) and FOMA (embedded NetFront) phones
414         // Sample: "DoCoMo/1.0/F501i", "DoCoMo/1.0/N504i/c10/TB/serXXXX" // c°Ê¹ß¤Ï²ÄÊÑ
415         // Sample: "DoCoMo/2.0 MST_v_SH2101V(c100;TB;W22H12;serXXXX;iccxxxx)" // ()¤ÎÃæ¤Ï²ÄÊÑ
416         array('pattern'=>'#^(DoCoMo)/([0-9\.]+)#',      'profile'=>'keitai'),
417
418         // Vodafone's embedded browser
419         // Sample: "J-PHONE/2.0/J-T03"  // 2.0¤Ï"¥Ö¥é¥¦¥¶¤Î"¥Ð¡¼¥¸¥ç¥ó
420         // Sample: "J-PHONE/4.0/J-SH51/SNxxxx SH/0001a Profile/MIDP-1.0 Configuration/CLDC-1.0 Ext-Profile/JSCL-1.1.0"
421         array('pattern'=>'#^(J-PHONE)/([0-9\.]+)#',     'profile'=>'keitai'),
422
423         // Openwave(R) Mobile Browser (EZweb, WAP phone, etc)
424         // Sample: "OPWV-SDK/62K UP.Browser/6.2.0.5.136 (GUI) MMP/2.0"
425         array('pattern'=>'#\b(UP\.Browser)/([0-9\.]+)#',        'profile'=>'keitai'),
426
427         // Opera, dressing up as other embedded browsers
428         // Sample: "Mozilla/3.0(DDIPOCKET;KYOCERA/AH-K3001V/1.4.1.67.000000/0.1/C100) Opera 7.0" (Like CNF at 'keitai'-mode)
429         array('pattern'=>'#\bDDIPOCKET\b.+\b(Opera) ([0-9\.]+)\b#',     'profile'=>'keitai'),
430
431         // Planetweb http://www.planetweb.com/
432         // Sample: "Mozilla/3.0 (Planetweb/v1.07 Build 141; SPS JP)" ("EGBROWSER", Web browser for PlayStation 2)
433         array('pattern'=>'#\b(Planetweb)/v([0-9\.]+)#', 'profile'=>'keitai'),
434
435         // DreamPassport, Web browser for SEGA DreamCast
436         // Sample: "Mozilla/3.0 (DreamPassport/3.0)"
437         array('pattern'=>'#\b(DreamPassport)/([0-9\.]+)#',      'profile'=>'keitai'),
438
439         // Palm "Web Pro" http://www.palmone.com/us/support/accessories/webpro/
440         // Sample: "Mozilla/4.76 [en] (PalmOS; U; WebPro)"
441         array('pattern'=>'#\b(WebPro)\b#',      'profile'=>'keitai'),
442
443         // ilinx "Palmscape" / "Xiino" http://www.ilinx.co.jp/
444         // Sample: "Xiino/2.1SJ [ja] (v. 4.1; 153x130; c16/d)"
445         array('pattern'=>'#^(Palmscape)/([0-9\.]+)#',   'profile'=>'keitai'),
446         array('pattern'=>'#^(Xiino)/([0-9\.]+)#',       'profile'=>'keitai'),
447
448         // SHARP PDA Browser (SHARP Zaurus)
449         // Sample: "sharp pda browser/6.1[ja](MI-E1/1.0) "
450         array('pattern'=>'#^(sharp [a-z]+ browser)/([0-9\.]+)#',        'profile'=>'keitai'),
451
452         // WebTV
453         array('pattern'=>'#^(WebTV)/([0-9\.]+)#',       'profile'=>'keitai'),
454
455     // Desktop-PC browsers
456
457         // Opera (for desktop PC, not embedded) -- See BugTrack/743 for detail
458         // NOTE: Keep this pattern above MSIE and Mozilla
459         // Sample: "Opera/7.0 (OS; U)" (not disguise)
460         // Sample: "Mozilla/4.0 (compatible; MSIE 5.0; OS) Opera 6.0" (disguise)
461         array('pattern'=>'#\b(Opera)[/ ]([0-9\.]+)\b#', 'profile'=>'default'),
462
463         // MSIE: Microsoft Internet Explorer (or something disguised as MSIE)
464         // Sample: "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
465         array('pattern'=>'#\b(MSIE) ([0-9\.]+)\b#',     'profile'=>'default'),
466
467         // Mozilla Firefox
468         // NOTE: Keep this pattern above Mozilla
469         // Sample: "Mozilla/5.0 (Windows; U; Windows NT 5.0; ja-JP; rv:1.7) Gecko/20040803 Firefox/0.9.3"
470         array('pattern'=>'#\b(Firefox)/([0-9\.]+)\b#',  'profile'=>'default'),
471
472         // Loose default: Including something Mozilla
473         array('pattern'=>'#^([a-zA-z0-9 ]+)/([0-9\.]+)\b#',     'profile'=>'default'),
474
475         array('pattern'=>'#^#', 'profile'=>'default'),  // Sentinel
476 );
477 ?>