<?php
// PukiWiki - Yet another WikiWikiWeb clone
-// $Id: pukiwiki.ini.php,v 1.108 2005/01/23 13:55:22 henoheno Exp $
+// $Id: pukiwiki.ini.php,v 1.131 2006/04/27 14:50:58 henoheno Exp $
+// Copyright (C)
+// 2002-2006 PukiWiki Developers Team
+// 2001-2002 Originally written by yu-ji
+// License: GPL v2 or (at your option) any later version
//
-// PukiWiki setting file
+// PukiWiki main setting file
/////////////////////////////////////////////////
// Functionality settings
-// PKWK_READONLY - Prohibit editing (Not work yet)
-if (! defined('PKWK_READONLY'))
- define('PKWK_READONLY', 0); // 0 or 1
-
// PKWK_OPTIMISE - Ignore verbose but understandable checking and warning
// If you end testing this PukiWiki, set '1'.
// If you feel in trouble about this PukiWiki, set '0'.
/////////////////////////////////////////////////
// Security settings
-// PKWK_SAFE_MODE - prohibits some unsafe(but compatible) functions
+// PKWK_READONLY - Prohibits editing and maintain via WWW
+// NOTE: Counter-related functions will work now (counter, attach count, etc)
+if (! defined('PKWK_READONLY'))
+ define('PKWK_READONLY', 0); // 0 or 1
+
+// PKWK_SAFE_MODE - Prohibits some unsafe(but compatible) functions
if (! defined('PKWK_SAFE_MODE'))
define('PKWK_SAFE_MODE', 0);
+// PKWK_DISABLE_INLINE_IMAGE_FROM_URI - Disallow using inline-image-tag for URIs
+// Inline-image-tag for URIs may allow leakage of Wiki readers' information
+// (in short, 'Web bug') or external malicious CGI (looks like an image's URL)
+// attack to Wiki readers, but easy way to show images.
+if (! defined('PKWK_DISABLE_INLINE_IMAGE_FROM_URI'))
+ define('PKWK_DISABLE_INLINE_IMAGE_FROM_URI', 0);
+
// PKWK_QUERY_STRING_MAX
// Max length of GET method, prohibits some worm attack ASAP
// NOTE: Keep (page-name + attach-file-name) <= PKWK_QUERY_STRING_MAX
-define('PKWK_QUERY_STRING_MAX', 640);
+define('PKWK_QUERY_STRING_MAX', 640); // Bytes, 0 = OFF
+
+/////////////////////////////////////////////////
+// Experimental features
+
+// Multiline plugin hack (See BugTrack2/84)
+// EXAMPLE(with a known BUG):
+// #plugin(args1,args2,...,argsN){{
+// argsN+1
+// argsN+1
+// #memo(foo)
+// argsN+1
+// }}
+// #memo(This makes '#memo(foo)' to this)
+define('PKWKEXP_DISABLE_MULTILINE_PLUGIN_HACK', 1); // 1 = Disabled
/////////////////////////////////////////////////
// Language / Encoding settings
// LANG - Internal content encoding ('en', 'ja', or ...)
define('LANG', 'ja');
-// UI_LANG - Content Language for buttons, menus, etc
+// UI_LANG - Content encoding for buttons, menus, etc
define('UI_LANG', LANG); // 'en' for Internationalized wikisite
/////////////////////////////////////////////////
}
/////////////////////////////////////////////////
-// Title of your Wikisite (Define this)
-// and also RSS feed's channel name
+// Title of your Wikisite (Name this)
+// Also used as RSS feed's channel name etc
$page_title = 'PukiWiki';
// Specify PukiWiki URL (default: auto)
// Shorten $script: Cut its file name (default: not cut)
//$script_directory_index = 'index.php';
-// Site admin's name (Change this)
+// Site admin's name (CHANGE THIS)
$modifier = 'anonymous';
-// Site admin's Web page (Change this)
+// Site admin's Web page (CHANGE THIS)
$modifierlink = 'http://pukiwiki.example.com/';
-// Defautl page name
+// Default page name
$defaultpage = 'FrontPage'; // Top / Default page
$whatsnew = 'RecentChanges'; // Modified page list
$whatsdeleted = 'RecentDeleted'; // Removeed page list
//$pkwk_dtd = PKWK_DTD_HTML_4_01_TRANSITIONAL;
/////////////////////////////////////////////////
+// Always output "nofollow,noindex" attribute
-// PKWK_ALLOW_JAVASCRIPT - Allow using JavaScript
+$nofollow = 0; // 1 = Try hiding from search engines
+
+/////////////////////////////////////////////////
+
+// PKWK_ALLOW_JAVASCRIPT - Allow / Prohibit using JavaScript
define('PKWK_ALLOW_JAVASCRIPT', 0);
/////////////////////////////////////////////////
// Enable Trackback
$trackback = 0;
-// Show trackbacks with an another window
+// Show trackbacks with an another window (using JavaScript)
$trackback_javascript = 0;
/////////////////////////////////////////////////
/////////////////////////////////////////////////
// AutoLink feature
-// AutoLink minimum bytes (0 = Disable)
-$autolink = 8;
+// AutoLink minimum length of page name
+$autolink = 8; // Bytes, 0 = OFF
/////////////////////////////////////////////////
// Enable Freeze / Unfreeze feature
$function_freeze = 1;
/////////////////////////////////////////////////
-// Wikisite admin password
+// Allow to use 'Do not change timestamp' checkbox
+// (0:Disable, 1:For everyone, 2:Only for the administrator)
+$notimeupdate = 1;
+
+/////////////////////////////////////////////////
+// Admin password for this Wikisite
-// Change this
-$adminpass = '1a1dc91c907325c69271ddf0c944bc72'; // md5('pass')
+// CHANGE THIS
+$adminpass = '{x-php-md5}1a1dc91c907325c69271ddf0c944bc72'; // md5('pass')
+//$adminpass = '{CRYPT}$1$AR.Gk94x$uCe8fUUGMfxAPH83psCZG/'; // CRYPT 'pass'
+//$adminpass = '{MD5}Gh3JHJBzJcaScd3wyUS8cg=='; // MD5 'pass'
+//$adminpass = '{SMD5}o7lTdtHFJDqxFOVX09C8QnlmYmZnd2Qx'; // SMD5 'pass'
/////////////////////////////////////////////////
-// ChaSen, KAKASI ¤Ë¤è¤ë¡¢¥Ú¡¼¥¸Ì¾¤ÎÆɤߤμèÆÀ (0:̵¸ú,1:͸ú)
+// Page-reading feature settings
+// (Automatically creating pronounce datas, for Kanji-included page names,
+// to show sorted page-list correctly)
+
+// Enable page-reading feature by calling ChaSen or KAKASHI command
+// (1:Enable, 0:Disable)
$pagereading_enable = 0;
-// ChaSen('chasen') or KAKASI('kakasi') or None('none')
+// Specify converter as ChaSen('chasen') or KAKASI('kakasi') or None('none')
$pagereading_kanji2kana_converter = 'none';
-// ChaSen/KAKASI ¤È¤Î¼õ¤±ÅϤ·¤Ë»È¤¦´Á»ú¥³¡¼¥É (UNIX·Ï¤Ï EUC¡¢Win·Ï¤Ï SJIS ¤¬´ðËÜ)
-$pagereading_kanji2kana_encoding = 'EUC';
-//$pagereading_kanji2kana_encoding = 'SJIS';
+// Specify Kanji encoding to pass data between PukiWiki and the converter
+$pagereading_kanji2kana_encoding = 'EUC'; // Default for Unix
+//$pagereading_kanji2kana_encoding = 'SJIS'; // Default for Windows
-// ChaSen/KAKASI ¤Î¼Â¹Ô¥Õ¥¡¥¤¥ë (³Æ¼«¤Î´Ä¶¤Ë¹ç¤ï¤»¤ÆÀßÄê)
+// Absolute path of the converter (ChaSen)
$pagereading_chasen_path = '/usr/local/bin/chasen';
//$pagereading_chasen_path = 'c:\progra~1\chasen21\chasen.exe';
+// Absolute path of the converter (KAKASI)
$pagereading_kakasi_path = '/usr/local/bin/kakasi';
//$pagereading_kakasi_path = 'c:\kakasi\bin\kakasi.exe';
-// ¥Ú¡¼¥¸Ì¾Æɤߤò³ÊǼ¤·¤¿¥Ú¡¼¥¸¤Î̾Á°
+// Page name contains pronounce data (written by the converter)
$pagereading_config_page = ':config/PageReading';
-// converter ='none' ¤Î¾ì¹ç¤ÎÆɤ߲¾Ì¾¼½ñ
+// Page name of default pronouncing dictionary, used when converter = 'none'
$pagereading_config_dict = ':config/PageReading/dict';
/////////////////////////////////////////////////
// User definition
$auth_users = array(
- 'foo' => 'foo_passwd',
- 'bar' => 'bar_passwd',
- 'hoge' => 'hoge_passwd',
+ 'foo' => 'foo_passwd', // Cleartext
+ 'bar' => '{x-php-md5}f53ae779077e987718cc285b14dfbe86', // md5('bar_passwd')
+ 'hoge' => '{SMD5}OzJo/boHwM4q5R+g7LCOx2xGMkFKRVEx', // SMD5 'hoge_passwd'
);
/////////////////////////////////////////////////
// Authentication method
-// 'pagename' : by Page name
-// 'contents' : by Page contents
-$auth_method_type = 'contents';
+$auth_method_type = 'contents'; // By Page contents
+//$auth_method_type = 'pagename'; // By Page name
/////////////////////////////////////////////////
// Read auth (0:Disable, 1:Enable)
$edit_auth_pages = array(
'#Bar¤Î¸ø³«Æüµ#' => 'bar',
'#¤Ò¤¤³¤â¤ë¤Û¤²#' => 'hoge',
- '#(¥Í¥¿¥Ð¥ì|¤Í¤¿¤Ð¤ì)#' => 'foo',
+ '#(¥Í¥¿¥Ð¥ì|¤Í¤¿¤Ð¤ì)#' => 'foo,bar,hoge',
);
/////////////////////////////////////////////////
$cantedit = array( $whatsnew, $whatsdeleted );
/////////////////////////////////////////////////
-// HTTP: Send Last-Modified header
+// HTTP: Output Last-Modified header
$lastmod = 0;
/////////////////////////////////////////////////
$del_backup = 0;
// Bacukp interval and generation
-$cycle = 3; // Wait N hours between backup (0 = no wait)
+$cycle = 3; // Wait N hours between backup (0 = no wait)
$maxage = 120; // Stock latest N backups
// NOTE: $cycle x $maxage / 24 = Minimum days to lost your data
// 3 x 120 / 24 = 15
-// Spilitter of backup data (NOTE: Too dangerous to change)
+// Splitter of backup data (NOTE: Too dangerous to change)
define('PKWK_SPLITTER', '>>>>>>>>>>');
/////////////////////////////////////////////////
//$update_exec = '/usr/bin/mknmz --media-type=text/pukiwiki -O /var/lib/namazu/index/ -L ja -c -K /var/www/wiki/';
/////////////////////////////////////////////////
-// Proxy setting (for TrackBack etc)
+// HTTP proxy setting (for TrackBack etc)
// Use HTTP proxy server to get remote data
$use_proxy = 0;
// SMTP server (Windows only. Usually specified at php.ini)
$smtp_server = 'localhost';
+// Mail recipient (To:) and sender (From:)
$notify_to = 'to@example.com'; // To:
$notify_from = 'from@example.com'; // From:
$notify_subject = '[PukiWiki] $page';
// Mail header
-$notify_header = "From: $notify_from\r\n" .
- 'X-Mailer: PukiWiki/' . S_VERSION . ' PHP/' . phpversion();
+// NOTE: Multiple items must be divided by "\r\n", not "\n".
+$notify_header = '';
/////////////////////////////////////////////////
// Mail: POP / APOP Before SMTP
$preformat_ltrim = 1;
/////////////////////////////////////////////////
-// Convert linebreaks into <br/>
+// Convert linebreaks into <br />
$line_break = 0;
/////////////////////////////////////////////////
+// Use date-time rules (See rules.ini.php)
+$usedatetime = 1;
+
+/////////////////////////////////////////////////
// User-Agent settings
//
-// ¥ê¥Ã¥Á¥¯¥é¥¤¥¢¥ó¥È¤òÁ°Äó¤È¤·¤¿¥µ¥¤¥È¤ò¹½ÃÛ¤¹¤ë
-// ¤¿¤á¤Ë¡¢·ÈÂÓÅÅÏäʤɤ˰տÞŪ¤ËÈóÂбþ¤È¤·¤¿¤¤¾ì¹ç¡¢
-// ºÇ¸å¤Î¥Ç¥Õ¥©¥ë¥ÈÀßÄê°Ê³°¤Î¹Ô¤òÁ´¤Æºï½ü¤¢¤ë¤¤¤Ï
-// ¥³¥á¥ó¥È¥¢¥¦¥È¤·¤Æ²¼¤µ¤¤¡£
+// If you want to ignore embedded browsers for rich-content-wikisite,
+// remove (or comment-out) all 'keitai' settings.
//
-// ¥Ç¥¶¥¤¥ó¤ä¥¹¥¿¥¤¥ë¤ò´ÊÁǤÊkeitai¥×¥í¥Õ¥¡¥¤¥ë¤Ë
-// Åý°ì¤·¤¿¤¤»þ¤Ï¡¢¥Ç¥Õ¥©¥ë¥ÈÀßÄê°Ê³°¤Î¹Ô¤òÁ´¤Æºï½ü
-// ¤¢¤ë¤¤¤Ï¥³¥á¥ó¥È¥¢¥¦¥È¤·¤¿¸å¤Ë¡¢¥Ç¥Õ¥©¥ë¥ÈÀßÄê¤ò
-// 'profile'=>'keitai' ¤È½¤Àµ¤·¤Æ²¼¤µ¤¤¡£
+// If you want to to ignore desktop-PC browsers for simple wikisite,
+// copy keitai.ini.php to default.ini.php and customize it.
$agents = array(
// pattern: A regular-expression that matches device(browser)'s name and version
// Opera, dressing up as other embedded browsers
// Sample: "Mozilla/3.0(DDIPOCKET;KYOCERA/AH-K3001V/1.4.1.67.000000/0.1/C100) Opera 7.0" (Like CNF at 'keitai'-mode)
- array('pattern'=>'#\bDDIPOCKET\b.+\b(Opera) ([0-9\.]+)\b#', 'profile'=>'keitai'),
+ array('pattern'=>'#\b(?:DDIPOCKET|WILLCOM)\b.+\b(Opera) ([0-9\.]+)\b#', 'profile'=>'keitai'),
// Planetweb http://www.planetweb.com/
// Sample: "Mozilla/3.0 (Planetweb/v1.07 Build 141; SPS JP)" ("EGBROWSER", Web browser for PlayStation 2)