-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconf.php
More file actions
114 lines (111 loc) · 5.04 KB
/
conf.php
File metadata and controls
114 lines (111 loc) · 5.04 KB
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<?php
////////////////////////////////////////////////////////////////////////////////////////////////////
//
// File:
// conf.php
// Description:
// This file configures the Wordpress Plugin - Members List
// Actions:
// 1) initialize pertinent variables
// 2) load classes and functions
// Date:
// Added on June 12th 2010
// Copyright:
// Copyright (c) 2010 Matthew Praetzel.
// License:
// This software is licensed under the terms of the GNU Lesser General Public License v3
// as published by the Free Software Foundation. You should have received a copy of of
// the GNU Lesser General Public License along with this software. In the event that you
// have not, please visit: http://www.gnu.org/licenses/gpl-3.0.txt
//
////////////////////////////////////////////////////////////////////////////////////////////////////
/****************************************Commence Script*******************************************/
// ******************************* //
//________________________________** INITIALIZE VARIABLES **_________________________________//
//////////////////////////////////** **///////////////////////////////////
// ** ** //
// ******************************* //
$tern_wp_members_defaults = array(
'limit' => 10,
'sort' => 'last_name',
'sorts' => array('Last Name'=>'last_name','First Name'=>'first_name','Registration Date'=>'user_registered','Email'=>'user_email'),
'order' => 'asc',
'meta' => '',
'url' => false,
'gravatars' => 1,
'hide_email' => 0,
'hide' => 0,
'hidden' => array(0),
'noun' => 'members',
'searches' => array('Last Name'=>'last_name','First Name'=>'first_name','Description'=>'description','User Name'=>'user_nicename','Email'=>'user_email','Display Name'=>'display_name','URL'=>'user_url'),
'fields' => array(
'User Name' => array(
'name' => 'user_nicename',
'markup' => '<div class="tern_wp_members_user_nicename"><h3><a href="%author_url%">%value%</a></h3></div>'
),
'Email Address' => array(
'name' => 'user_email',
'markup' => '<div class="tern_wp_members_user_email"><a href="mailto:%value%">%value%</a></div>'
),
'URL' => array(
'name' => 'user_url',
'markup' => '<div class="tern_wp_members_user_url"><a href="%value%">%value%</a></div>'
)
),
'lists' => array(),
'allow_display' => 0
);
$tern_wp_meta_fields = array(
'Last Name' => 'last_name',
'First Name' => 'first_name',
'Description' => 'description'
);
$tern_wp_members_fields = array(
'User Name' => 'user_nicename',
'Email Address' => 'user_email',
'Display Name' => 'display_name',
'URL' => 'user_url',
'Registration Date' => 'user_registered'
);
$tern_wp_user_fields = array('ID','user_login','user_pass','user_nicename','user_email','user_url','user_registered','user_activation_key','user_status','display_name');
// ******************************* //
//________________________________** FILE CLASS **_________________________________//
//////////////////////////////////** **///////////////////////////////////
// ** ** //
// ******************************* //
require_once(dirname(__FILE__).'/class/file.php');
$getFILE = new fileClass;
// ******************************* //
//________________________________** LOAD CLASSES **_________________________________//
//////////////////////////////////** **///////////////////////////////////
// ** ** //
// ******************************* //
$l = $getFILE->directoryList(array(
'dir' => dirname(__FILE__).'/class/',
'rec' => true,
'flat' => true,
'depth' => 1
));
if(is_array($l)) {
foreach($l as $k => $v) {
require_once($v);
}
}
// ******************************* //
//________________________________** INITIALIZE INCLUDES **_________________________________//
//////////////////////////////////** **///////////////////////////////////
// ** ** //
// ******************************* //
$l = $getFILE->directoryList(array(
'dir' => dirname(__FILE__).'/core/',
'rec' => true,
'flat' => true,
'depth' => 1
));
if(is_array($l)) {
foreach($l as $k => $v) {
require_once($v);
}
}
/****************************************Terminate Script******************************************/
?>