diff --git a/db_structure.php b/db_structure.php index f5b5639ae..479980e31 100644 --- a/db_structure.php +++ b/db_structure.php @@ -12,7 +12,6 @@ require_once './libraries/common.inc.php'; require_once './libraries/Table.class.php'; -$GLOBALS['js_include'][] = 'jquery/jquery-1.4.2-min.js'; $GLOBALS['js_include'][] = 'jquery/jquery-ui-1.8.custom.min.js'; /** @@ -195,7 +194,7 @@ foreach ($tables as $keyname => $each_table) { $each_table['Rows'] = PMA_Table::countRecords($db, $each_table['Name']); } - + if ($is_show_stats) { $tblsize = doubleval($each_table['Data_length']) + doubleval($each_table['Index_length']); $sum_size += $tblsize; @@ -348,15 +347,15 @@ foreach ($tables as $keyname => $each_table) { 0) - || (strlen(array_search($db, $server_slave_Do_DB)) > 0) + if ((strlen(array_search($truename, $server_slave_Do_Table)) > 0) + || (strlen(array_search($db, $server_slave_Do_DB)) > 0) || (count($server_slave_Do_DB) == 1 && count($server_slave_Ignore_DB) == 1) ) { $do = true; diff --git a/main.php b/main.php index f942b4015..376ee5545 100644 --- a/main.php +++ b/main.php @@ -12,7 +12,6 @@ define('PMA_COLORPICKER', true); require_once './libraries/common.inc.php'; -$GLOBALS['js_include'][] = 'jquery/jquery-1.4.2-min.js'; $GLOBALS['js_include'][] = 'colorpicker/js/colorpicker.js'; $GLOBALS['js_include'][] = 'main_custom_color.js'; diff --git a/sql.php b/sql.php index 9234af8b9..ce9a0d2c2 100644 --- a/sql.php +++ b/sql.php @@ -15,7 +15,6 @@ require_once './libraries/Table.class.php'; require_once './libraries/check_user_privileges.lib.php'; require_once './libraries/bookmark.lib.php'; -$GLOBALS['js_include'][] = 'jquery/jquery-1.4.2-min.js'; $GLOBALS['js_include'][] = 'jquery/jquery-ui-1.8.custom.min.js'; /** @@ -296,7 +295,7 @@ if (isset($GLOBALS['show_as_php']) || !empty($GLOBALS['validatequery'])) { } // fisharebest: release the session lock, otherwise we won't be able to run other - // scripts until the query has finished (which could take a very long time). + // scripts until the query has finished (which could take a very long time). // Note: footer.inc.php writes debug info to $_SESSION, so debuggers will have to wait. if (empty($_SESSION['debug'])) { session_write_close(); @@ -388,7 +387,7 @@ if (isset($GLOBALS['show_as_php']) || !empty($GLOBALS['validatequery'])) { // If we are "just browsing", there is only one table, // and no WHERE clause (or just 'WHERE 1 '), - // we do a quick count (which uses MaxExactCount) because + // we do a quick count (which uses MaxExactCount) because // SQL_CALC_FOUND_ROWS is not quick on large InnoDB tables // However, do not count again if we did it previously diff --git a/tbl_replace.php b/tbl_replace.php index 3167baa10..5e7b97775 100644 --- a/tbl_replace.php +++ b/tbl_replace.php @@ -96,7 +96,7 @@ if (isset($_REQUEST['after_insert']) // must find a unique condition based on unique key, // not a combination of all fields list($unique_condition, $clause_is_unique) = PMA_getUniqueCondition($res, count($meta), $meta, $row, true); - if (! empty($unique_condition)) { + if (! empty($unique_condition)) { $_SESSION['edit_next'] = $unique_condition; } unset($unique_condition, $clause_is_unique); @@ -346,7 +346,7 @@ if (! empty($GLOBALS['sql_query'])) { $return_to_sql_query = $GLOBALS['sql_query']; } $GLOBALS['sql_query'] = implode('; ', $query) . ';'; -// to ensure that the query is displayed in case of +// to ensure that the query is displayed in case of // "insert as new row" and then "insert another new row" $GLOBALS['display_query'] = $GLOBALS['sql_query']; @@ -431,7 +431,6 @@ if (isset($return_to_sql_query)) { $GLOBALS['js_include'][] = 'tbl_change.js'; $GLOBALS['js_include'][] = 'functions.js'; // in case we call sql.php which needs those: -$GLOBALS['js_include'][] = 'jquery/jquery-1.4.2-min.js'; $GLOBALS['js_include'][] = 'jquery/jquery-ui-1.8.custom.min.js'; $active_page = $goto_include; diff --git a/tbl_select.php b/tbl_select.php index 0fbd24c77..8d23c95ae 100644 --- a/tbl_select.php +++ b/tbl_select.php @@ -19,7 +19,6 @@ require_once './libraries/relation.lib.php'; // foreign keys require_once './libraries/mysql_charsets.lib.php'; $GLOBALS['js_include'][] = 'tbl_change.js'; -$GLOBALS['js_include'][] = 'jquery/jquery-1.4.2-min.js'; $GLOBALS['js_include'][] = 'jquery/jquery-ui-1.8.custom.min.js'; if ($GLOBALS['cfg']['PropertiesIconic'] == true) { @@ -341,8 +340,8 @@ else { $param = PMA_backquote($param); $sql_query .= implode(', ', $param); } // end if - - // avoid a loop, for example when $cfg['DefaultTabTable'] is set + + // avoid a loop, for example when $cfg['DefaultTabTable'] is set // to 'tbl_select.php' unset($param); diff --git a/tbl_structure.php b/tbl_structure.php index 0f3aae294..ba8046420 100644 --- a/tbl_structure.php +++ b/tbl_structure.php @@ -14,7 +14,6 @@ require_once './libraries/common.inc.php'; require_once './libraries/mysql_charsets.lib.php'; require_once './libraries/relation.lib.php'; -$GLOBALS['js_include'][] = 'jquery/jquery-1.4.2-min.js'; $GLOBALS['js_include'][] = 'jquery/jquery-ui-1.8.custom.min.js'; /** @@ -117,7 +116,7 @@ foreach (PMA_Index::getFromTable($table, $db) as $index) { $columns = $index->getColumns(); foreach ($columns as $column_name => $dummy) { $columns_with_unique_index[$column_name] = 1; - } + } } } unset($index, $columns, $column_name, $dummy); @@ -519,20 +518,20 @@ if (! $tbl_is_view && ! $db_is_information_schema) { echo $strStructPropose; ?>'; - - if ($cfg['PropertiesIconic']) + + if ($cfg['PropertiesIconic']) { echo '' . $strTrackingTrackTable . ' '; } echo $strTrackingTrackTable . ''; } ?> - +