bug 610315
This commit is contained in:
@@ -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)
|
||||||
|
@@ -474,7 +474,7 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){
|
|||||||
. '&disp_direction=' . $disp_direction
|
. '&disp_direction=' . $disp_direction
|
||||||
. '&repeat_cells=' . $repeat_cells
|
. '&repeat_cells=' . $repeat_cells
|
||||||
. '&goto=' . $goto
|
. '&goto=' . $goto
|
||||||
. '&dontlimitchars=' . (empty($dontlimitchars) ? 0 : 1);
|
. '&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')){
|
|||||||
. '&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=' . (empty($dontlimitchars) ? 0 : 1)
|
. '&dontlimitchars=' . $dontlimitchars
|
||||||
. '&sql_query=' . urlencode($sorted_sql_query);
|
. '&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')){
|
|||||||
. '&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=' . (empty($dontlimitchars) ? 0 : 1);
|
. '&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
|
||||||
|
6
sql.php3
6
sql.php3
@@ -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 {
|
|||||||
. '&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);
|
||||||
$url_query = '?lang=' . $lang
|
$url_query = '?lang=' . $lang
|
||||||
. '&convcharset=' . $convcharset
|
. '&convcharset=' . $convcharset
|
||||||
@@ -539,6 +543,7 @@ else {
|
|||||||
. '&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)
|
||||||
. '&goto=' . urlencode($lnk_goto);
|
. '&goto=' . urlencode($lnk_goto);
|
||||||
|
|
||||||
@@ -587,6 +592,7 @@ else {
|
|||||||
. '&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)
|
||||||
. '&id_bookmark=1';
|
. '&id_bookmark=1';
|
||||||
?>
|
?>
|
||||||
|
@@ -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
|
||||||
@@ -219,10 +220,9 @@ for ($i = 0; $i < $fields_cnt; $i++) {
|
|||||||
$field = $row_table_def['Field'];
|
$field = $row_table_def['Field'];
|
||||||
// loic1: current date should not be set as default if the field is NULL
|
// loic1: current date should not be set as default if the field is NULL
|
||||||
// for the current row
|
// for the current row
|
||||||
// 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
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user