5 * Database based configuration system
6 * Robin Johnson <robbat2@users.sourceforge.net>
10 if (!defined('PMA_DB_CONFIG_LIB_INCLUDED')) {
11 define('PMA_DB_CONFIG_LIB_INCLUDED', 1);
14 * Converts attributes of an object to xml code
16 * Original obj2xml() function by <jgettys@gnuvox.com>
17 * as found on http://www.php.net/manual/en/function.get-defined-vars.php
18 * Fixed and improved by Robin Johnson <robbat2@users.sourceforge.net>
20 * @param object the source
21 * @param string identication
25 function obj2xml($v, $indent = '') {
27 while (list($key, $val) = each($v)) {
28 if (is_string($key) && ($key == '__attr')) {
33 if (is_object($val->__attr
)) {
34 while (list($key2, $val2) = each($val->__attr
)) {
35 $attr .= " $key2=\"$val2\"";
41 // Preserve data type information
42 $attr .= ' type="' . gettype($val) . '"';
44 if (is_array($val) ||
is_object($val)) {
45 echo "$indent<$key$attr>\n";
46 obj2xml($val, $indent . ' ');
47 echo "$indent</$key>\n";
49 if (is_string($val) && ($val == '')) {
50 echo "$indent<$key$attr />\n";
52 echo "$indent<$key$attr>$val</$key>\n";
56 } // end of the "obj2xml()" function
59 $cfg['DBConfig']['AllowUserOverride'] = array(
60 'Servers/*/bookmarkdb',
61 'Servers/*/bookmarktable',
63 'Servers/*/pdf_table_position',
69 'NavigationBarIconic',
89 'ModifyDeleteAtRight',
94 } // $__PMA_DB_CONFIG_LIB__