bug 610315

This commit is contained in:
Marc Delisle
2002-09-18 12:49:54 +00:00
parent 0977b64fb9
commit df1724629a
5 changed files with 21 additions and 6 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $Source$
2002-09-18 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* tbl_change.php3, tbl_replace.php3, sql.php3,
libraries/display_tbl.lib.php3: bug 610315 full text toggle
2002-09-18 Michal Cihar <nijel@users.sourceforge.net> 2002-09-18 Michal Cihar <nijel@users.sourceforge.net>
* lang/*.php3, tbl_properties_export.php3: removed duplicate message * lang/*.php3, tbl_properties_export.php3: removed duplicate message
with typo in name strCvsData (replaced by strStrucCSV) with typo in name strCvsData (replaced by strStrucCSV)

View File

@@ -474,7 +474,7 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){
. '&amp;disp_direction=' . $disp_direction . '&amp;disp_direction=' . $disp_direction
. '&amp;repeat_cells=' . $repeat_cells . '&amp;repeat_cells=' . $repeat_cells
. '&amp;goto=' . $goto . '&amp;goto=' . $goto
. '&amp;dontlimitchars=' . (empty($dontlimitchars) ? 0 : 1); . '&amp;dontlimitchars=' . (($dontlimitchars) ? 0 : 1);
// ... before the result table // ... before the result table
if (($is_display['edit_lnk'] == 'nn' && $is_display['del_lnk'] == 'nn') if (($is_display['edit_lnk'] == 'nn' && $is_display['del_lnk'] == 'nn')
@@ -618,7 +618,7 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){
. '&amp;session_max_rows=' . $session_max_rows . '&amp;session_max_rows=' . $session_max_rows
. '&amp;disp_direction=' . $disp_direction . '&amp;disp_direction=' . $disp_direction
. '&amp;repeat_cells=' . $repeat_cells . '&amp;repeat_cells=' . $repeat_cells
. '&amp;dontlimitchars=' . (empty($dontlimitchars) ? 0 : 1) . '&amp;dontlimitchars=' . $dontlimitchars
. '&amp;sql_query=' . urlencode($sorted_sql_query); . '&amp;sql_query=' . urlencode($sorted_sql_query);
// 2.1.5 Displays the sorting url // 2.1.5 Displays the sorting url
@@ -924,7 +924,7 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){
. '&amp;session_max_rows=' . $session_max_rows . '&amp;session_max_rows=' . $session_max_rows
. '&amp;disp_direction=' . $disp_direction . '&amp;disp_direction=' . $disp_direction
. '&amp;repeat_cells=' . $repeat_cells . '&amp;repeat_cells=' . $repeat_cells
. '&amp;dontlimitchars=' . (empty($dontlimitchars) ? 0 : 1); . '&amp;dontlimitchars=' . $dontlimitchars;
// 1.2.1 Modify link(s) // 1.2.1 Modify link(s)
if ($is_display['edit_lnk'] == 'ur') { // update row case if ($is_display['edit_lnk'] == 'ur') { // update row case

View File

@@ -510,6 +510,9 @@ else {
// libraries/display_tbl.lib.php3 // libraries/display_tbl.lib.php3
$disp_mode = 'urdr111101'; $disp_mode = 'urdr111101';
} }
if (!isset($dontlimitchars)) {
$dontlimitchars = 0;
}
PMA_displayTable($result, $disp_mode); PMA_displayTable($result, $disp_mode);
mysql_free_result($result); mysql_free_result($result);
@@ -529,6 +532,7 @@ else {
. '&amp;session_max_rows=' . $session_max_rows . '&amp;session_max_rows=' . $session_max_rows
. '&amp;disp_direction=' . $disp_direction . '&amp;disp_direction=' . $disp_direction
. '&amp;repeat_cells=' . $repeat_cells . '&amp;repeat_cells=' . $repeat_cells
. '&amp;dontlimitchars=' . $dontlimitchars
. '&amp;sql_query=' . urlencode($sql_query); . '&amp;sql_query=' . urlencode($sql_query);
$url_query = '?lang=' . $lang $url_query = '?lang=' . $lang
. '&amp;convcharset=' . $convcharset . '&amp;convcharset=' . $convcharset
@@ -539,6 +543,7 @@ else {
. '&amp;session_max_rows=' . $session_max_rows . '&amp;session_max_rows=' . $session_max_rows
. '&amp;disp_direction=' . $disp_direction . '&amp;disp_direction=' . $disp_direction
. '&amp;repeat_cells=' . $repeat_cells . '&amp;repeat_cells=' . $repeat_cells
. '&amp;dontlimitchars=' . $dontlimitchars
. '&amp;sql_query=' . urlencode($sql_query) . '&amp;sql_query=' . urlencode($sql_query)
. '&amp;goto=' . urlencode($lnk_goto); . '&amp;goto=' . urlencode($lnk_goto);
@@ -587,6 +592,7 @@ else {
. '&amp;session_max_rows=' . $session_max_rows . '&amp;session_max_rows=' . $session_max_rows
. '&amp;disp_direction=' . $disp_direction . '&amp;disp_direction=' . $disp_direction
. '&amp;repeat_cells=' . $repeat_cells . '&amp;repeat_cells=' . $repeat_cells
. '&amp;dontlimitchars=' . $dontlimitchars
. '&amp;sql_query=' . urlencode($sql_query) . '&amp;sql_query=' . urlencode($sql_query)
. '&amp;id_bookmark=1'; . '&amp;id_bookmark=1';
?> ?>

View File

@@ -166,6 +166,7 @@ $chg_evt_handler = (PMA_USR_BROWSER_AGENT == 'IE' && PMA_USR_BROWSER_VER >= 5)
<input type="hidden" name="session_max_rows" value="<?php echo isset($session_max_rows) ? $session_max_rows : ''; ?>" /> <input type="hidden" name="session_max_rows" value="<?php echo isset($session_max_rows) ? $session_max_rows : ''; ?>" />
<input type="hidden" name="disp_direction" value="<?php echo isset($disp_direction) ? $disp_direction : ''; ?>" /> <input type="hidden" name="disp_direction" value="<?php echo isset($disp_direction) ? $disp_direction : ''; ?>" />
<input type="hidden" name="repeat_cells" value="<?php echo isset($repeat_cells) ? $repeat_cells : ''; ?>" /> <input type="hidden" name="repeat_cells" value="<?php echo isset($repeat_cells) ? $repeat_cells : ''; ?>" />
<input type="hidden" name="dontlimitchars" value="<?php echo (isset($dontlimitchars) ? $dontlimitchars : 0); ?>" />
<input type="hidden" name="err_url" value="<?php echo urlencode($err_url); ?>" /> <input type="hidden" name="err_url" value="<?php echo urlencode($err_url); ?>" />
<input type="hidden" name="sql_query" value="<?php echo isset($sql_query) ? urlencode($sql_query) : ''; ?>" /> <input type="hidden" name="sql_query" value="<?php echo isset($sql_query) ? urlencode($sql_query) : ''; ?>" />
<?php <?php
@@ -222,7 +223,6 @@ for ($i = 0; $i < $fields_cnt; $i++) {
// lem9: but do not put here the current datetime if there is a default // lem9: but do not put here the current datetime if there is a default
// value (the real default value will be set in the // value (the real default value will be set in the
// Default value logic below) // Default value logic below)
if (($row_table_def['Type'] == 'datetime') if (($row_table_def['Type'] == 'datetime')
&& (!isset($row_table_def['Default']))) { && (!isset($row_table_def['Default']))) {
// INSERT case // INSERT case

View File

@@ -16,6 +16,9 @@ require('./libraries/common.lib.php3');
if (isset($sql_query)) { if (isset($sql_query)) {
$sql_query = urldecode($sql_query); $sql_query = urldecode($sql_query);
} }
if (!isset($dontlimitchars)) {
$dontlimitchars = 0;
}
$is_gotofile = FALSE; $is_gotofile = FALSE;
if (isset($after_insert) && $after_insert == 'new_insert') { if (isset($after_insert) && $after_insert == 'new_insert') {
$goto = 'tbl_change.php3' $goto = 'tbl_change.php3'
@@ -29,6 +32,7 @@ if (isset($after_insert) && $after_insert == 'new_insert') {
. '&session_max_rows=' . $session_max_rows . '&session_max_rows=' . $session_max_rows
. '&disp_direction=' . $disp_direction . '&disp_direction=' . $disp_direction
. '&repeat_cells=' . $repeat_cells . '&repeat_cells=' . $repeat_cells
. '&dontlimitchars=' . $dontlimitchars
. (empty($sql_query) ? '' : '&sql_query=' . urlencode($sql_query)); . (empty($sql_query) ? '' : '&sql_query=' . urlencode($sql_query));
} else if ($goto == 'sql.php3') { } else if ($goto == 'sql.php3') {
$goto = 'sql.php3?' $goto = 'sql.php3?'
@@ -41,6 +45,7 @@ if (isset($after_insert) && $after_insert == 'new_insert') {
. '&session_max_rows=' . $session_max_rows . '&session_max_rows=' . $session_max_rows
. '&disp_direction=' . $disp_direction . '&disp_direction=' . $disp_direction
. '&repeat_cells=' . $repeat_cells . '&repeat_cells=' . $repeat_cells
. '&dontlimitchars=' . $dontlimitchars
. '&sql_query=' . urlencode($sql_query); . '&sql_query=' . urlencode($sql_query);
} else if (!empty($goto)) { } else if (!empty($goto)) {
// Security checkings // Security checkings