removed tabs and/or trailing spaces

This commit is contained in:
Loïc Chapeaux
2002-02-10 09:31:41 +00:00
parent 579387e7c4
commit 7f919e6a86
54 changed files with 450 additions and 447 deletions

View File

@@ -5,11 +5,14 @@ phpMyAdmin - Changelog
$Id$
$Source$
2002-02-09 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* most of the scripts: removed tabs and/or trailing spaces.
2002-02-09 Marc Delisle <lem9@users.sourceforge.net>
* main.php3, libraries/auth/cookie.auth.lib.php3, Patch
495360 (cookie with domain), experimental, thanks to
Piotr Roszatycki (d3xter) and Christoph (certelt).
* tbl_properties.inc.php3: clarifications
* tbl_properties.inc.php3: clarifications.
* tbl_create.php3, tbl_addfield.php3, tbl_properties.inc.php3:
radio buttons for indexes.

View File

@@ -258,9 +258,9 @@ $strRowLength = 'D
$strRows = '<27><>dk<64>';
$strRowsFrom = '<27><>dk<64> za<7A><61>naj<61>c<EFBFBD> od';
$strRowSize = ' Velikost <20><>dku ';
$strRowsModeVertical='svisl<73>m';
$strRowsModeHorizontal='vodorovn<76>m';
$strRowsModeOptions='ve %s re<72>imu a opakovat hlavi<76>ky po %s <20><>dc<64>ch.';
$strRowsModeVertical = 'svisl<73>m';
$strRowsModeHorizontal = 'vodorovn<76>m';
$strRowsModeOptions = 've %s re<72>imu a opakovat hlavi<76>ky po %s <20><>dc<64>ch.';
$strRowsStatistic = 'Statistika <20><>dk<64>';
$strRunning = 'b<><62><EFBFBD>c<EFBFBD> na %s';
$strRunQuery = 'Prov<6F>st dotaz';

View File

@@ -258,9 +258,9 @@ $strRowLength = 'D
$strRows = '<27><>dk<64>';
$strRowsFrom = '<27><>dk<64> za<7A><61>naj<61>c<EFBFBD> od';
$strRowSize = ' Velikost <20><>dku ';
$strRowsModeVertical='svisl<73>m';
$strRowsModeHorizontal='vodorovn<76>m';
$strRowsModeOptions='ve %s re<72>imu a opakovat hlavi<76>ky po %s <20><>dc<64>ch.';
$strRowsModeVertical = 'svisl<73>m';
$strRowsModeHorizontal = 'vodorovn<76>m';
$strRowsModeOptions = 've %s re<72>imu a opakovat hlavi<76>ky po %s <20><>dc<64>ch.';
$strRowsStatistic = 'Statistika <20><>dk<64>';
$strRunning = 'b<><62><EFBFBD>c<EFBFBD> na %s';
$strRunQuery = 'Prov<6F>st dotaz';

View File

@@ -280,7 +280,7 @@ $strSetEnumVal = 'If field type is "enum" or "set", please enter the values usin
$strShow = 'Show';
$strShowAll = 'Show all';
$strShowCols = 'Show columns';
$strShowingRecords = 'Showing rows ';
$strShowingRecords = 'Showing rows';
$strShowPHPInfo = 'Show PHP information';
$strShowTables = 'Show tables';
$strShowThisQuery = ' Show this query here again ';

View File

@@ -258,9 +258,9 @@ $strRowLength = '
$strRows = '<27><><EFBFBD><EFBFBD><EFBFBD>';
$strRowsFrom = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>';
$strRowSize = ' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> ';
$strRowsModeVertical=" <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ";
$strRowsModeHorizontal=" <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ";
$strRowsModeOptions="-<2D><> %s <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> %s <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ";
$strRowsModeVertical = ' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ';
$strRowsModeHorizontal = ' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ';
$strRowsModeOptions = '-<2D><> %s <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> %s <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ';
$strRowsStatistic = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>';
$strRunning = '<27><> %s';
$strRunQuery = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>';

View File

@@ -211,7 +211,7 @@ if (!defined('PMA_BUILD_DUMP_LIB_INCLUDED')){
@set_time_limit($GLOBALS['cfgExecTimeLimit']);
while ($row = mysql_fetch_row($result)) {
$current_row++;
$current_row++;
for ($j = 0; $j < $fields_cnt; $j++) {
if (!isset($row[$j])) {
$values[] = 'NULL';

View File

@@ -188,7 +188,7 @@ $err_url = $goto
/**
* Set up default values for some variables and
* Set up default values for some variables
*/
$view_bookmark = 0;
$sql_bookmark = isset($sql_bookmark) ? $sql_bookmark : '';

View File

@@ -28,19 +28,19 @@ $err_url = 'tbl_properties.php3'
if (isset($submit)) {
$query = '';
// transform the radio button field_key into 3 arrays
// Transforms the radio button field_key into 3 arrays
$field_cnt = count($field_name);
for ($i = 0; $i < $field_cnt; ++$i) {
if (${'field_key_'.$i} == 'primary_'.$i) {
$field_primary[]=$i;
if (${'field_key_' . $i} == 'primary_' . $i) {
$field_primary[] = $i;
}
if (${'field_key_'.$i} == 'index_'.$i) {
$field_index[]=$i;
if (${'field_key_' . $i} == 'index_' . $i) {
$field_index[] = $i;
}
if (${'field_key_'.$i} == 'unique_'.$i) {
$field_unique[]=$i;
if (${'field_key_' . $i} == 'unique_' . $i) {
$field_unique[] = $i;
}
}
} // end for
// Builds the field creation statement and alters the table
for ($i = 0; $i < $field_cnt; ++$i) {
if (get_magic_quotes_gpc()) {

View File

@@ -247,41 +247,41 @@ for ($i = 0; $i < $fields_cnt; $i++) {
// stored or retrieved" so it does not mean that the contents is
// binary
if ($cfgShowFunctionFields) {
if ((($cfgProtectBinary && $is_blob)
|| ($cfgProtectBinary == 'all' && $is_binary))
&& !empty($data)) {
echo ' <td align="center" bgcolor="'. $bgcolor . '">' . $strBinary . '</td>' . "\n";
} else if (strstr($row_table_def['True_Type'], 'enum') || strstr($row_table_def['True_Type'], 'set')) {
echo ' <td align="center" bgcolor="'. $bgcolor . '">--</td>' . "\n";
} else {
?>
if ((($cfgProtectBinary && $is_blob)
|| ($cfgProtectBinary == 'all' && $is_binary))
&& !empty($data)) {
echo ' <td align="center" bgcolor="'. $bgcolor . '">' . $strBinary . '</td>' . "\n";
} else if (strstr($row_table_def['True_Type'], 'enum') || strstr($row_table_def['True_Type'], 'set')) {
echo ' <td align="center" bgcolor="'. $bgcolor . '">--</td>' . "\n";
} else {
?>
<td bgcolor="<?php echo $bgcolor; ?>">
<select name="funcs[<?php echo urlencode($field); ?>]">
<option></option>
<?php
echo "\n";
if (!$first_timestamp) {
for ($j = 0; $j < count($cfgFunctions); $j++) {
echo ' ';
echo '<option>' . $cfgFunctions[$j] . '</option>' . "\n";
}
} else {
<?php
echo "\n";
if (!$first_timestamp) {
for ($j = 0; $j < count($cfgFunctions); $j++) {
echo ' ';
echo '<option>' . $cfgFunctions[$j] . '</option>' . "\n";
}
} else {
// for default function = NOW() on first timestamp field
// -- swix/18jul01
for ($j = 0; $j < count($cfgFunctions); $j++) {
echo ' ';
if ($cfgFunctions[$j] == 'NOW') {
echo '<option selected="selected">' . $cfgFunctions[$j] . '</option>' . "\n";
} else {
echo '<option>' . $cfgFunctions[$j] . '</option>' . "\n";
}
} // end for
}
?>
for ($j = 0; $j < count($cfgFunctions); $j++) {
echo ' ';
if ($cfgFunctions[$j] == 'NOW') {
echo '<option selected="selected">' . $cfgFunctions[$j] . '</option>' . "\n";
} else {
echo '<option>' . $cfgFunctions[$j] . '</option>' . "\n";
}
} // end for
}
?>
</select>
</td>
<?php
}
}
}
echo "\n";
@@ -302,7 +302,7 @@ for ($i = 0; $i < $fields_cnt; $i++) {
}
} else if (strstr($row_table_def['True_Type'], 'set')) {
echo ' onclick="if (this.checked) {document.forms[\'insertForm\'].elements[\'field_' . md5($field) . '[]\'].selectedIndex = -1}; return true" />' . "\n";
} else {
} else {
echo ' onclick="if (this.checked) {document.forms[\'insertForm\'].elements[\'fields[' . urlencode($field) . ']\'].value = \'\'}; return true" />' . "\n";
}
} else {

View File

@@ -34,19 +34,19 @@ mysql_select_db($db);
if (isset($submit)) {
$sql_query = $query_cpy = '';
// transform the radio button field_key into 3 arrays
// Transforms the radio button field_key into 3 arrays
$field_cnt = count($field_name);
for ($i = 0; $i < $field_cnt; ++$i) {
if (${'field_key_'.$i} == 'primary_'.$i) {
$field_primary[]=$i;
if (${'field_key_' . $i} == 'primary_' . $i) {
$field_primary[] = $i;
}
if (${'field_key_'.$i} == 'index_'.$i) {
$field_index[]=$i;
if (${'field_key_' . $i} == 'index_' . $i) {
$field_index[] = $i;
}
if (${'field_key_'.$i} == 'unique_'.$i) {
$field_unique[]=$i;
if (${'field_key_' . $i} == 'unique_' . $i) {
$field_unique[] = $i;
}
}
} // end for
// Builds the fields creation statements
for ($i = 0; $i < $field_cnt; $i++) {
if (empty($field_name[$i])) {

View File

@@ -232,7 +232,7 @@ while (list($key, $table) = each($the_tables)) {
? count($indexes)
: 0;
if ($index_count > 0) {
echo "\n";
echo "\n";
?>
<br /><br />

View File

@@ -34,9 +34,9 @@ $is_backup = ($action != 'tbl_create.php3' && $action != 'tbl_addfield.php3');
<th><?php echo $strDefault; ?></th>
<th><?php echo $strExtra; ?></th>
<?php
// We could remove this 'if' and let the key information be shown and
// editable. However, for this to work, tbl_alter must be modified
// to use the key fields, as tbl_addfield does.
// lem9: We could remove this 'if' and let the key information be shown and
// editable. However, for this to work, tbl_alter must be modified to use the
// key fields, as tbl_addfield does.
if (!$is_backup) {
echo " <th>$strPrimary</th>\n";
@@ -210,31 +210,31 @@ for ($i = 0 ; $i < $num_fields; $i++) {
</select>
</td>
<?php
// See my other comment about removing this 'if'.
// lem9: See my other comment about removing this 'if'.
if (!$is_backup) {
if (isset($row) && isset($row['Key']) && $row['Key'] == 'PRI') {
$checked_primary = ' checked="checked"';
} else {
$checked_primary = '';
}
if (isset($row) && isset($row['Key']) && $row['Key'] == 'MUL') {
$checked_index = ' checked="checked"';
} else {
$checked_index = '';
}
if (isset($row) && isset($row['Key']) && $row['Key'] == 'UNI') {
$checked_unique = ' checked="checked"';
} else {
$checked_unique = '';
}
if (PMA_MYSQL_INT_VERSION >= 32323
&&(isset($row) && isset($row['Comment']) && $row['Comment'] == 'FULLTEXT')) {
$checked_fulltext = ' checked="checked"';
} else {
$checked_fulltext = '';
}
echo "\n";
?>
if (isset($row) && isset($row['Key']) && $row['Key'] == 'PRI') {
$checked_primary = ' checked="checked"';
} else {
$checked_primary = '';
}
if (isset($row) && isset($row['Key']) && $row['Key'] == 'MUL') {
$checked_index = ' checked="checked"';
} else {
$checked_index = '';
}
if (isset($row) && isset($row['Key']) && $row['Key'] == 'UNI') {
$checked_unique = ' checked="checked"';
} else {
$checked_unique = '';
}
if (PMA_MYSQL_INT_VERSION >= 32323
&&(isset($row) && isset($row['Comment']) && $row['Comment'] == 'FULLTEXT')) {
$checked_fulltext = ' checked="checked"';
} else {
$checked_fulltext = '';
}
echo "\n";
?>
<td align="center" bgcolor="<?php echo $bgcolor; ?>">
<input type="radio" name="field_key_<?php echo $i; ?>" value="primary_<?php echo $i; ?>"<?php echo $checked_primary; ?> />
</td>
@@ -247,16 +247,16 @@ for ($i = 0 ; $i < $num_fields; $i++) {
<td align="center" bgcolor="<?php echo $bgcolor; ?>">
<input type="radio" name="field_key_<?php echo $i; ?>" value="none_<?php echo $i; ?>" />
</td>
<?php
if (PMA_MYSQL_INT_VERSION >= 32323) {
echo "\n";
?>
<?php
if (PMA_MYSQL_INT_VERSION >= 32323) {
echo "\n";
?>
<td bgcolor="<?php echo $bgcolor; ?>" nowrap="nowrap">
<input type="checkbox" name="field_fulltext[]" value="<?php echo $i; ?>"<?php echo $checked_fulltext; ?> />
</td>
<?php
} // end if (PMA_MYSQL_INT_VERSION >= 32323)
echo "\n";
<?php
} // end if (PMA_MYSQL_INT_VERSION >= 32323)
echo "\n";
} // end if ($action ==...)
echo "\n";
?>
@@ -336,10 +336,10 @@ if ($action == 'tbl_create.php3' && PMA_MYSQL_INT_VERSION >= 32300) {
<option value="MYISAM">MyISAM</option>
<option value="HEAP">Heap</option>
<option value="MERGE">Merge</option>
<?php if (isset($tbl_bdb)) { ?><option value="BDB">Berkeley DB</option><?php }?>
<?php if (isset($tbl_gemini)) { ?><option value="GEMINI">Gemini</option><?php }?>
<?php if (isset($tbl_innodb)) { ?><option value="InnoDB">INNO DB</option><?php }?>
<?php if (isset($tbl_isam)) { ?><option value="ISAM">ISAM</option><?php }?>
<?php if (isset($tbl_bdb)) { ?><option value="BDB">Berkeley DB</option><?php } ?>
<?php if (isset($tbl_gemini)) { ?><option value="GEMINI">Gemini</option><?php } ?>
<?php if (isset($tbl_innodb)) { ?><option value="InnoDB">INNO DB</option><?php } ?>
<?php if (isset($tbl_isam)) { ?><option value="ISAM">ISAM</option><?php } ?>
</select>
</td>
<?php