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
|
||||
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();
|
||||
}
|
||||
|
||||
// todo: debug - remove
|
||||
$arr = ConfigFile::getInstance()->getConfigArray();
|
||||
$arr2 = array();
|
||||
foreach ($arr as $k => $v) {
|
||||
// debug info
|
||||
if ($cfg['DBG']['php']) {
|
||||
$arr = ConfigFile::getInstance()->getConfigArray();
|
||||
$arr2 = array();
|
||||
foreach ($arr as $k => $v) {
|
||||
$arr2[] = "<b>$k</b> " . var_export($v, true);
|
||||
}
|
||||
$arr2 = implode(', ', $arr2);
|
||||
$arr2 .= '<br />Blacklist: ' . (empty($cfg['UserprefsDisallow'])
|
||||
}
|
||||
$arr2 = implode(', ', $arr2);
|
||||
$arr2 .= '<br />Blacklist: ' . (empty($cfg['UserprefsDisallow'])
|
||||
? '<i>empty</i>'
|
||||
: implode(', ', $cfg['UserprefsDisallow']));
|
||||
$msg = PMA_Message::notice('Debug: ' . $arr2);
|
||||
$msg->display();
|
||||
$msg = PMA_Message::notice('Settings: ' . $arr2);
|
||||
$msg->display();
|
||||
}
|
||||
|
||||
// warn about using session storage for settings
|
||||
$cfgRelation = PMA_getRelationsParam();
|
||||
|
Reference in New Issue
Block a user