diff --git a/ChangeLog b/ChangeLog
index f29e18fc5..5ab8f5056 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -45,7 +45,7 @@ danbarry
+ [lang] Norwegian update, thanks to Sven-Erik Andersen
+ [lang] Japanese update, thanks to Ishigaki Kenichi
+ [lang] Italian update, thanks to Luca Rebellato
-+ [gui] Events (work in progress)
++ [gui] Events
* minimal support on db structure page
* export
+ [pdf] Merged tcpdf 2.2.002 (PHP5 version), thanks to Nicola Asuni
@@ -54,6 +54,7 @@ danbarry
+ prevent search indexes from indexing phpMyAdmin installations
+ [engines] PBXT: table options, foreign key (relation view, designer)
+ [lang] New Bangla, thanks to Raquibul Islam and Joy Kumar Nag
++ [interface] Display options (work in progress)
2.11.7.0 (not yet released)
- bug #1908719 [interface] New field cannot be auto-increment and primary key
diff --git a/Documentation.html b/Documentation.html
index 4e0476185..5a89f7f1c 100644
--- a/Documentation.html
+++ b/Documentation.html
@@ -1312,10 +1312,6 @@ ALTER TABLE `pma_column_comments`
Defines whether to suggest a database name on the
"Create Database" form or to keep the textfield empty.
- $cfg['ShowBlob'] boolean
- Defines whether or not BLOB fields are shown when browsing a table's
- content.
-
$cfg['NavigationBarIconic'] string
Defines whether navigation bar buttons and the right panel top menu
contain text or symbols only. A value of TRUE displays icons, FALSE
diff --git a/libraries/common.lib.php b/libraries/common.lib.php
index bf56fda40..6771b51c6 100644
--- a/libraries/common.lib.php
+++ b/libraries/common.lib.php
@@ -1236,7 +1236,7 @@ function PMA_profilingCheckbox($sql_query)
echo PMA_generate_common_hidden_inputs($GLOBALS['db'], $GLOBALS['table']);
echo '' . "\n";
echo '' . "\n";
- echo '' . "\n";
+ PMA_generate_html_checkbox('profiling', $GLOBALS['strProfiling'], isset($_SESSION['profiling']), true);
echo '' . "\n";
echo '' . "\n";
}
@@ -2285,6 +2285,18 @@ function PMA_externalBug($functionality, $component, $minimum_version, $bugref)
}
}
+/**
+ * Generates and echoes an HTML checkbox
+ *
+ * @param string $html_field_name the checkbox HTML field
+ * @param string $label
+ * @param boolean $checked is it initially checked?
+ * @param boolean $onclick should it submit the form on click?
+ */
+function PMA_generate_html_checkbox($html_field_name, $label, $checked, $onclick) {
+
+ echo '';
+}
/**
* Generates and echoes a set of radio HTML fields
@@ -2495,4 +2507,20 @@ function PMA_foreignkey_supported($engine) {
return false;
}
}
+
+/**
+ * Replaces some characters by a displayable equivalent
+ *
+ * @uses str_replace()
+ * @param string $content
+ * @return string the content with characters replaced
+ */
+function PMA_replace_binary_contents($content) {
+ $result = str_replace("\x00", '\0', $content);
+ $result = str_replace("\x08", '\b', $result);
+ $result = str_replace("\x0a", '\n', $result);
+ $result = str_replace("\x0d", '\r', $result);
+ $result = str_replace("\x1a", '\Z', $result);
+ return $result;
+}
?>
diff --git a/libraries/config.default.php b/libraries/config.default.php
index 2b3b55bb9..9eb90e9bb 100644
--- a/libraries/config.default.php
+++ b/libraries/config.default.php
@@ -746,13 +746,6 @@ $cfg['SuggestDBName'] = true;
* In browse mode...
*/
-/**
- * display blob field contents
- *
- * @global boolean $cfg['ShowBlob']
- */
-$cfg['ShowBlob'] = false;
-
/**
* Use icons instead of text for the navigation bar buttons
* and on right panel top menu (server db table) (true|false|'both')
diff --git a/libraries/display_tbl.lib.php b/libraries/display_tbl.lib.php
index 85daeb6c0..0c653afcf 100644
--- a/libraries/display_tbl.lib.php
+++ b/libraries/display_tbl.lib.php
@@ -426,7 +426,8 @@ onsubmit="return (checkFormElementInRange(this, 'session_max_rows', '';
+ $url_params = array(
+ 'db' => $db,
+ 'table' => $table,
+ 'sql_query' => $sql_query,
+ 'goto' => $goto,
+ 'display_options_form' => 1
+ );
+ echo PMA_generate_common_hidden_inputs($url_params);
+ echo '
';
+ PMA_generate_slider_effect('displayoptions',$GLOBALS['strOptions']);
+ echo '';
+
+ $choices = array(
+ 'P' => $GLOBALS['strPartialText'],
+ 'F' => $GLOBALS['strFullText']
+ );
+ PMA_generate_html_radio('display_text', $choices, $_SESSION['userconf']['display_text']);
+
+ PMA_generate_html_checkbox('display_binary', $GLOBALS['strShow'] . ' BINARY', ! empty($_SESSION['userconf']['display_binary']), false);
+
+ PMA_generate_html_checkbox('display_blob', $GLOBALS['strShow'] . ' BLOB', ! empty($_SESSION['userconf']['display_blob']), false);
+
+ echo ' ';
+ echo '
';
+ echo '';
+
+ // Start of form for multi-rows edit/delete/export
if ($is_display['del_lnk'] == 'dr' || $is_display['del_lnk'] == 'kp') {
echo '