初期pukiwiki.ini.php
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*初期pukiwiki.ini.php [#ia13033c]
<?php
// PukiWiki - Yet another WikiWikiWeb clone
// pukiwiki.ini.php
// Copyright
// 2002-2019 PukiWiki Development Team
// 2001-2002 Originally written by yu-ji
// License: GPL v2 or (at your option) any later version
//
// PukiWiki main setting file
/////////////////////////////////////////////////
// Functionality settings
// PKWK_OPTIMISE - Ignore verbose but understandable che...
// If you end testing this PukiWiki, set '1'.
// If you feel in trouble about this PukiWiki, set '0'.
if (! defined('PKWK_OPTIMISE'))
define('PKWK_OPTIMISE', 0);
/////////////////////////////////////////////////
// Security settings
// PKWK_READONLY - Prohibits editing and maintain via WWW
// NOTE: Counter-related functions will work now (coun...
if (! defined('PKWK_READONLY'))
define('PKWK_READONLY', 0); // 0 or 1
// PKWK_SAFE_MODE - Prohibits some unsafe(but compatible...
if (! defined('PKWK_SAFE_MODE'))
define('PKWK_SAFE_MODE', 0);
// PKWK_DISABLE_INLINE_IMAGE_FROM_URI - Disallow using i...
// Inline-image-tag for URIs may allow leakage of Wiki...
// (in short, 'Web bug') or external malicious CGI (lo...
// 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 attac...
// NOTE: Keep (page-name + attach-file-name) <= PKWK_Q...
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...
/////////////////////////////////////////////////
// Language / Encoding settings
// LANG - Internal content encoding ('en', 'ja', or ...)
define('LANG', 'ja');
// UI_LANG - Content encoding for buttons, menus, etc
define('UI_LANG', LANG); // 'en' for Internationalized w...
/////////////////////////////////////////////////
// Directory settings I (ended with '/', permission '777')
// You may hide these directories (from web browsers)
// by setting DATA_HOME at index.php.
define('DATA_DIR', DATA_HOME . 'wiki/' ); // La...
define('DIFF_DIR', DATA_HOME . 'diff/' ); // La...
define('BACKUP_DIR', DATA_HOME . 'backup/' ); // Ba...
define('CACHE_DIR', DATA_HOME . 'cache/' ); // So...
define('UPLOAD_DIR', DATA_HOME . 'attach/' ); // At...
define('COUNTER_DIR', DATA_HOME . 'counter/' ); // Co...
define('PLUGIN_DIR', DATA_HOME . 'plugin/' ); // Pl...
/////////////////////////////////////////////////
// Directory settings II (ended with '/')
// Skins / Stylesheets
define('SKIN_DIR', 'skin/');
// Skin files (SKIN_DIR/*.skin.php) are needed at
// ./DATAHOME/SKIN_DIR from index.php, but
// CSSs(*.css) and JavaScripts(*.js) are needed at
// ./SKIN_DIR from index.php.
// Static image files
define('IMAGE_DIR', 'image/');
// Keep this directory shown via web browsers like
// ./IMAGE_DIR from index.php.
/////////////////////////////////////////////////
// Local time setting
switch (LANG) { // or specifiy one
case 'ja':
define('ZONE', 'JST');
define('ZONETIME', 9 * 3600); // JST = GMT + 9
break;
default :
define('ZONE', 'GMT');
define('ZONETIME', 0);
break;
}
/////////////////////////////////////////////////
// Title of your Wikisite (Name this)
// Also used as RSS feed's channel name etc
$page_title = 'PukiWiki';
// Specify PukiWiki URL (default: auto)
//$script = 'http://example.com/pukiwiki/';
// Shorten $script: Cut its file name (default: not cut)
//$script_directory_index = 'index.php';
// Site admin's name (CHANGE THIS)
$modifier = 'anonymous';
// Site admin's Web page (CHANGE THIS)
$modifierlink = 'http://pukiwiki.example.com/';
// Default page name
$defaultpage = 'FrontPage'; // Top / Default page
$whatsnew = 'RecentChanges'; // Modified page list
$whatsdeleted = 'RecentDeleted'; // Removeed page list
$interwiki = 'InterWikiName'; // Set InterWiki defini...
$menubar = 'MenuBar'; // Menu
/////////////////////////////////////////////////
// Change default Document Type Definition
// Some web browser's bug, and / or Java apprets may nee...
// Some plugin (e.g. paint) set this PKWK_DTD_XHTML_1_0_...
//$pkwk_dtd = PKWK_DTD_XHTML_1_1; // Default
//$pkwk_dtd = PKWK_DTD_XHTML_1_0_STRICT;
//$pkwk_dtd = PKWK_DTD_XHTML_1_0_TRANSITIONAL;
//$pkwk_dtd = PKWK_DTD_HTML_4_01_STRICT;
//$pkwk_dtd = PKWK_DTD_HTML_4_01_TRANSITIONAL;
/////////////////////////////////////////////////
// Always output "nofollow,noindex" attribute
$nofollow = 0; // 1 = Try hiding from search engines
/////////////////////////////////////////////////
// PKWK_ALLOW_JAVASCRIPT - Must be 1 only for compatibil...
define('PKWK_ALLOW_JAVASCRIPT', 1);
/////////////////////////////////////////////////
// _Disable_ WikiName auto-linking
$nowikiname = 0;
/////////////////////////////////////////////////
// AutoLink feature
// AutoLink minimum length of page name
$autolink = 0; // Bytes, 0 = OFF (try 8)
/////////////////////////////////////////////////
// Enable Freeze / Unfreeze feature
$function_freeze = 1;
/////////////////////////////////////////////////
// Allow to use 'Do not change timestamp' checkbox
// (0:Disable, 1:For everyone, 2:Only for the administr...
$notimeupdate = 1;
/////////////////////////////////////////////////
// Admin password for this Wikisite
// Default: always fail
$adminpass = '{x-php-md5}!';
// Sample:
//$adminpass = 'pass'; // Cleartext
//$adminpass = '{x-php-md5}1a1dc91c907325c69271ddf0c944b...
//$adminpass = '{x-php-sha256}d74ff0ee8da3b9806b18c877db...
//$adminpass = '{CRYPT}$1$AR.Gk94x$uCe8fUUGMfxAPH83psCZG...
//$adminpass = '{MD5}Gh3JHJBzJcaScd3wyUS8cg=='; ...
//$adminpass = '{SMD5}o7lTdtHFJDqxFOVX09C8QnlmYmZnd2Qx';...
//$adminpass = '{SHA256}10/w7o2juYBrGMh32/KbveULW9jk2tej...
/////////////////////////////////////////////////
// Page-reading feature settings
// (Automatically creating pronounce datas, for Kanji-in...
// to show sorted page-list correctly)
// Enable page-reading feature by calling ChaSen or KAKA...
// (1:Enable, 0:Disable)
$pagereading_enable = 0;
// Specify converter as ChaSen('chasen') or KAKASI('kaka...
$pagereading_kanji2kana_converter = 'none';
// Specify Kanji encoding to pass data between PukiWiki ...
$pagereading_kanji2kana_encoding = 'EUC'; // Default for...
//$pagereading_kanji2kana_encoding = 'SJIS'; // Default ...
// Absolute path of the converter (ChaSen)
$pagereading_chasen_path = '/usr/local/bin/chasen';
//$pagereading_chasen_path = 'c:\progra~1\chasen21\chase...
// 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 con...
$pagereading_config_page = ':config/PageReading';
// Page name of default pronouncing dictionary, used whe...
$pagereading_config_dict = ':config/PageReading/dict';
/////////////////////////////////////////////////
// Authentication type
// AUTH_TYPE_NONE, AUTH_TYPE_FORM, AUTH_TYPE_BASIC, AUTH...
// $auth_type = AUTH_TYPE_FORM;
// $auth_external_login_url_base = './exlogin.php';
/////////////////////////////////////////////////
// LDAP
$ldap_user_account = 0; // (0: Disabled, 1: Enabled)
// $ldap_server = 'ldap://ldapserver:389';
// $ldap_base_dn = 'ou=Users,dc=ldap,dc=example,dc=com';
// $ldap_bind_dn = 'uid=$login,dc=example,dc=com';
// $ldap_bind_password = '';
/////////////////////////////////////////////////
// User prefix that shows its auth provider
$auth_provider_user_prefix_default = 'default:';
$auth_provider_user_prefix_ldap = 'ldap:';
$auth_provider_user_prefix_external = 'external:';
$auth_provider_user_prefix_saml = 'saml:';
/////////////////////////////////////////////////
// User definition
$auth_users = array(
// Username => password
'foo' => 'foo_passwd', // Cleartext
'bar' => '{x-php-md5}f53ae779077e987718cc285b14dfbe86',...
'hoge' => '{SMD5}OzJo/boHwM4q5R+g7LCOx2xGMkFKRVEx', ...
);
// Group definition
$auth_groups = array(
// Groupname => group members(users)
'valid-user' => '', // Reserved 'valid-user' group cont...
'groupfoobar' => 'foo,bar',
);
/////////////////////////////////////////////////
// Authentication method
$auth_method_type = 'pagename'; // By Page name
//$auth_method_type = 'contents'; // By Page contents
/////////////////////////////////////////////////
// Read auth (0:Disable, 1:Enable)
$read_auth = 0;
$read_auth_pages = array(
// Regex Groupname or Username
'#PageForAllValidUsers#' => 'valid-user',
'#HogeHoge#' => 'hoge',
'#(NETABARE|NetaBare)#' => 'foo,bar,hoge',
);
/////////////////////////////////////////////////
// Edit auth (0:Disable, 1:Enable)
$edit_auth = 0;
$edit_auth_pages = array(
// Regex Username
'#BarDiary#' => 'bar',
'#HogeHoge#' => 'hoge',
'#(NETABARE|NetaBare)#' => 'foo,bar,hoge',
);
/////////////////////////////////////////////////
// Search auth
// 0: Disabled (Search read-prohibited page contents)
// 1: Enabled (Search only permitted pages for the user)
$search_auth = 0;
/////////////////////////////////////////////////
// AutoTicketLink
$ticket_link_sites = array(
/*
array(
'key' => 'phpbug',
'type' => 'redmine', // type: redmine, jira or git
'title' => 'PHP :: Bug #$1',
'base_url' => 'https://bugs.php.net/bug.php?id=',
),
array(
'key' => 'asfjira',
'type' => 'jira',
'title' => 'ASF JIRA [$1]',
'base_url' => 'https://issues.apache.org/jira/browse/',
),
array(
'key' => 'pukiwiki-commit',
'type' => 'git',
'title' => 'PukiWiki revision $1',
'base_url' => 'https://ja.osdn.net/projects/pukiwiki/s...
),
*/
);
// AutoTicketLink - JIRA Default site
/*
$ticket_jira_default_site = array(
'title' => 'My JIRA - $1',
'base_url' => 'https://issues.example.com/jira/browse/',
);
//*/
/////////////////////////////////////////////////
// Show External Link Cushion Page
// 0: Disabled
// 1: Enabled
$external_link_cushion_page = 0;
$external_link_cushion = array(
// Wait N seconds before jumping to an external site
'wait_seconds' => 5,
// Internal site domain list
'internal_domains' => array(
'localhost',
// '*.example.com',
),
// Don't show extenal link icons on these domains
'silent_external_domains' => array(
'pukiwiki.osdn.jp',
'pukiwiki.example.com',
),
);
/////////////////////////////////////////////////
// Show Topicpath title
// 0: Disabled
// 1: Enabled
$topicpath_title = 1;
/////////////////////////////////////////////////
// Output HTML meta Referrer Policy
// Value: '' (default), no-referrer, origin, same-origin...
// Reference: https://developer.mozilla.org/en-US/docs/W...
$html_meta_referrer_policy = '';
/////////////////////////////////////////////////
// Output custom HTTP response headers
$http_response_custom_headers = array(
// 'Strict-Transport-Security: max-age=86400',
// 'X-Content-Type-Options: nosniff',
);
/////////////////////////////////////////////////
// $whatsnew: Max number of RecentChanges
$maxshow = 500;
// $whatsdeleted: Max number of RecentDeleted
// (0 = Disabled)
$maxshow_deleted = 200;
/////////////////////////////////////////////////
// Page names can't be edit via PukiWiki
$cantedit = array( $whatsnew, $whatsdeleted );
/////////////////////////////////////////////////
// HTTP: Output Last-Modified header
$lastmod = 0;
/////////////////////////////////////////////////
// Date format
$date_format = 'Y-m-d';
// Time format
$time_format = 'H:i:s';
/////////////////////////////////////////////////
// Max number of RSS feed
$rss_max = 15;
/////////////////////////////////////////////////
// Backup related settings
// Enable backup
$do_backup = 1;
// When a page had been removed, remove its backup too?
$del_backup = 0;
// Bacukp interval and generation
$cycle = 3; // Wait N hours between backup (0 = no wa...
$maxage = 120; // Stock latest N backups
// NOTE: $cycle x $maxage / 24 = Minimum days to lost yo...
// 3 x 120 / 24 = 15
// Splitter of backup data (NOTE: Too dangerous to change)
define('PKWK_SPLITTER', '>>>>>>>>>>');
/////////////////////////////////////////////////
// Command execution per update
define('PKWK_UPDATE_EXEC', '');
// Sample: Namazu (Search engine)
//$target = '/var/www/wiki/';
//$mknmz = '/usr/bin/mknmz';
//$output_dir = '/var/lib/namazu/index/';
//define('PKWK_UPDATE_EXEC',
// $mknmz . ' --media-type=text/pukiwiki' .
// ' -O ' . $output_dir . ' -L ja -c -K ' . $target);
/////////////////////////////////////////////////
// HTTP proxy setting
// Use HTTP proxy server to get remote data
$use_proxy = 0;
$proxy_host = 'proxy.example.com';
$proxy_port = 8080;
// Do Basic authentication
$need_proxy_auth = 0;
$proxy_auth_user = 'username';
$proxy_auth_pass = 'password';
// Hosts that proxy server will not be needed
$no_proxy = array(
'localhost', // localhost
'127.0.0.0/8', // loopback
// '10.0.0.0/8' // private class A
// '172.16.0.0/12' // private class B
// '192.168.0.0/16' // private class C
// 'no-proxy.com',
);
////////////////////////////////////////////////
// Mail related settings
// Send mail per update of pages
$notify = 0;
// Send diff only
$notify_diff_only = 1;
// SMTP server (Windows only. Usually specified at php.i...
$smtp_server = 'localhost';
// Mail recipient (To:) and sender (From:)
$notify_to = 'to@example.com'; // To:
$notify_from = 'from@example.com'; // From:
// Subject: ($page = Page name wll be replaced)
$notify_subject = '[PukiWiki] $page';
// Mail header
// NOTE: Multiple items must be divided by "\r\n", not "...
$notify_header = '';
/////////////////////////////////////////////////
// Mail: POP / APOP Before SMTP
// Do POP/APOP authentication before send mail
$smtp_auth = 0;
$pop_server = 'localhost';
$pop_port = 110;
$pop_userid = '';
$pop_passwd = '';
// Use APOP instead of POP (If server uses)
// Default = Auto (Use APOP if possible)
// 1 = Always use APOP
// 0 = Always use POP
// $pop_auth_use_apop = 1;
/////////////////////////////////////////////////
// Ignore list
// Regex of ignore pages
$non_list = '^\:';
// Search ignored pages
$search_non_list = 1;
// Page redirect rules
$page_redirect_rules = array(
//'#^FromProject($|(/(.+)$))#' => 'ToProject$1',
//'#^FromProject($|(/(.+)$))#' => function($matches) { ...
);
/////////////////////////////////////////////////
// Template setting
$auto_template_func = 1;
$auto_template_rules = array(
'((.+)\/([^\/]+))' => '\2/template'
);
/////////////////////////////////////////////////
// Automatically add fixed heading anchor
$fixed_heading_anchor = 1;
/////////////////////////////////////////////////
// Remove the first spaces from Preformatted text
$preformat_ltrim = 1;
/////////////////////////////////////////////////
// Convert linebreaks into <br />
$line_break = 0;
/////////////////////////////////////////////////
// Use date-time rules (See rules.ini.php)
$usedatetime = 1;
/////////////////////////////////////////////////
// Logging updates (0 or 1)
$logging_updates = 0;
$logging_updates_log_dir = '/var/log/pukiwiki';
/////////////////////////////////////////////////
// User-Agent settings
//
// If you want to ignore embedded browsers for rich-cont...
// remove (or comment-out) all 'keitai' settings.
//
// If you want to to ignore desktop-PC browsers for simp...
// copy keitai.ini.php to default.ini.php and customize ...
$agents = array(
// pattern: A regular-expression that matches device(bro...
// profile: A group of browsers
// Embedded browsers (Rich-clients for PukiWiki)
// Windows CE (Microsoft(R) Internet Explorer 5.5 for W...
// Sample: "Mozilla/4.0 (compatible; MSIE 5.5; Windows ...
array('pattern'=>'#\b(?:MSIE [5-9]).*\b(Windows CE)\b#'...
// ACCESS "NetFront" / "Compact NetFront" and thier OEM...
// Sample: "Mozilla/4.0 (PS2; PlayStation BB Navigator ...
// Sample: "Mozilla/4.0 (PDA; PalmOS/sony/model crdb/Re...
// Sample: "Mozilla/4.0 (PDA; SL-A300/1.0,Embedix/Qtopi...
array('pattern'=>'#^(?:Mozilla/4).*\b(NetFront)/([0-9\....
// Embedded browsers (Non-rich)
// Windows CE (the others)
// Sample: "Mozilla/2.0 (compatible; MSIE 3.02; Windows...
array('pattern'=>'#\b(Windows CE)\b#', 'profile'=>'keit...
// ACCESS "NetFront" / "Compact NetFront" and thier OEM
// Sample: "Mozilla/3.0 (AveFront/2.6)" ("SUNTAC Online...
// Sample: "Mozilla/3.0(DDIPOCKET;JRC/AH-J3001V,AH-J300...
array('pattern'=>'#\b(NetFront)/([0-9\.]+)#', 'profile'...
array('pattern'=>'#\b(CNF)/([0-9\.]+)#', 'profile'=>'ke...
array('pattern'=>'#\b(AveFront)/([0-9\.]+)#', 'profile'...
array('pattern'=>'#\b(AVE-Front)/([0-9\.]+)#', 'profile...
// NTT-DoCoMo, i-mode (embeded Compact NetFront) and FO...
// Sample: "DoCoMo/1.0/F501i", "DoCoMo/1.0/N504i/c10/TB...
// Sample: "DoCoMo/2.0 MST_v_SH2101V(c100;TB;W22H12;ser...
array('pattern'=>'#^(DoCoMo)/([0-9\.]+)#', 'profile'=>'...
// Vodafone's embedded browser
// Sample: "J-PHONE/2.0/J-T03" // 2.0は"ブラウザの"バー...
// Sample: "J-PHONE/4.0/J-SH51/SNxxxx SH/0001a Profile/...
array('pattern'=>'#^(J-PHONE)/([0-9\.]+)#', 'profile'=>...
// Openwave(R) Mobile Browser (EZweb, WAP phone, etc)
// Sample: "OPWV-SDK/62K UP.Browser/6.2.0.5.136 (GUI) M...
array('pattern'=>'#\b(UP\.Browser)/([0-9\.]+)#', 'profi...
// Opera, dressing up as other embedded browsers
// Sample: "Mozilla/3.0(DDIPOCKET;KYOCERA/AH-K3001V/1.4...
array('pattern'=>'#\b(?:DDIPOCKET|WILLCOM)\b.+\b(Opera)...
// Planetweb http://www.planetweb.com/
// Sample: "Mozilla/3.0 (Planetweb/v1.07 Build 141; SPS...
array('pattern'=>'#\b(Planetweb)/v([0-9\.]+)#', 'profil...
// DreamPassport, Web browser for SEGA DreamCast
// Sample: "Mozilla/3.0 (DreamPassport/3.0)"
array('pattern'=>'#\b(DreamPassport)/([0-9\.]+)#', 'pro...
// Palm "Web Pro" http://www.palmone.com/us/support/acc...
// Sample: "Mozilla/4.76 [en] (PalmOS; U; WebPro)"
array('pattern'=>'#\b(WebPro)\b#', 'profile'=>'keitai'),
// ilinx "Palmscape" / "Xiino" http://www.ilinx.co.jp/
// Sample: "Xiino/2.1SJ [ja] (v. 4.1; 153x130; c16/d)"
array('pattern'=>'#^(Palmscape)/([0-9\.]+)#', 'profile'...
array('pattern'=>'#^(Xiino)/([0-9\.]+)#', 'profile'=>'k...
// SHARP PDA Browser (SHARP Zaurus)
// Sample: "sharp pda browser/6.1[ja](MI-E1/1.0) "
array('pattern'=>'#^(sharp [a-z]+ browser)/([0-9\.]+)#'...
// WebTV
array('pattern'=>'#^(WebTV)/([0-9\.]+)#', 'profile'=>'k...
// Desktop-PC browsers
// Opera (for desktop PC, not embedded) -- See BugTrack...
// NOTE: Keep this pattern above MSIE and Mozilla
// Sample: "Opera/7.0 (OS; U)" (not disguise)
// Sample: "Mozilla/4.0 (compatible; MSIE 5.0; OS) Oper...
array('pattern'=>'#\b(Opera)[/ ]([0-9\.]+)\b#', 'profil...
// MSIE: Microsoft Internet Explorer (or something disg...
// Sample: "Mozilla/4.0 (compatible; MSIE 6.0; Windows ...
array('pattern'=>'#\b(MSIE) ([0-9\.]+)\b#', 'profile'=>...
// Mozilla Firefox
// NOTE: Keep this pattern above Mozilla
// Sample: "Mozilla/5.0 (Windows; U; Windows NT 5.0; ja...
array('pattern'=>'#\b(Firefox)/([0-9\.]+)\b#', 'profile...
// Loose default: Including something Mozilla
array('pattern'=>'#^([a-zA-z0-9 ]+)/([0-9\.]+)\b#', 'pr...
array('pattern'=>'#^#', 'profile'=>'default'), // Senti...
);
終了行:
*初期pukiwiki.ini.php [#ia13033c]
<?php
// PukiWiki - Yet another WikiWikiWeb clone
// pukiwiki.ini.php
// Copyright
// 2002-2019 PukiWiki Development Team
// 2001-2002 Originally written by yu-ji
// License: GPL v2 or (at your option) any later version
//
// PukiWiki main setting file
/////////////////////////////////////////////////
// Functionality settings
// PKWK_OPTIMISE - Ignore verbose but understandable che...
// If you end testing this PukiWiki, set '1'.
// If you feel in trouble about this PukiWiki, set '0'.
if (! defined('PKWK_OPTIMISE'))
define('PKWK_OPTIMISE', 0);
/////////////////////////////////////////////////
// Security settings
// PKWK_READONLY - Prohibits editing and maintain via WWW
// NOTE: Counter-related functions will work now (coun...
if (! defined('PKWK_READONLY'))
define('PKWK_READONLY', 0); // 0 or 1
// PKWK_SAFE_MODE - Prohibits some unsafe(but compatible...
if (! defined('PKWK_SAFE_MODE'))
define('PKWK_SAFE_MODE', 0);
// PKWK_DISABLE_INLINE_IMAGE_FROM_URI - Disallow using i...
// Inline-image-tag for URIs may allow leakage of Wiki...
// (in short, 'Web bug') or external malicious CGI (lo...
// 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 attac...
// NOTE: Keep (page-name + attach-file-name) <= PKWK_Q...
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...
/////////////////////////////////////////////////
// Language / Encoding settings
// LANG - Internal content encoding ('en', 'ja', or ...)
define('LANG', 'ja');
// UI_LANG - Content encoding for buttons, menus, etc
define('UI_LANG', LANG); // 'en' for Internationalized w...
/////////////////////////////////////////////////
// Directory settings I (ended with '/', permission '777')
// You may hide these directories (from web browsers)
// by setting DATA_HOME at index.php.
define('DATA_DIR', DATA_HOME . 'wiki/' ); // La...
define('DIFF_DIR', DATA_HOME . 'diff/' ); // La...
define('BACKUP_DIR', DATA_HOME . 'backup/' ); // Ba...
define('CACHE_DIR', DATA_HOME . 'cache/' ); // So...
define('UPLOAD_DIR', DATA_HOME . 'attach/' ); // At...
define('COUNTER_DIR', DATA_HOME . 'counter/' ); // Co...
define('PLUGIN_DIR', DATA_HOME . 'plugin/' ); // Pl...
/////////////////////////////////////////////////
// Directory settings II (ended with '/')
// Skins / Stylesheets
define('SKIN_DIR', 'skin/');
// Skin files (SKIN_DIR/*.skin.php) are needed at
// ./DATAHOME/SKIN_DIR from index.php, but
// CSSs(*.css) and JavaScripts(*.js) are needed at
// ./SKIN_DIR from index.php.
// Static image files
define('IMAGE_DIR', 'image/');
// Keep this directory shown via web browsers like
// ./IMAGE_DIR from index.php.
/////////////////////////////////////////////////
// Local time setting
switch (LANG) { // or specifiy one
case 'ja':
define('ZONE', 'JST');
define('ZONETIME', 9 * 3600); // JST = GMT + 9
break;
default :
define('ZONE', 'GMT');
define('ZONETIME', 0);
break;
}
/////////////////////////////////////////////////
// Title of your Wikisite (Name this)
// Also used as RSS feed's channel name etc
$page_title = 'PukiWiki';
// Specify PukiWiki URL (default: auto)
//$script = 'http://example.com/pukiwiki/';
// Shorten $script: Cut its file name (default: not cut)
//$script_directory_index = 'index.php';
// Site admin's name (CHANGE THIS)
$modifier = 'anonymous';
// Site admin's Web page (CHANGE THIS)
$modifierlink = 'http://pukiwiki.example.com/';
// Default page name
$defaultpage = 'FrontPage'; // Top / Default page
$whatsnew = 'RecentChanges'; // Modified page list
$whatsdeleted = 'RecentDeleted'; // Removeed page list
$interwiki = 'InterWikiName'; // Set InterWiki defini...
$menubar = 'MenuBar'; // Menu
/////////////////////////////////////////////////
// Change default Document Type Definition
// Some web browser's bug, and / or Java apprets may nee...
// Some plugin (e.g. paint) set this PKWK_DTD_XHTML_1_0_...
//$pkwk_dtd = PKWK_DTD_XHTML_1_1; // Default
//$pkwk_dtd = PKWK_DTD_XHTML_1_0_STRICT;
//$pkwk_dtd = PKWK_DTD_XHTML_1_0_TRANSITIONAL;
//$pkwk_dtd = PKWK_DTD_HTML_4_01_STRICT;
//$pkwk_dtd = PKWK_DTD_HTML_4_01_TRANSITIONAL;
/////////////////////////////////////////////////
// Always output "nofollow,noindex" attribute
$nofollow = 0; // 1 = Try hiding from search engines
/////////////////////////////////////////////////
// PKWK_ALLOW_JAVASCRIPT - Must be 1 only for compatibil...
define('PKWK_ALLOW_JAVASCRIPT', 1);
/////////////////////////////////////////////////
// _Disable_ WikiName auto-linking
$nowikiname = 0;
/////////////////////////////////////////////////
// AutoLink feature
// AutoLink minimum length of page name
$autolink = 0; // Bytes, 0 = OFF (try 8)
/////////////////////////////////////////////////
// Enable Freeze / Unfreeze feature
$function_freeze = 1;
/////////////////////////////////////////////////
// Allow to use 'Do not change timestamp' checkbox
// (0:Disable, 1:For everyone, 2:Only for the administr...
$notimeupdate = 1;
/////////////////////////////////////////////////
// Admin password for this Wikisite
// Default: always fail
$adminpass = '{x-php-md5}!';
// Sample:
//$adminpass = 'pass'; // Cleartext
//$adminpass = '{x-php-md5}1a1dc91c907325c69271ddf0c944b...
//$adminpass = '{x-php-sha256}d74ff0ee8da3b9806b18c877db...
//$adminpass = '{CRYPT}$1$AR.Gk94x$uCe8fUUGMfxAPH83psCZG...
//$adminpass = '{MD5}Gh3JHJBzJcaScd3wyUS8cg=='; ...
//$adminpass = '{SMD5}o7lTdtHFJDqxFOVX09C8QnlmYmZnd2Qx';...
//$adminpass = '{SHA256}10/w7o2juYBrGMh32/KbveULW9jk2tej...
/////////////////////////////////////////////////
// Page-reading feature settings
// (Automatically creating pronounce datas, for Kanji-in...
// to show sorted page-list correctly)
// Enable page-reading feature by calling ChaSen or KAKA...
// (1:Enable, 0:Disable)
$pagereading_enable = 0;
// Specify converter as ChaSen('chasen') or KAKASI('kaka...
$pagereading_kanji2kana_converter = 'none';
// Specify Kanji encoding to pass data between PukiWiki ...
$pagereading_kanji2kana_encoding = 'EUC'; // Default for...
//$pagereading_kanji2kana_encoding = 'SJIS'; // Default ...
// Absolute path of the converter (ChaSen)
$pagereading_chasen_path = '/usr/local/bin/chasen';
//$pagereading_chasen_path = 'c:\progra~1\chasen21\chase...
// 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 con...
$pagereading_config_page = ':config/PageReading';
// Page name of default pronouncing dictionary, used whe...
$pagereading_config_dict = ':config/PageReading/dict';
/////////////////////////////////////////////////
// Authentication type
// AUTH_TYPE_NONE, AUTH_TYPE_FORM, AUTH_TYPE_BASIC, AUTH...
// $auth_type = AUTH_TYPE_FORM;
// $auth_external_login_url_base = './exlogin.php';
/////////////////////////////////////////////////
// LDAP
$ldap_user_account = 0; // (0: Disabled, 1: Enabled)
// $ldap_server = 'ldap://ldapserver:389';
// $ldap_base_dn = 'ou=Users,dc=ldap,dc=example,dc=com';
// $ldap_bind_dn = 'uid=$login,dc=example,dc=com';
// $ldap_bind_password = '';
/////////////////////////////////////////////////
// User prefix that shows its auth provider
$auth_provider_user_prefix_default = 'default:';
$auth_provider_user_prefix_ldap = 'ldap:';
$auth_provider_user_prefix_external = 'external:';
$auth_provider_user_prefix_saml = 'saml:';
/////////////////////////////////////////////////
// User definition
$auth_users = array(
// Username => password
'foo' => 'foo_passwd', // Cleartext
'bar' => '{x-php-md5}f53ae779077e987718cc285b14dfbe86',...
'hoge' => '{SMD5}OzJo/boHwM4q5R+g7LCOx2xGMkFKRVEx', ...
);
// Group definition
$auth_groups = array(
// Groupname => group members(users)
'valid-user' => '', // Reserved 'valid-user' group cont...
'groupfoobar' => 'foo,bar',
);
/////////////////////////////////////////////////
// Authentication method
$auth_method_type = 'pagename'; // By Page name
//$auth_method_type = 'contents'; // By Page contents
/////////////////////////////////////////////////
// Read auth (0:Disable, 1:Enable)
$read_auth = 0;
$read_auth_pages = array(
// Regex Groupname or Username
'#PageForAllValidUsers#' => 'valid-user',
'#HogeHoge#' => 'hoge',
'#(NETABARE|NetaBare)#' => 'foo,bar,hoge',
);
/////////////////////////////////////////////////
// Edit auth (0:Disable, 1:Enable)
$edit_auth = 0;
$edit_auth_pages = array(
// Regex Username
'#BarDiary#' => 'bar',
'#HogeHoge#' => 'hoge',
'#(NETABARE|NetaBare)#' => 'foo,bar,hoge',
);
/////////////////////////////////////////////////
// Search auth
// 0: Disabled (Search read-prohibited page contents)
// 1: Enabled (Search only permitted pages for the user)
$search_auth = 0;
/////////////////////////////////////////////////
// AutoTicketLink
$ticket_link_sites = array(
/*
array(
'key' => 'phpbug',
'type' => 'redmine', // type: redmine, jira or git
'title' => 'PHP :: Bug #$1',
'base_url' => 'https://bugs.php.net/bug.php?id=',
),
array(
'key' => 'asfjira',
'type' => 'jira',
'title' => 'ASF JIRA [$1]',
'base_url' => 'https://issues.apache.org/jira/browse/',
),
array(
'key' => 'pukiwiki-commit',
'type' => 'git',
'title' => 'PukiWiki revision $1',
'base_url' => 'https://ja.osdn.net/projects/pukiwiki/s...
),
*/
);
// AutoTicketLink - JIRA Default site
/*
$ticket_jira_default_site = array(
'title' => 'My JIRA - $1',
'base_url' => 'https://issues.example.com/jira/browse/',
);
//*/
/////////////////////////////////////////////////
// Show External Link Cushion Page
// 0: Disabled
// 1: Enabled
$external_link_cushion_page = 0;
$external_link_cushion = array(
// Wait N seconds before jumping to an external site
'wait_seconds' => 5,
// Internal site domain list
'internal_domains' => array(
'localhost',
// '*.example.com',
),
// Don't show extenal link icons on these domains
'silent_external_domains' => array(
'pukiwiki.osdn.jp',
'pukiwiki.example.com',
),
);
/////////////////////////////////////////////////
// Show Topicpath title
// 0: Disabled
// 1: Enabled
$topicpath_title = 1;
/////////////////////////////////////////////////
// Output HTML meta Referrer Policy
// Value: '' (default), no-referrer, origin, same-origin...
// Reference: https://developer.mozilla.org/en-US/docs/W...
$html_meta_referrer_policy = '';
/////////////////////////////////////////////////
// Output custom HTTP response headers
$http_response_custom_headers = array(
// 'Strict-Transport-Security: max-age=86400',
// 'X-Content-Type-Options: nosniff',
);
/////////////////////////////////////////////////
// $whatsnew: Max number of RecentChanges
$maxshow = 500;
// $whatsdeleted: Max number of RecentDeleted
// (0 = Disabled)
$maxshow_deleted = 200;
/////////////////////////////////////////////////
// Page names can't be edit via PukiWiki
$cantedit = array( $whatsnew, $whatsdeleted );
/////////////////////////////////////////////////
// HTTP: Output Last-Modified header
$lastmod = 0;
/////////////////////////////////////////////////
// Date format
$date_format = 'Y-m-d';
// Time format
$time_format = 'H:i:s';
/////////////////////////////////////////////////
// Max number of RSS feed
$rss_max = 15;
/////////////////////////////////////////////////
// Backup related settings
// Enable backup
$do_backup = 1;
// When a page had been removed, remove its backup too?
$del_backup = 0;
// Bacukp interval and generation
$cycle = 3; // Wait N hours between backup (0 = no wa...
$maxage = 120; // Stock latest N backups
// NOTE: $cycle x $maxage / 24 = Minimum days to lost yo...
// 3 x 120 / 24 = 15
// Splitter of backup data (NOTE: Too dangerous to change)
define('PKWK_SPLITTER', '>>>>>>>>>>');
/////////////////////////////////////////////////
// Command execution per update
define('PKWK_UPDATE_EXEC', '');
// Sample: Namazu (Search engine)
//$target = '/var/www/wiki/';
//$mknmz = '/usr/bin/mknmz';
//$output_dir = '/var/lib/namazu/index/';
//define('PKWK_UPDATE_EXEC',
// $mknmz . ' --media-type=text/pukiwiki' .
// ' -O ' . $output_dir . ' -L ja -c -K ' . $target);
/////////////////////////////////////////////////
// HTTP proxy setting
// Use HTTP proxy server to get remote data
$use_proxy = 0;
$proxy_host = 'proxy.example.com';
$proxy_port = 8080;
// Do Basic authentication
$need_proxy_auth = 0;
$proxy_auth_user = 'username';
$proxy_auth_pass = 'password';
// Hosts that proxy server will not be needed
$no_proxy = array(
'localhost', // localhost
'127.0.0.0/8', // loopback
// '10.0.0.0/8' // private class A
// '172.16.0.0/12' // private class B
// '192.168.0.0/16' // private class C
// 'no-proxy.com',
);
////////////////////////////////////////////////
// Mail related settings
// Send mail per update of pages
$notify = 0;
// Send diff only
$notify_diff_only = 1;
// SMTP server (Windows only. Usually specified at php.i...
$smtp_server = 'localhost';
// Mail recipient (To:) and sender (From:)
$notify_to = 'to@example.com'; // To:
$notify_from = 'from@example.com'; // From:
// Subject: ($page = Page name wll be replaced)
$notify_subject = '[PukiWiki] $page';
// Mail header
// NOTE: Multiple items must be divided by "\r\n", not "...
$notify_header = '';
/////////////////////////////////////////////////
// Mail: POP / APOP Before SMTP
// Do POP/APOP authentication before send mail
$smtp_auth = 0;
$pop_server = 'localhost';
$pop_port = 110;
$pop_userid = '';
$pop_passwd = '';
// Use APOP instead of POP (If server uses)
// Default = Auto (Use APOP if possible)
// 1 = Always use APOP
// 0 = Always use POP
// $pop_auth_use_apop = 1;
/////////////////////////////////////////////////
// Ignore list
// Regex of ignore pages
$non_list = '^\:';
// Search ignored pages
$search_non_list = 1;
// Page redirect rules
$page_redirect_rules = array(
//'#^FromProject($|(/(.+)$))#' => 'ToProject$1',
//'#^FromProject($|(/(.+)$))#' => function($matches) { ...
);
/////////////////////////////////////////////////
// Template setting
$auto_template_func = 1;
$auto_template_rules = array(
'((.+)\/([^\/]+))' => '\2/template'
);
/////////////////////////////////////////////////
// Automatically add fixed heading anchor
$fixed_heading_anchor = 1;
/////////////////////////////////////////////////
// Remove the first spaces from Preformatted text
$preformat_ltrim = 1;
/////////////////////////////////////////////////
// Convert linebreaks into <br />
$line_break = 0;
/////////////////////////////////////////////////
// Use date-time rules (See rules.ini.php)
$usedatetime = 1;
/////////////////////////////////////////////////
// Logging updates (0 or 1)
$logging_updates = 0;
$logging_updates_log_dir = '/var/log/pukiwiki';
/////////////////////////////////////////////////
// User-Agent settings
//
// If you want to ignore embedded browsers for rich-cont...
// remove (or comment-out) all 'keitai' settings.
//
// If you want to to ignore desktop-PC browsers for simp...
// copy keitai.ini.php to default.ini.php and customize ...
$agents = array(
// pattern: A regular-expression that matches device(bro...
// profile: A group of browsers
// Embedded browsers (Rich-clients for PukiWiki)
// Windows CE (Microsoft(R) Internet Explorer 5.5 for W...
// Sample: "Mozilla/4.0 (compatible; MSIE 5.5; Windows ...
array('pattern'=>'#\b(?:MSIE [5-9]).*\b(Windows CE)\b#'...
// ACCESS "NetFront" / "Compact NetFront" and thier OEM...
// Sample: "Mozilla/4.0 (PS2; PlayStation BB Navigator ...
// Sample: "Mozilla/4.0 (PDA; PalmOS/sony/model crdb/Re...
// Sample: "Mozilla/4.0 (PDA; SL-A300/1.0,Embedix/Qtopi...
array('pattern'=>'#^(?:Mozilla/4).*\b(NetFront)/([0-9\....
// Embedded browsers (Non-rich)
// Windows CE (the others)
// Sample: "Mozilla/2.0 (compatible; MSIE 3.02; Windows...
array('pattern'=>'#\b(Windows CE)\b#', 'profile'=>'keit...
// ACCESS "NetFront" / "Compact NetFront" and thier OEM
// Sample: "Mozilla/3.0 (AveFront/2.6)" ("SUNTAC Online...
// Sample: "Mozilla/3.0(DDIPOCKET;JRC/AH-J3001V,AH-J300...
array('pattern'=>'#\b(NetFront)/([0-9\.]+)#', 'profile'...
array('pattern'=>'#\b(CNF)/([0-9\.]+)#', 'profile'=>'ke...
array('pattern'=>'#\b(AveFront)/([0-9\.]+)#', 'profile'...
array('pattern'=>'#\b(AVE-Front)/([0-9\.]+)#', 'profile...
// NTT-DoCoMo, i-mode (embeded Compact NetFront) and FO...
// Sample: "DoCoMo/1.0/F501i", "DoCoMo/1.0/N504i/c10/TB...
// Sample: "DoCoMo/2.0 MST_v_SH2101V(c100;TB;W22H12;ser...
array('pattern'=>'#^(DoCoMo)/([0-9\.]+)#', 'profile'=>'...
// Vodafone's embedded browser
// Sample: "J-PHONE/2.0/J-T03" // 2.0は"ブラウザの"バー...
// Sample: "J-PHONE/4.0/J-SH51/SNxxxx SH/0001a Profile/...
array('pattern'=>'#^(J-PHONE)/([0-9\.]+)#', 'profile'=>...
// Openwave(R) Mobile Browser (EZweb, WAP phone, etc)
// Sample: "OPWV-SDK/62K UP.Browser/6.2.0.5.136 (GUI) M...
array('pattern'=>'#\b(UP\.Browser)/([0-9\.]+)#', 'profi...
// Opera, dressing up as other embedded browsers
// Sample: "Mozilla/3.0(DDIPOCKET;KYOCERA/AH-K3001V/1.4...
array('pattern'=>'#\b(?:DDIPOCKET|WILLCOM)\b.+\b(Opera)...
// Planetweb http://www.planetweb.com/
// Sample: "Mozilla/3.0 (Planetweb/v1.07 Build 141; SPS...
array('pattern'=>'#\b(Planetweb)/v([0-9\.]+)#', 'profil...
// DreamPassport, Web browser for SEGA DreamCast
// Sample: "Mozilla/3.0 (DreamPassport/3.0)"
array('pattern'=>'#\b(DreamPassport)/([0-9\.]+)#', 'pro...
// Palm "Web Pro" http://www.palmone.com/us/support/acc...
// Sample: "Mozilla/4.76 [en] (PalmOS; U; WebPro)"
array('pattern'=>'#\b(WebPro)\b#', 'profile'=>'keitai'),
// ilinx "Palmscape" / "Xiino" http://www.ilinx.co.jp/
// Sample: "Xiino/2.1SJ [ja] (v. 4.1; 153x130; c16/d)"
array('pattern'=>'#^(Palmscape)/([0-9\.]+)#', 'profile'...
array('pattern'=>'#^(Xiino)/([0-9\.]+)#', 'profile'=>'k...
// SHARP PDA Browser (SHARP Zaurus)
// Sample: "sharp pda browser/6.1[ja](MI-E1/1.0) "
array('pattern'=>'#^(sharp [a-z]+ browser)/([0-9\.]+)#'...
// WebTV
array('pattern'=>'#^(WebTV)/([0-9\.]+)#', 'profile'=>'k...
// Desktop-PC browsers
// Opera (for desktop PC, not embedded) -- See BugTrack...
// NOTE: Keep this pattern above MSIE and Mozilla
// Sample: "Opera/7.0 (OS; U)" (not disguise)
// Sample: "Mozilla/4.0 (compatible; MSIE 5.0; OS) Oper...
array('pattern'=>'#\b(Opera)[/ ]([0-9\.]+)\b#', 'profil...
// MSIE: Microsoft Internet Explorer (or something disg...
// Sample: "Mozilla/4.0 (compatible; MSIE 6.0; Windows ...
array('pattern'=>'#\b(MSIE) ([0-9\.]+)\b#', 'profile'=>...
// Mozilla Firefox
// NOTE: Keep this pattern above Mozilla
// Sample: "Mozilla/5.0 (Windows; U; Windows NT 5.0; ja...
array('pattern'=>'#\b(Firefox)/([0-9\.]+)\b#', 'profile...
// Loose default: Including something Mozilla
array('pattern'=>'#^([a-zA-z0-9 ]+)/([0-9\.]+)\b#', 'pr...
array('pattern'=>'#^#', 'profile'=>'default'), // Senti...
);
ページ名: