X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=pukiwiki.ini.php;h=5357bfc5026232af8ed569bce1216ccadd1f38c1;hb=refs%2Fheads%2Fbugtrack_2436_eslint;hp=b718b83faf6d4a6ec4c1e64e1ecae85521c358b4;hpb=29b876e5c357a3ae23405209f8d65d711840876b;p=pukiwiki%2Fpukiwiki.git diff --git a/pukiwiki.ini.php b/pukiwiki.ini.php index b718b83..5357bfc 100644 --- a/pukiwiki.ini.php +++ b/pukiwiki.ini.php @@ -1,8 +1,8 @@ password 'foo' => 'foo_passwd', // Cleartext - 'bar' => '{x-php-md5}f53ae779077e987718cc285b14dfbe86', // md5('bar_passwd') - 'hoge' => '{SMD5}OzJo/boHwM4q5R+g7LCOx2xGMkFKRVEx', // SMD5 'hoge_passwd' + 'bar' => '{x-php-md5}f53ae779077e987718cc285b14dfbe86', // PHP md5() 'bar_passwd' + 'hoge' => '{SMD5}OzJo/boHwM4q5R+g7LCOx2xGMkFKRVEx', // LDAP SMD5 'hoge_passwd' +); + +// Group definition +$auth_groups = array( + // Groupname => group members(users) + 'valid-user' => '', // Reserved 'valid-user' group contains all authenticated users + 'groupfoobar' => 'foo,bar', ); ///////////////////////////////////////////////// // Authentication method -$auth_method_type = 'contents'; // By Page contents -//$auth_method_type = 'pagename'; // By Page name +$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 regex $read_auth_pages = array( - '#¤Ò¤­¤³¤â¤ë¤Û¤²#' => 'hoge', - '#(¥Í¥¿¥Ð¥ì|¤Í¤¿¤Ð¤ì)#' => 'foo,bar,hoge', + // 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 regex $edit_auth_pages = array( - '#Bar¤Î¸ø³«Æüµ­#' => 'bar', - '#¤Ò¤­¤³¤â¤ë¤Û¤²#' => 'hoge', - '#(¥Í¥¿¥Ð¥ì|¤Í¤¿¤Ð¤ì)#' => 'foo,bar,hoge', + // Regex Username + '#BarDiary#' => 'bar', + '#HogeHoge#' => 'hoge', + '#(NETABARE|NetaBare)#' => 'foo,bar,hoge', ); ///////////////////////////////////////////////// @@ -243,6 +289,31 @@ $edit_auth_pages = array( $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/scm/git/pukiwiki/commits/', + ), +*/ +); + +///////////////////////////////////////////////// // $whatsnew: Max number of RecentChanges $maxshow = 60; @@ -289,12 +360,20 @@ $maxage = 120; // Stock latest N backups define('PKWK_SPLITTER', '>>>>>>>>>>'); ///////////////////////////////////////////////// -// Command executed per update -$update_exec = ''; -//$update_exec = '/usr/bin/mknmz --media-type=text/pukiwiki -O /var/lib/namazu/index/ -L ja -c -K /var/www/wiki/'; +// 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 (for TrackBack etc) +// HTTP proxy setting // Use HTTP proxy server to get remote data $use_proxy = 0; @@ -337,8 +416,8 @@ $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 @@ -366,6 +445,13 @@ $non_list = '^\:'; // Search ignored pages $search_non_list = 1; + +// Page redirect rules +$page_redirect_rules = array( + //'#^FromProject($|(/(.+)$))#' => 'ToProject$1', + //'#^FromProject($|(/(.+)$))#' => function($matches) { return 'ToProject' . $matches[1]; }, +); + ///////////////////////////////////////////////// // Template setting @@ -391,6 +477,11 @@ $line_break = 0; $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-content-wikisite, @@ -430,12 +521,12 @@ $agents = array( array('pattern'=>'#\b(AVE-Front)/([0-9\.]+)#', 'profile'=>'keitai'), // The same? // NTT-DoCoMo, i-mode (embeded Compact NetFront) and FOMA (embedded NetFront) phones - // Sample: "DoCoMo/1.0/F501i", "DoCoMo/1.0/N504i/c10/TB/serXXXX" // c°Ê¹ß¤Ï²ÄÊÑ - // Sample: "DoCoMo/2.0 MST_v_SH2101V(c100;TB;W22H12;serXXXX;iccxxxx)" // ()¤ÎÃæ¤Ï²ÄÊÑ + // Sample: "DoCoMo/1.0/F501i", "DoCoMo/1.0/N504i/c10/TB/serXXXX" // c以降は可変 + // Sample: "DoCoMo/2.0 MST_v_SH2101V(c100;TB;W22H12;serXXXX;iccxxxx)" // ()の中は可変 array('pattern'=>'#^(DoCoMo)/([0-9\.]+)#', 'profile'=>'keitai'), // Vodafone's embedded browser - // Sample: "J-PHONE/2.0/J-T03" // 2.0¤Ï"¥Ö¥é¥¦¥¶¤Î"¥Ð¡¼¥¸¥ç¥ó + // Sample: "J-PHONE/2.0/J-T03" // 2.0は"ブラウザの"バージョン // Sample: "J-PHONE/4.0/J-SH51/SNxxxx SH/0001a Profile/MIDP-1.0 Configuration/CLDC-1.0 Ext-Profile/JSCL-1.1.0" array('pattern'=>'#^(J-PHONE)/([0-9\.]+)#', 'profile'=>'keitai'), @@ -445,7 +536,7 @@ $agents = array( // 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) @@ -493,4 +584,3 @@ $agents = array( array('pattern'=>'#^#', 'profile'=>'default'), // Sentinel ); -?>