diff --git a/browse_foreigners.php b/browse_foreigners.php
index 22c3ab057..349188a99 100644
--- a/browse_foreigners.php
+++ b/browse_foreigners.php
@@ -1,6 +1,6 @@
' . $table_html . '' . "\n";
} // end for
$multi_values .= "\n";
diff --git a/db_import.php b/db_import.php
index 0d1ab19b4..16d1a8dc8 100644
--- a/db_import.php
+++ b/db_import.php
@@ -1,6 +1,6 @@
$each_table) {
// so ensure that we'll display "in use" below for a table
// that needs to be repaired
- if (isset($each_table['TABLE_ROWS']) && ($each_table['ENGINE'] != null || $table_is_view)) {
+ if (isset($each_table['TABLE_ROWS']) && ($each_table['ENGINE'] != null || $table_is_view)) {
if ($table_is_view && $each_table['TABLE_ROWS'] >= $cfg['MaxExactCountViews']) {
$at_least_one_view_exceeds_max_count = true;
$show_superscript = '1';
@@ -496,7 +496,7 @@ if ($at_least_one_view_exceeds_max_count && !$db_is_information_schema) {
' . "\n";
echo ' ' . "\n";
require './libraries/db_routines.inc.php';
diff --git a/import.php b/import.php
index bcb613f18..5ded83779 100644
--- a/import.php
+++ b/import.php
@@ -1,6 +1,6 @@
_encryptBlock($L, $R);
return pack("NN", $parts['L'], $parts['R']);
}
-
+
/**
* Encrypt a block on data.
*
diff --git a/libraries/bookmark.lib.php b/libraries/bookmark.lib.php
index 66c0e2e68..846438c3a 100644
--- a/libraries/bookmark.lib.php
+++ b/libraries/bookmark.lib.php
@@ -1,6 +1,6 @@
0) {
while ($tmp = PMA_DBI_fetch_row($db_info_result)) {
@@ -97,7 +97,7 @@ if ( true === $cfg['SkipLockedTables'] ) {
}
}
PMA_DBI_free_result($db_info_result);
-
+
if ( $GLOBALS['cfg']['NaturalOrder'] ) {
uksort( $tables, 'strnatcasecmp' );
}
@@ -123,7 +123,7 @@ if ( ! isset( $sot_ready ) ) {
// all tables in db
$tables = PMA_DBI_get_tables_full( $db );
}
-
+
if ( $cfg['ShowTooltip'] ) {
foreach ( $tables as $each_table ) {
fillTooltip( $tooltip_truename, $tooltip_aliasname, $each_table );
diff --git a/libraries/db_links.inc.php b/libraries/db_links.inc.php
index 9ccd5b173..c06eb2ec9 100644
--- a/libraries/db_links.inc.php
+++ b/libraries/db_links.inc.php
@@ -1,6 +1,6 @@
= 50002 ) {
$url_query .= '&goto=db_structure.php';
-
+
$routines = PMA_DBI_fetch_result('SELECT SPECIFIC_NAME,ROUTINE_NAME,ROUTINE_TYPE,DTD_IDENTIFIER FROM information_schema.ROUTINES WHERE ROUTINE_SCHEMA= \'' . PMA_sqlAddslashes($db,true) . '\';');
if ($routines) {
@@ -23,7 +23,7 @@ if ( PMA_MYSQL_INT_VERSION >= 50002 ) {
$strRoutineReturnType);
$ct=0;
$delimiter = '//';
- foreach ($routines as $routine) {
+ foreach ($routines as $routine) {
$drop_and_create = '\'DROP ' . $routine['ROUTINE_TYPE'] . ' ' . PMA_backquote($routine['SPECIFIC_NAME']) . $delimiter . "\n"
. 'CREATE ' . $routine['ROUTINE_TYPE'] . ' ' . PMA_backquote($routine['SPECIFIC_NAME']) . '()' . "\n" . '\'';
@@ -53,7 +53,7 @@ if ( PMA_MYSQL_INT_VERSION >= 50002 ) {
%s |
%s |
%s |
- %s |
+ %s |
%s |
%s |
',
diff --git a/libraries/db_table_exists.lib.php b/libraries/db_table_exists.lib.php
index b8e8e4191..dc95b7ce6 100644
--- a/libraries/db_table_exists.lib.php
+++ b/libraries/db_table_exists.lib.php
@@ -1,6 +1,6 @@
'
.sprintf( $GLOBALS['strCantLoad'], 'DBG' )
- .' '
+ .' '
.$GLOBALS['strDocu'] . ''
.'';
} else {
diff --git a/libraries/dbi/mysql.dbi.lib.php b/libraries/dbi/mysql.dbi.lib.php
index 187410faf..4a77318ee 100644
--- a/libraries/dbi/mysql.dbi.lib.php
+++ b/libraries/dbi/mysql.dbi.lib.php
@@ -1,11 +1,14 @@
' .
- ( $cfg['ReplaceHelpImg'] ?
+ ( $cfg['ReplaceHelpImg'] ?
'
' :
'(*)' ) . '';
if ($use_fieldset) {
diff --git a/libraries/display_tbl.lib.php b/libraries/display_tbl.lib.php
index 1e4a86d63..a96773dce 100644
--- a/libraries/display_tbl.lib.php
+++ b/libraries/display_tbl.lib.php
@@ -1,6 +1,6 @@
// - bugfix for select all checkboxes
diff --git a/libraries/engines/bdb.lib.php b/libraries/engines/bdb.lib.php
index dd33c8c4c..2b37e1b22 100644
--- a/libraries/engines/bdb.lib.php
+++ b/libraries/engines/bdb.lib.php
@@ -1,7 +1,12 @@
diff --git a/libraries/engines/innodb.lib.php b/libraries/engines/innodb.lib.php
index dcb6bc7a3..87c8b8abc 100644
--- a/libraries/engines/innodb.lib.php
+++ b/libraries/engines/innodb.lib.php
@@ -1,7 +1,12 @@
-
+
diff --git a/libraries/export/htmlword.php b/libraries/export/htmlword.php
index dfa0bd215..43316cab9 100644
--- a/libraries/export/htmlword.php
+++ b/libraries/export/htmlword.php
@@ -1,6 +1,6 @@
-
+
');
}
diff --git a/libraries/export/latex.php b/libraries/export/latex.php
index b1e046ae0..8e3b4a4f1 100644
--- a/libraries/export/latex.php
+++ b/libraries/export/latex.php
@@ -1,6 +1,6 @@
$definition) {
$tmp[] = PMA_backquote($column_name) . ' ' . $definition['Type'] . $crlf;
}
- $create_query .= implode(',', $tmp) . ');';
+ $create_query .= implode(',', $tmp) . ');';
return($create_query);
}
@@ -528,11 +529,11 @@ function PMA_getTableDef($db, $table, $crlf, $error_url, $show_dates = false)
if (strpos($sql_lines[$j], 'CONSTRAINT') === FALSE) {
$str_tmp = preg_replace('/(FOREIGN[\s]+KEY)/', 'ADD \1', $sql_lines[$j]);
$sql_constraints_query .= $str_tmp;
- $sql_constraints .= $str_tmp;
+ $sql_constraints .= $str_tmp;
} else {
$str_tmp = preg_replace('/(CONSTRAINT)/', 'ADD \1', $sql_lines[$j]);
$sql_constraints_query .= $str_tmp;
- $sql_constraints .= $str_tmp;
+ $sql_constraints .= $str_tmp;
}
$first = FALSE;
} else {
@@ -552,7 +553,7 @@ function PMA_getTableDef($db, $table, $crlf, $error_url, $show_dates = false)
// remove a possible "AUTO_INCREMENT = value" clause
// that could be there starting with MySQL 5.0.24
$schema_create = preg_replace('/AUTO_INCREMENT\s*=\s*([0-9])+/', '', $schema_create);
-
+
$schema_create .= $auto_increment;
PMA_DBI_free_result($result);
@@ -656,7 +657,7 @@ function PMA_getTableComments($db, $table, $crlf, $do_relation = false, $do_comm
* @param boolean whether to include relation comments
* @param boolean whether to include column comments
* @param boolean whether to include mime comments
- * @param string 'stand_in', 'create_table', 'create_view'
+ * @param string 'stand_in', 'create_table', 'create_view'
*
* @return bool Whether it suceeded
*
diff --git a/libraries/export/xls.php b/libraries/export/xls.php
index d5f6c3179..58cb680e8 100644
--- a/libraries/export/xls.php
+++ b/libraries/export/xls.php
@@ -1,6 +1,6 @@
'yml',
'mime_type' => 'text/yaml',
'force_file' => true,
- 'options' => array(
+ 'options' => array(
array('type' => 'hidden', 'name' => 'data'),
),
'options_text' => 'strOptions',
@@ -51,7 +52,7 @@ function PMA_exportFooter()
*/
function PMA_exportHeader()
{
- return TRUE;
+ return TRUE;
}
/**
@@ -119,14 +120,14 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query)
}
unset($i);
- $cnt = 0;
- $buffer = '';
+ $cnt = 0;
+ $buffer = '';
while ($record = PMA_DBI_fetch_row($result)) {
- $cnt++;
- $buffer = $cnt . ":$crlf";
+ $cnt++;
+ $buffer = $cnt . ":$crlf";
for ($i = 0; $i < $columns_cnt; $i++) {
if ( isset($record[$i]) && !is_null($record[$i])) {
- $buffer .= ' ' . $columns[$i] . ': ' . htmlspecialchars($record[$i]) . $crlf;
+ $buffer .= ' ' . $columns[$i] . ': ' . htmlspecialchars($record[$i]) . $crlf;
}
}
diff --git a/libraries/file_listing.php b/libraries/file_listing.php
index d54b29aba..2a6d71c7b 100644
--- a/libraries/file_listing.php
+++ b/libraries/file_listing.php
@@ -1,6 +1,6 @@
+ * @author bwiberg Björn Wiberg
*/
function PMA_aix_iconv_wrapper($in_charset, $out_charset, $str) {
diff --git a/libraries/import/docsql.php b/libraries/import/docsql.php
index 06e12379a..627104937 100644
--- a/libraries/import/docsql.php
+++ b/libraries/import/docsql.php
@@ -1,6 +1,6 @@
0 && $GLOBALS['cfgRe
'text' => 'strDocSQL', // text to be displayed as choice
'extension' => '', // extension this plugin can handle
'options' => array( // array of options for your plugin (optional)
- array('type' => 'text', 'name' => 'table', 'text' => 'strTableName'),
+ array('type' => 'text', 'name' => 'table', 'text' => 'strTableName'),
),
'options_text' => 'strDocSQLOptions', // text to describe plugin options (must be set if options are used)
);
@@ -56,7 +56,7 @@ if ($plugin_param == 'database' && $GLOBALS['num_tables'] > 0 && $GLOBALS['cfgRe
if (!empty($inf[2]) && strlen(trim($inf[2])) > 0) {
$for = explode('->', $inf[2]);
$qry = '
- INSERT INTO
+ INSERT INTO
' . PMA_backquote($GLOBALS['cfgRelation']['db']) . '.' . PMA_backquote($GLOBALS['cfgRelation']['relation']) . '
( master_db, master_table, master_field, foreign_db, foreign_table, foreign_field)
VALUES (
diff --git a/libraries/import/ldi.php b/libraries/import/ldi.php
index 77584b4c6..a7d0dbc62 100644
--- a/libraries/import/ldi.php
+++ b/libraries/import/ldi.php
@@ -1,6 +1,6 @@
diff --git a/libraries/import/sql.php b/libraries/import/sql.php
index 7f7c2f044..9c4eea1c6 100644
--- a/libraries/import/sql.php
+++ b/libraries/import/sql.php
@@ -1,7 +1,6 @@
array(
diff --git a/libraries/ip_allow_deny.lib.php b/libraries/ip_allow_deny.lib.php
index fd5d8e87b..4ae321112 100644
--- a/libraries/ip_allow_deny.lib.php
+++ b/libraries/ip_allow_deny.lib.php
@@ -1,6 +1,6 @@
'\\\\',
- '\'' => '\\\'',
- "\n" => '\n',
- "\r" => '\r')));
+ return preg_replace('@ '\\\\',
+ '\'' => '\\\'',
+ "\n" => '\n',
+ "\r" => '\r')));
}
?>
diff --git a/libraries/kanji-encoding.lib.php b/libraries/kanji-encoding.lib.php
index 20d3404fa..5aba38f3b 100644
--- a/libraries/kanji-encoding.lib.php
+++ b/libraries/kanji-encoding.lib.php
@@ -1,6 +1,6 @@
', $full_query);
}
break;
-
+
case 'drop_fld':
if ($full_query == '') {
$full_query .= 'ALTER TABLE '
@@ -302,7 +302,7 @@ elseif ($mult_btn == $strYes) {
} // end while
PMA_DBI_free_result($result);
}
-
+
for ($i = 0; $i < $selected_cnt; $i++) {
switch ($query_type) {
case 'row_delete':
@@ -399,7 +399,7 @@ elseif ($mult_btn == $strYes) {
// All "DROP TABLE", "DROP FIELD", "OPTIMIZE TABLE" and "REPAIR TABLE"
// statements will be run at once below
- if ($run_parts) {
+ if ($run_parts) {
$sql_query .= $a_query . ';' . "\n";
if ($query_type != 'drop_db') {
PMA_DBI_select_db($db);
diff --git a/libraries/mysql_charsets.lib.php b/libraries/mysql_charsets.lib.php
index 73d8ab0b9..d2beb0507 100644
--- a/libraries/mysql_charsets.lib.php
+++ b/libraries/mysql_charsets.lib.php
@@ -1,6 +1,6 @@
= 40100){
diff --git a/libraries/navigation_header.inc.php b/libraries/navigation_header.inc.php
index 99c838319..39b6e48b8 100644
--- a/libraries/navigation_header.inc.php
+++ b/libraries/navigation_header.inc.php
@@ -1,6 +1,6 @@
page;
foreach ($this->Alias AS $alias => $value) {
for ($n = 1;$n <= $nb;$n++)
- $this->pages[$n]=str_replace($alias, $value, $this->pages[$n]);
+ $this->pages[$n]=str_replace($alias, $value, $this->pages[$n]);
}
}
parent::_putpages();
diff --git a/phpinfo.php b/phpinfo.php
index add1f181e..29fbb20c9 100644
--- a/phpinfo.php
+++ b/phpinfo.php
@@ -1,6 +1,6 @@
\n";
// return $GLOBALS['PMD']; // many bases // not use ??????
}
function get_tab_info() // PMA_DBI //PMA_backquote
-{
+{
global $db;
PMA_DBI_select_db($db);
$tab_column = array();
@@ -63,7 +63,7 @@ function get_tab_info() // PMA_DBI //PMA_backquote
$fields_rs = PMA_DBI_query('SHOW FULL FIELDS FROM '.PMA_backquote($GLOBALS['PMD']["TABLE_NAME_SMALL"][$i]), NULL, PMA_DBI_QUERY_STORE);
$fields_cnt = PMA_DBI_num_rows($fields_rs);
$j=0;
- while ($row = PMA_DBI_fetch_assoc($fields_rs)) {
+ while ($row = PMA_DBI_fetch_assoc($fields_rs)) {
$tab_column[$GLOBALS['PMD']['TABLE_NAME'][$i]]['COLUMN_ID'][$j] = $j;
$tab_column[$GLOBALS['PMD']['TABLE_NAME'][$i]]['COLUMN_NAME'][$j] = $row['Field'];
$tab_column[$GLOBALS['PMD']['TABLE_NAME'][$i]]['TYPE'][$j] = $row['Type'];
@@ -85,7 +85,7 @@ function get_script_contr() {
//echo "
internal ".$db." - ".$val[0]." - ";
//print_r($row );
if ($row !== false) {
- foreach ($row as $field => $value) {
+ foreach ($row as $field => $value) {
$con['C_NAME'][$i] = '';
$con['DTN'][$i] = urlencode($db . "." . $val[0]);
$con['DCN'][$i] = urlencode($field);
@@ -98,7 +98,7 @@ function get_script_contr() {
//echo "
INNO ";
//print_r($row );
if ($row !== false) {
- foreach ($row as $field => $value) {
+ foreach ($row as $field => $value) {
$con['C_NAME'][$i] = '';
$con['DTN'][$i] = urlencode($db.".".$val[0]);
$con['DCN'][$i] = urlencode($field);
@@ -107,8 +107,8 @@ function get_script_contr() {
$i++;
}
}
- }
-
+ }
+
$ti = 0;
$script_contr = "
diff --git a/tbl_sql.php b/tbl_sql.php
index a022f2054..fa76ae230 100644
--- a/tbl_sql.php
+++ b/tbl_sql.php
@@ -1,6 +1,6 @@