Fixed some coding style inconcistencies
This commit is contained in:
@@ -70,7 +70,7 @@ $cfgServers[3]['bookmarktable'] = '';
|
|||||||
// or set it to 0 to be given a list of servers without logging in
|
// or set it to 0 to be given a list of servers without logging in
|
||||||
// If you have only one server configured, $cfgServerDefault *MUST* be
|
// If you have only one server configured, $cfgServerDefault *MUST* be
|
||||||
// set to that server.
|
// set to that server.
|
||||||
$cfgServerDefault = 1; // Default server (0 = no default server)
|
$cfgServerDefault = 1; // Default server (0 = no default server)
|
||||||
$cfgServer = '';
|
$cfgServer = '';
|
||||||
unset($cfgServers[0]);
|
unset($cfgServers[0]);
|
||||||
|
|
||||||
@@ -81,13 +81,13 @@ unset($cfgServers[0]);
|
|||||||
$cfgConfirm = TRUE;
|
$cfgConfirm = TRUE;
|
||||||
$cfgPersistentConnections = FALSE;
|
$cfgPersistentConnections = FALSE;
|
||||||
$cfgShowBlob = FALSE;
|
$cfgShowBlob = FALSE;
|
||||||
$cfgProtectBlob = FALSE;
|
$cfgProtectBlob = FALSE;
|
||||||
$cfgShowSQL = TRUE;
|
$cfgShowSQL = TRUE;
|
||||||
$cfgSkipLockedTables = FALSE; // mark used tables, make possible to show
|
$cfgSkipLockedTables = FALSE; // mark used tables, make possible to show
|
||||||
// locked tables (since MySQL 3.23.30)
|
// locked tables (since MySQL 3.23.30)
|
||||||
$cfgMaxRows = 30;
|
$cfgMaxRows = 30;
|
||||||
$cfgOrder = 'ASC';
|
$cfgOrder = 'ASC';
|
||||||
$cfgOBGzip = TRUE; // GZIP output buffering
|
$cfgOBGzip = TRUE; // GZIP output buffering
|
||||||
$cfgGZipDump = TRUE; // Allow the use of gzip/bzip compression
|
$cfgGZipDump = TRUE; // Allow the use of gzip/bzip compression
|
||||||
$cfgBZipDump = TRUE; // for dump files
|
$cfgBZipDump = TRUE; // for dump files
|
||||||
|
|
||||||
@@ -118,11 +118,11 @@ $cfgThBgcolor = '#D3DCE3';
|
|||||||
$cfgBgcolorOne = '#CCCCCC';
|
$cfgBgcolorOne = '#CCCCCC';
|
||||||
$cfgBgcolorTwo = '#DDDDDD';
|
$cfgBgcolorTwo = '#DDDDDD';
|
||||||
$cfgTextareaCols = 40;
|
$cfgTextareaCols = 40;
|
||||||
$cfgLimitChars = 50; // max field data length in browse mode
|
|
||||||
$cfgTextareaRows = 7;
|
$cfgTextareaRows = 7;
|
||||||
|
$cfgLimitChars = 50; // max field data length in browse mode
|
||||||
$cfgModifyDeleteAtLeft = TRUE;
|
$cfgModifyDeleteAtLeft = TRUE;
|
||||||
$cfgModifyDeleteAtRight = FALSE;
|
$cfgModifyDeleteAtRight = FALSE;
|
||||||
$cfgLeftWidth = 150; // left frame width
|
$cfgLeftWidth = 150; // left frame width
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -200,8 +200,8 @@ else if (MYSQL_MAJOR_VERSION >= 3.23 && isset($tbl_cache)) {
|
|||||||
?>
|
?>
|
||||||
<tr bgcolor="<?php echo $cfgThBgcolor; ?>">
|
<tr bgcolor="<?php echo $cfgThBgcolor; ?>">
|
||||||
<td colspan="7" align="center">
|
<td colspan="7" align="center">
|
||||||
<?php echo $strSum . "\n"; ?>
|
<?php echo $strSum . "\n"; ?>
|
||||||
<b>( <?php echo $num_tables . " " . $strTables; ?>)</b>
|
<b>(<?php echo $num_tables . ' ' . $strTables; ?>)</b>
|
||||||
</td>
|
</td>
|
||||||
<td align="right" nowrap="nowrap">
|
<td align="right" nowrap="nowrap">
|
||||||
<?php echo number_format($sum_entries, 0, $number_decimal_separator, $number_thousands_separator) . "\n"; ?>
|
<?php echo number_format($sum_entries, 0, $number_decimal_separator, $number_thousands_separator) . "\n"; ?>
|
||||||
|
@@ -192,7 +192,7 @@ if ($num_dbs > 1) {
|
|||||||
echo "\n";
|
echo "\n";
|
||||||
?>
|
?>
|
||||||
<a class="item" href="db_details.php3?<?php echo $common_url_query; ?>" onclick="expandBase('el<?php echo $j; ?>', false);">
|
<a class="item" href="db_details.php3?<?php echo $common_url_query; ?>" onclick="expandBase('el<?php echo $j; ?>', false);">
|
||||||
<font color="black" class="heada"><?php echo $db; ?> (<?php echo "$num_tables"; ?>)</font></a>
|
<font color="black" class="heada"><?php echo $db; ?> (<?php echo $num_tables; ?>)</font></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="el<?php echo $j;?>Child" class="child" style="margin-bottom: 5px">
|
<div id="el<?php echo $j;?>Child" class="child" style="margin-bottom: 5px">
|
||||||
@@ -253,7 +253,7 @@ else if ($num_dbs == 1) {
|
|||||||
?>
|
?>
|
||||||
<div id="el2Parent" class="parent">
|
<div id="el2Parent" class="parent">
|
||||||
<a class="item" href="db_details.php3?<?php echo $common_url_query; ?>">
|
<a class="item" href="db_details.php3?<?php echo $common_url_query; ?>">
|
||||||
<font color="black" class="heada"><?php echo $db; ?> (<?php echo "$num_tables"; ?>)</font></a>
|
<font color="black" class="heada"><?php echo $db; ?> (<?php echo $num_tables; ?>)</font></a>
|
||||||
</div>
|
</div>
|
||||||
<div id="el2Child" class="child" style="margin-bottom: 5px">
|
<div id="el2Child" class="child" style="margin-bottom: 5px">
|
||||||
<?php
|
<?php
|
||||||
|
@@ -161,7 +161,7 @@ if (!defined('__LIB_INC__')){
|
|||||||
* Gets the valid servers list and parameters
|
* Gets the valid servers list and parameters
|
||||||
*/
|
*/
|
||||||
reset($cfgServers);
|
reset($cfgServers);
|
||||||
while(list($key, $val) = each($cfgServers)) {
|
while (list($key, $val) = each($cfgServers)) {
|
||||||
// Don't use servers with no hostname
|
// Don't use servers with no hostname
|
||||||
if (empty($val['host'])) {
|
if (empty($val['host'])) {
|
||||||
unset($cfgServers[$key]);
|
unset($cfgServers[$key]);
|
||||||
@@ -856,7 +856,7 @@ window.parent.frames['nav'].location.replace('./left.php3?lang=<?php echo $GLOBA
|
|||||||
{
|
{
|
||||||
global $lang, $server, $db, $table;
|
global $lang, $server, $db, $table;
|
||||||
global $sql_query, $goto, $pos;
|
global $sql_query, $goto, $pos;
|
||||||
global $SelectNumRows, $cfgLimitChars;
|
global $SelectNumRows;
|
||||||
|
|
||||||
// Gets the number of rows per page
|
// Gets the number of rows per page
|
||||||
if (isset($GLOBALS['sessionMaxRows'])) {
|
if (isset($GLOBALS['sessionMaxRows'])) {
|
||||||
@@ -1131,8 +1131,8 @@ var errorMsg2 = '<?php echo(str_replace('\'', '\\\'', $GLOBALS['strNotValidNumbe
|
|||||||
if (eregi('BLOB', $true_field_type['Type'])) {
|
if (eregi('BLOB', $true_field_type['Type'])) {
|
||||||
echo ' <td align="right"> [BLOB] </td>' . "\n";
|
echo ' <td align="right"> [BLOB] </td>' . "\n";
|
||||||
} else {
|
} else {
|
||||||
if (strlen($row[$i]) > $cfgLimitChars){
|
if (strlen($row[$i]) > $GLOBALS['cfgLimitChars']) {
|
||||||
$row[$i] = substr($row[$i],0,$cfgLimitChars) . "...";
|
$row[$i] = substr($row[$i], 0, $cfgLimitChars) . '...';
|
||||||
}
|
}
|
||||||
echo ' <td> ' . htmlspecialchars($row[$i]) . ' </td>' . "\n";
|
echo ' <td> ' . htmlspecialchars($row[$i]) . ' </td>' . "\n";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user