forked from miko2u/pukiwiki-plus-i18n
-
Notifications
You must be signed in to change notification settings - Fork 0
/
auth.ini.php
81 lines (65 loc) · 2.4 KB
/
auth.ini.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
// PukiWiki Plus! - Yet another WikiWikiWeb clone
// $Id: auth.ini.php,v 0.0.15 2008/08/05 01:09:00 upk Exp $
// Copyright (C)
// 2005-2008 PukiWiki Plus! Team
// License: GPL v2 or (at your option) any later version
//
// Authentication Type
// 1: basic
// 2: digest
$auth_type = 1;
/////////////////////////////////////////////////
// Authentication Parameter REALM
$realm = 'PukiWikiAuth';
/////////////////////////////////////////////////
// Admin password for this Wikisite
// 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'
/////////////////////////////////////////////////
// User definition
// 役割(ROLE)
//
// プラグインによりデータを管理
define('PKWK_AUTH_FILE', add_homedir('auth_users.ini.php'));
require_once(PKWK_AUTH_FILE);
define('PKWK_AUTH_WKGRP_FILE', add_homedir('auth_wkgrp.ini.php'));
require_once(PKWK_AUTH_WKGRP_FILE);
/////////////////////////////////////////////////
// Auth API
define('PKWK_AUTH_API_FILE', add_homedir('auth_api.ini.php'));
require_once(PKWK_AUTH_API_FILE);
/////////////////////////////////////////////////
// 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 Username or array('user'=>Username,'group'=>Groupname,'role'=>Role),
'/:log/' => 'hoge',
'#ひきこもるほげ#' => 'hoge',
'#(ネタバレ|ねたばれ)#' => 'foo,bar,hoge',
);
/////////////////////////////////////////////////
// Edit auth (0:Disable, 1:Enable)
$edit_auth = 0;
$edit_auth_pages = array(
// Regex Username or array('user'=>Username,'group'=>Groupname,'role'=>Role),
'#Barの公開日記#' => 'bar',
'#ひきこもるほげ#' => 'hoge',
'#(ネタバレ|ねたばれ)#' => 'foo,bar,hoge',
);
/////////////////////////////////////////////////
// Search auth
// 0: Disabled (Search read-prohibited page contents)
// 1: Enabled (Search only permitted pages for the user)
$search_auth = 0;
/////////////////////////////////////////////////
// Check Role
$check_role = 1;
?>