blacklist and settings debug code shown if $cfg['DBG']['php'] is true
This commit is contained in:
@@ -1,9 +1 @@
|
|||||||
restore cache'ing in phpmyadmin.css.php
|
restore cache'ing in phpmyadmin.css.php
|
||||||
remove debug from user preferences header
|
|
||||||
|
|
||||||
|
|
||||||
info about setup script in prefs manage, it seems many people still don't know it exists
|
|
||||||
(and maybe some description in docs on making it work with live configuration?)
|
|
||||||
|
|
||||||
|
|
||||||
show blacklist (and debug?) on prefs manage page
|
|
||||||
|
@@ -48,18 +48,20 @@ if (!empty($_GET['saved'])) {
|
|||||||
$message->display();
|
$message->display();
|
||||||
}
|
}
|
||||||
|
|
||||||
// todo: debug - remove
|
// debug info
|
||||||
$arr = ConfigFile::getInstance()->getConfigArray();
|
if ($cfg['DBG']['php']) {
|
||||||
$arr2 = array();
|
$arr = ConfigFile::getInstance()->getConfigArray();
|
||||||
foreach ($arr as $k => $v) {
|
$arr2 = array();
|
||||||
$arr2[] = "<b>$k</b> " . var_export($v, true);
|
foreach ($arr as $k => $v) {
|
||||||
|
$arr2[] = "<b>$k</b> " . var_export($v, true);
|
||||||
|
}
|
||||||
|
$arr2 = implode(', ', $arr2);
|
||||||
|
$arr2 .= '<br />Blacklist: ' . (empty($cfg['UserprefsDisallow'])
|
||||||
|
? '<i>empty</i>'
|
||||||
|
: implode(', ', $cfg['UserprefsDisallow']));
|
||||||
|
$msg = PMA_Message::notice('Settings: ' . $arr2);
|
||||||
|
$msg->display();
|
||||||
}
|
}
|
||||||
$arr2 = implode(', ', $arr2);
|
|
||||||
$arr2 .= '<br />Blacklist: ' . (empty($cfg['UserprefsDisallow'])
|
|
||||||
? '<i>empty</i>'
|
|
||||||
: implode(', ', $cfg['UserprefsDisallow']));
|
|
||||||
$msg = PMA_Message::notice('Debug: ' . $arr2);
|
|
||||||
$msg->display();
|
|
||||||
|
|
||||||
// warn about using session storage for settings
|
// warn about using session storage for settings
|
||||||
$cfgRelation = PMA_getRelationsParam();
|
$cfgRelation = PMA_getRelationsParam();
|
||||||
|
Reference in New Issue
Block a user