Initial checkin of base DB-Config code
This commit is contained in:
@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
|
|||||||
$Id$
|
$Id$
|
||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
|
2002-06-09 Robin Johnson <robbat2@users.sourceforge.net>
|
||||||
|
* Initial checkin of base DB-Config code
|
||||||
|
|
||||||
2002-06-08 Alexander M. Turek <rabus@users.sourceforge.net>
|
2002-06-08 Alexander M. Turek <rabus@users.sourceforge.net>
|
||||||
* lang/dutch.inc.php3: Updates, thanks to "CaliMonk" <calimonk at gmx.net>.
|
* lang/dutch.inc.php3: Updates, thanks to "CaliMonk" <calimonk at gmx.net>.
|
||||||
* translators.html:
|
* translators.html:
|
||||||
|
86
libraries/db_config.lib.php3
Normal file
86
libraries/db_config.lib.php3
Normal file
@@ -0,0 +1,86 @@
|
|||||||
|
<?php
|
||||||
|
/* $Id$ */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database based configuration system
|
||||||
|
* Robin Johnson <robbat2@users.sourceforge.net>
|
||||||
|
* May 19, 2002
|
||||||
|
*/
|
||||||
|
|
||||||
|
if (!defined('PMA_DB_CONFIG_LIB_INCLUDED')) {
|
||||||
|
define('PMA_DB_CONFIG_LIB_INCLUDED', 1);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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>
|
||||||
|
*/
|
||||||
|
function obj2xml($v, $indent='') {
|
||||||
|
while (list($key, $val) = each($v)) {
|
||||||
|
if (is_string($key) && ($key == '__attr'))
|
||||||
|
continue;
|
||||||
|
// Check for __attr
|
||||||
|
if (is_object($val->__attr)) {
|
||||||
|
while (list($key2, $val2) = each($val->__attr)) {
|
||||||
|
$attr .= " $key2=\"$val2\"";
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
$attr = '';
|
||||||
|
}
|
||||||
|
|
||||||
|
//preserve data type information
|
||||||
|
$attr .= " type=\"".gettype($val)."\"";
|
||||||
|
|
||||||
|
if (is_array($val) || is_object($val)) {
|
||||||
|
print("$indent<$key$attr>\n");
|
||||||
|
obj2xml($val, $indent.' ');
|
||||||
|
print("$indent</$key>\n");
|
||||||
|
} else {
|
||||||
|
if (is_string($val) && ($val == "")) {
|
||||||
|
print("$indent<$key$attr />\n");
|
||||||
|
} else {
|
||||||
|
print("$indent<$key$attr>$val</$key>\n");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$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"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
} // $__PMA_DB_CONFIG_LIB__
|
4749
libraries/xpath/XPath.class.php
Normal file
4749
libraries/xpath/XPath.class.php
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user