<?php
// PukiWiki - Yet another WikiWikiWeb clone
-// $Id: pukiwiki.ini.php,v 1.111 2005/02/07 13:22:40 henoheno Exp $
+// $Id: pukiwiki.ini.php,v 1.129 2006/03/21 13:07:48 henoheno Exp $
+// Copyright (C)
+// 2002-2005 PukiWiki Developers Team
+// 2001-2002 Originally written by yu-ji
+// License: GPL v2 or (at your option) any later version
//
// PukiWiki main setting file
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); // 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)
//$pkwk_dtd = PKWK_DTD_HTML_4_01_TRANSITIONAL;
/////////////////////////////////////////////////
+// Always output "nofollow,noindex" attribute
+
+$nofollow = 0; // 1 = Try hiding from search engines
+
+/////////////////////////////////////////////////
-// PKWK_ALLOW_JAVASCRIPT - Allow using JavaScript
+// 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')
+$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'
/////////////////////////////////////////////////
// Page-reading feature settings
/////////////////////////////////////////////////
// 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,