<?php
// PukiWiki - Yet another WikiWikiWeb clone
-// $Id: pukiwiki.ini.php,v 1.148 2007/02/11 05:53:30 henoheno Exp $
-// Copyright (C)
-// 2002-2006 PukiWiki Developers Team
+// pukiwiki.ini.php
+// Copyright
+// 2002-2016 PukiWiki Development Team
// 2001-2002 Originally written by yu-ji
// License: GPL v2 or (at your option) any later version
//
/////////////////////////////////////////////////
-// PKWK_ALLOW_JAVASCRIPT - Allow / Prohibit using JavaScript
-define('PKWK_ALLOW_JAVASCRIPT', 0);
+// PKWK_ALLOW_JAVASCRIPT - Must be 1 only for compatibility
+define('PKWK_ALLOW_JAVASCRIPT', 1);
/////////////////////////////////////////////////
// _Disable_ WikiName auto-linking
// Page name of default pronouncing dictionary, used when converter = 'none'
$pagereading_config_dict = ':config/PageReading/dict';
+
+/////////////////////////////////////////////////
+// Authentication type
+// AUTH_TYPE_NONE, AUTH_TYPE_FORM, AUTH_TYPE_BASIC, AUTH_TYPE_EXTERNAL, ...
+// $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(
'hoge' => '{SMD5}OzJo/boHwM4q5R+g7LCOx2xGMkFKRVEx', // LDAP SMD5 'hoge_passwd'
);
-/////////////////////////////////////////////////
-// Authentication type
-// AUTH_TYPE_NONE, AUTH_TYPE_BASIC or AUTH_TYPE_EXTERNAL
-// $auth_type = AUTH_TYPE_BASIC;
+// Group definition
+$auth_groups = array(
+ // Groupname => group members(users)
+ 'valid-user' => '', // Reserved 'valid-user' group contains all authenticated users
+ 'groupfoobar' => 'foo,bar',
+);
/////////////////////////////////////////////////
// Authentication method
$read_auth = 0;
$read_auth_pages = array(
- // Regex Username
+ // Regex Groupname or Username
+ '#PageForAllValidUsers#' => 'valid-user',
'#HogeHoge#' => 'hoge',
'#(NETABARE|NetaBare)#' => 'foo,bar,hoge',
);
$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;
// 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
$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,
array('pattern'=>'#^#', 'profile'=>'default'), // Sentinel
);
-?>