bug #1342332 Error messages wrongly formatted.
This commit is contained in:
@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
|
|||||||
$Id$
|
$Id$
|
||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
|
2005-11-01 Sebastian Mendel <cybot_tm@users.sourceforge.net>
|
||||||
|
* libraries/common.lib.php:
|
||||||
|
bug #1342332 Error messages wrongly formatted.
|
||||||
|
|
||||||
2005-10-31 Sebastian Mendel <cybot_tm@users.sourceforge.net>
|
2005-10-31 Sebastian Mendel <cybot_tm@users.sourceforge.net>
|
||||||
* themes/*/css/theme_right.css.php:
|
* themes/*/css/theme_right.css.php:
|
||||||
- use right image path
|
- use right image path
|
||||||
|
@@ -1905,37 +1905,33 @@ window.parent.updateTableTitle( '<?php echo $uni_tbl; ?>', '<?php echo PMA_jsFor
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
unset($tbl_status);
|
unset($tbl_status);
|
||||||
|
|
||||||
echo "\n";
|
|
||||||
?>
|
?>
|
||||||
<br />
|
<br />
|
||||||
<div align="<?php echo $GLOBALS['cell_align_left']; ?>">
|
<div align="<?php echo $GLOBALS['cell_align_left']; ?>">
|
||||||
<?php if ( ! empty( $GLOBALS['show_error_header'] ) ) { ?>
|
|
||||||
<div class="error"><h1><?php echo $GLOBALS['strError']; ?></h1>
|
|
||||||
<?php } ?>
|
|
||||||
<table border="<?php echo $cfg['Border']; ?>" cellpadding="5" cellspacing="1">
|
|
||||||
<tr>
|
|
||||||
<th<?php echo ($GLOBALS['theme'] != 'original') ? ' class="tblHeaders"' : ' bgcolor="' . $cfg['ThBgcolor'] . '"'; ?>>
|
|
||||||
<b><?php
|
|
||||||
echo $message;
|
|
||||||
if (isset($GLOBALS['special_message'])) {
|
|
||||||
echo PMA_sanitize($GLOBALS['special_message']);
|
|
||||||
unset($GLOBALS['special_message']);
|
|
||||||
}
|
|
||||||
?></b>
|
|
||||||
</th>
|
|
||||||
</tr>
|
|
||||||
<?php
|
<?php
|
||||||
if ($cfg['ShowSQL'] == TRUE && (!empty($GLOBALS['sql_query']) || !empty($GLOBALS['display_query']))) {
|
if ( ! empty( $GLOBALS['show_error_header'] ) ) {
|
||||||
|
?>
|
||||||
|
<div class="error">
|
||||||
|
<h1><?php echo $GLOBALS['strError']; ?></h1>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
|
||||||
|
echo $message;
|
||||||
|
if (isset($GLOBALS['special_message'])) {
|
||||||
|
echo PMA_sanitize($GLOBALS['special_message']);
|
||||||
|
unset($GLOBALS['special_message']);
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( ! empty( $GLOBALS['show_error_header'] ) ) {
|
||||||
|
echo '</div>';
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( $cfg['ShowSQL'] == TRUE
|
||||||
|
&& ( !empty($GLOBALS['sql_query']) || !empty($GLOBALS['display_query']) ) ) {
|
||||||
$local_query = !empty($GLOBALS['display_query']) ? $GLOBALS['display_query'] : (($cfg['SQP']['fmtType'] == 'none' && isset($GLOBALS['unparsed_sql']) && $GLOBALS['unparsed_sql'] != '') ? $GLOBALS['unparsed_sql'] : $GLOBALS['sql_query']);
|
$local_query = !empty($GLOBALS['display_query']) ? $GLOBALS['display_query'] : (($cfg['SQP']['fmtType'] == 'none' && isset($GLOBALS['unparsed_sql']) && $GLOBALS['unparsed_sql'] != '') ? $GLOBALS['unparsed_sql'] : $GLOBALS['sql_query']);
|
||||||
// Basic url query part
|
// Basic url query part
|
||||||
$url_qpart = '?' . PMA_generate_common_url(isset($GLOBALS['db']) ? $GLOBALS['db'] : '', isset($GLOBALS['table']) ? $GLOBALS['table'] : '');
|
$url_qpart = '?' . PMA_generate_common_url(isset($GLOBALS['db']) ? $GLOBALS['db'] : '', isset($GLOBALS['table']) ? $GLOBALS['table'] : '');
|
||||||
echo "\n";
|
|
||||||
?>
|
|
||||||
<tr>
|
|
||||||
<td bgcolor="<?php echo $cfg['BgcolorOne']; ?>">
|
|
||||||
<?php
|
|
||||||
echo "\n";
|
|
||||||
// Html format the query to be displayed
|
// Html format the query to be displayed
|
||||||
// The nl2br function isn't used because its result isn't a valid
|
// The nl2br function isn't used because its result isn't a valid
|
||||||
// xhtml1.0 statement before php4.0.5 ("<br>" and not "<br />")
|
// xhtml1.0 statement before php4.0.5 ("<br>" and not "<br />")
|
||||||
@@ -2122,34 +2118,26 @@ window.parent.updateTableTitle( '<?php echo $uni_tbl; ?>', '<?php echo PMA_jsFor
|
|||||||
} else {
|
} else {
|
||||||
$validate_link = '';
|
$validate_link = '';
|
||||||
} //validator
|
} //validator
|
||||||
|
unset($local_query);
|
||||||
|
|
||||||
// Displays the message
|
// Displays the message
|
||||||
echo ' <b>' . $GLOBALS['strSQLQuery'] . ':</b> ';
|
echo '<fieldset class="">' . "\n";
|
||||||
echo '<br />' . "\n";
|
echo ' <legend>' . $GLOBALS['strSQLQuery'] . ':</legend>';
|
||||||
echo ' ' . $query_base;
|
echo ' ' . $query_base;
|
||||||
|
|
||||||
unset($local_query);
|
|
||||||
//Clean up the end of the PHP
|
//Clean up the end of the PHP
|
||||||
if (!empty($GLOBALS['show_as_php'])) {
|
if (!empty($GLOBALS['show_as_php'])) {
|
||||||
echo '\';';
|
echo '\';';
|
||||||
}
|
}
|
||||||
echo "\n";
|
echo '</fieldset>' . "\n";
|
||||||
?>
|
|
||||||
</td>
|
if ( ! empty( $edit_target ) ) {
|
||||||
</tr>
|
echo '<fieldset class="tblFooters">';
|
||||||
<?php
|
|
||||||
if (!empty($edit_target)) {
|
|
||||||
echo '<tr><td class="tblFooters">';
|
|
||||||
echo $edit_link . $explain_link . $php_link . $refresh_link . $validate_link;
|
echo $edit_link . $explain_link . $php_link . $refresh_link . $validate_link;
|
||||||
echo '</td></tr>' . "\n";
|
echo '</fieldset>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
echo "\n";
|
|
||||||
?>
|
?>
|
||||||
</table>
|
|
||||||
<?php if ( ! empty( $GLOBALS['show_error_header'] ) ) { ?>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
</div><br />
|
</div><br />
|
||||||
<?php
|
<?php
|
||||||
} // end of the 'PMA_showMessage()' function
|
} // end of the 'PMA_showMessage()' function
|
||||||
|
Reference in New Issue
Block a user