~piersharding/udi/master-udi

« back to all changes in this revision

Viewing changes to lib/config_default.php

  • Committer: Deon George
  • Date: 2009-06-30 10:41:18 UTC
  • Revision ID: git-v1:a08bc4e9e1e67a808fad7a0acfc1221f93f535ce
RELEASEĀ 1.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?php
2
 
// $Header: /cvsroot/phpldapadmin/phpldapadmin/lib/config_default.php,v 1.17 2005/12/10 10:34:55 wurley Exp $
 
2
// $Header: /cvsroot/phpldapadmin/phpldapadmin/lib/config_default.php,v 1.25 2007/01/18 21:03:58 wurley Exp $
3
3
 
4
4
/**
5
5
 * Configuration processing and defaults.
9
9
 */
10
10
 
11
11
# The minimum version of PHP required to run phpLDAPadmin.
12
 
define('REQUIRED_PHP_VERSION','4.1.0');
 
12
define('REQUIRED_PHP_VERSION','5.0.0');
13
13
 
14
14
class Config {
15
 
        var $custom;
16
 
        var $default;
 
15
        public $custom;
 
16
        protected $default;
17
17
 
18
18
        function Config() {
19
19
 
46
46
                        'desc'=>'Array of attributes that should show a jscalendar',
47
47
                        'default'=>array('shadowExpire'=>'%es','shadowLastChange'=>'%es'));
48
48
 
 
49
                $this->default->appearance['date_attrs_showtime'] = array(
 
50
                        'desc'=>'Array of attributes that should show a the time when showing the jscalendar',
 
51
                        'default'=>array(''));
 
52
 
49
53
                $this->default->appearance['hide_configuration_management'] = array(
50
54
                        'desc'=>'Hide the Sourceforge related links',
51
55
                        'default'=>false);
94
98
                 */
95
99
                $this->default->appearance['obfuscate_password_display'] = array(
96
100
                        'desc'=>'Obfuscate the display of passwords',
97
 
                        'default'=>false);
 
101
                        'default'=>true);
98
102
 
99
103
                $this->default->appearance['show_clear_password'] = array(
100
104
                        'desc'=>'Whether to show clear passwords if we dont obfuscate them',
108
112
                        'desc'=>'Show helpful hints',
109
113
                        'default'=>true);
110
114
 
 
115
                $this->default->appearance['show_top_create'] = array(
 
116
                        'desc'=>'Show a additional create link on the top of the list if there are more than 10 entries',
 
117
                        'default'=>true);
 
118
 
 
119
                $this->default->appearance['show_schema_link'] = array(
 
120
                        'desc'=>'Show the schema link for each attribute',
 
121
                        'default'=>true);
 
122
 
 
123
                $this->default->appearance['show_attribute_notes'] = array(
 
124
                        'desc'=>'Show notes for each attribute',
 
125
                        'default'=>true);               
 
126
 
111
127
                /** Tree display
112
128
                 * A format string used to display enties in the tree viewer (left-hand side)
113
129
                 * You can use special tokens to draw the entries as you wish. You can even mix in HTML to format the string
141
157
                        'desc'=>'Whether to enable the PHPLayersMenu for the tree',
142
158
                        'default'=>false);
143
159
 
 
160
                /**
 
161
                 * Tree display filter
 
162
                 * LDAP filter used to search entries for the tree viewer (left-hand side)
 
163
                 */
 
164
                $this->default->appearance['tree_filter'] = array(
 
165
                        'desc'=>'LDAP search filter for the tree entries',
 
166
                        'default'=>'(objectClass=*)');
 
167
 
144
168
                /** Caching
145
169
                 */
146
170
                $this->default->cache['schema'] = array(
209
233
                        'desc'=>'Time in seconds to keep jpegPhoto temporary files in the temp directory',
210
234
                        'default'=>120);
211
235
 
 
236
                ## Modify members feature
 
237
                /**
 
238
                 * Search filter setting for new members. This is used to search possible members that can be added
 
239
                 * to the group. See modify_member_form.php
 
240
                 */
 
241
                $this->default->modify_member['filter'] = array(
 
242
                        'desc'=>'Search filter for member searches',
 
243
                        'default'=>'(objectclass=Person)');
 
244
 
 
245
                /**
 
246
                 * Group attributes. When these attributes are seen in template_engine.php, add "modify group members"
 
247
                 * link to the attribute
 
248
                 * See template_engine.php
 
249
                 */
 
250
                $this->default->modify_member['groupattr'] = array(
 
251
                        'desc'=>'Group member attributes',
 
252
                        'default'=>array('member','uniqueMember','memberUid'));
 
253
 
 
254
                /**
 
255
                 * Attribute that is added to the group member attribute. For groupOfNames or groupOfUniqueNames this is dn,
 
256
                 * for posixGroup it's uid. See modify_member_form.php
 
257
                 */
 
258
                $this->default->modify_member['attr'] = array(
 
259
                        'desc'=>'Default attribute that is added to the group member attribute',
 
260
                        'default'=>'dn');
 
261
 
 
262
                /**
 
263
                 * Attribute that is added to the group member attribute.
 
264
                 * For posixGroup it's uid. See modify_member_form.php
 
265
                 */
 
266
                $this->default->modify_member['posixattr'] = array(
 
267
                        'desc'=>'Contents of the group member attribute',
 
268
                        'default'=>'uid');
 
269
 
 
270
                /**
 
271
                 * Search filter setting for new members to group. This is used to search possible members that can be added
 
272
                 * to the posixGroup. See modify_member_form.php
 
273
                 */
 
274
                $this->default->modify_member['posixfilter'] = array(
 
275
                        'desc'=>'Search filter for posixmember searches',
 
276
                        'default'=>'(uid=*)');
 
277
 
 
278
                /**
 
279
                 * posixGroup attribute. When this attribute are seen in modify_member_form.php, only posixGroup members are shown
 
280
                 * See modify_member_form.php
 
281
                 */
 
282
                $this->default->modify_member['posixgroupattr'] = array(
 
283
                        'desc'=>'posixGroup member attribute',
 
284
                        'default'=>'memberUid');
 
285
 
212
286
                ## Session Attributes
213
287
                /** Cookie Encryption
214
288
                 * phpLDAPadmin can encrypt the content of sensitive cookies if you set this to a big random string.
250
324
                        'desc'=>'Whether to use similiar characters',
251
325
                        'default'=>true);
252
326
 
 
327
                $this->default->password['no_random_crypt_salt'] = array(
 
328
                        'descr'=>'Disable random salt for crypt()',
 
329
                        'default'=>false);
 
330
 
253
331
                /** Search display
254
332
                 * By default, when searching you may display a list or a table of results.
255
333
                 * Set this to 'table' to see table formatted results.
289
367
                        'default'=>array('cn','sn','uid','postalAddress','telephoneNumber'));
290
368
        }
291
369
 
292
 
        function GetValue($key,$index) {
 
370
        public function GetValue($key,$index) {
293
371
 
294
372
                $value = null;
295
373
 
321
399
        /**
322
400
         * Function to check and warn about any unusual defined variables.
323
401
         */
324
 
        function CheckCustom() {
 
402
        public function CheckCustom() {
325
403
                if (isset($this->custom)) {
326
404
                        foreach ($this->custom as $masterkey => $masterdetails) {
327
405