File: db_config.lib.php

package info (click to toggle)
phpmyadmin 4%3A2.9.1.1-3
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 13,224 kB
  • ctags: 119,177
  • sloc: php: 148,860; sh: 636; sql: 224; perl: 142
file content (92 lines) | stat: -rw-r--r-- 2,242 bytes parent folder | download | duplicates (2)
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
<?php
/* $Id: db_config.lib.php 5802 2004-05-20 16:14:13Z nijel $ */
// vim: expandtab sw=4 ts=4 sts=4:

/**
 * Database based configuration system
 * Robin Johnson <robbat2@users.sourceforge.net>
 * May 19, 2002
 */

/**
 * Converts attributes of an object to xml code
 *
 * Original obj2xml() function by <jgettys@gnuvox.com>
 * as found on http://www.php.net/manual/en/function.get-defined-vars.php
 * Fixed and improved by Robin Johnson <robbat2@users.sourceforge.net>
 *
 * @param   object  the source
 * @param   string  identication
 *
 * @access  public
 */
function obj2xml($v, $indent = '') {
    $attr = '';
    foreach ($v AS $key => $val) {
        if (is_string($key) && ($key == '__attr')) {
            continue;
        }

        // Check for __attr
        if (is_object($val->__attr)) {
            foreach ($val->__attr AS $key2 => $val2) {
                $attr .= " $key2=\"$val2\"";
            }
        } else {
            $attr     = '';
        }

        // Preserve data type information
        $attr .= ' type="' . gettype($val) . '"';

        if (is_array($val) || is_object($val)) {
            echo "$indent<$key$attr>\n";
            obj2xml($val, $indent . '  ');
            echo "$indent</$key>\n";
        } else {
            if (is_string($val) && ($val == '')) {
                echo "$indent<$key$attr />\n";
            } else {
                echo "$indent<$key$attr>$val</$key>\n";
            }
        }
    } // end while
} // end of the "obj2xml()" function


$cfg['DBConfig']['AllowUserOverride'] = array(
    'Servers/*/bookmarkdb',
    'Servers/*/bookmarktable',
    'Servers/*/relation',
    'Servers/*/pdf_table_position',
    'ShowSQL',
    'Confirm',
    'LeftFrameLight',
    'ShowTooltip',
    'ShowBlob',
    'NavigationBarIconic',
    'ShowAll',
    'MaxRows',
    'Order',
    'ProtectBinary',
    'ShowFunctionFields',
    'LeftWidth',
    'LeftBgColor',
    'LeftPointerColor',
    'RightBgColor',
    'Border',
    'ThBgcolor',
    'BgcolorOne',
    'BgcolorTwo',
    'BrowsePointerColor',
    'BrowseMarkerColor',
    'TextareaCols',
    'TextareaRows',
    'LimitChars',
    'ModifyDeleteAtLeft',
    'ModifyDeleteAtRight',
    'DefaultDisplay',
    'RepeatCells'
);

?>