From cac4247057ce6811f920d10661fc7ca80e121e33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 25 Oct 2006 12:25:01 +0000 Subject: [PATCH] Rename db_* files to drop useless _details part. --- ChangeLog | 4 +++- Documentation.html | 6 ++--- chk_rel.php | 2 +- db_datadict.php | 2 +- db_details_export.php => db_export.php | 10 ++++----- db_import.php | 2 +- ...ls_importdocsql.php => db_importdocsql.php | 2 +- db_operations.php | 4 ++-- db_printview.php | 2 +- db_details_qbe.php => db_qbe.php | 10 ++++----- db_search.php | 6 ++--- db_details.php => db_sql.php | 6 ++--- db_details_structure.php => db_structure.php | 12 +++++----- export.php | 22 +++++++++---------- import.php | 2 +- libraries/common.lib.php | 14 ++++++------ libraries/config.default.php | 8 +++---- ...tails_common.inc.php => db_common.inc.php} | 0 libraries/db_info.inc.php | 2 +- ...details_links.inc.php => db_links.inc.php} | 10 ++++----- libraries/db_table_exists.lib.php | 4 ++-- libraries/mult_submits.inc.php | 4 ++-- libraries/sql_query_form.lib.php | 6 ++--- libraries/tbl_links.inc.php | 2 +- pdf_pages.php | 2 +- pdf_schema.php | 2 +- querywindow.php | 2 +- scripts/setup.php | 2 +- server_export.php | 2 +- sql.php | 16 +++++++------- tbl_change.php | 6 ++--- tbl_indexes.php | 4 ++-- tbl_printview.php | 2 +- tbl_replace.php | 4 ++-- 34 files changed, 93 insertions(+), 91 deletions(-) rename db_details_export.php => db_export.php (89%) rename db_details_importdocsql.php => db_importdocsql.php (98%) rename db_details_qbe.php => db_qbe.php (99%) rename db_details.php => db_sql.php (78%) rename db_details_structure.php => db_structure.php (98%) rename libraries/{db_details_common.inc.php => db_common.inc.php} (100%) rename libraries/{db_details_links.inc.php => db_links.inc.php} (92%) diff --git a/ChangeLog b/ChangeLog index cf101fbdb..6f79cacda 100644 --- a/ChangeLog +++ b/ChangeLog @@ -9,7 +9,9 @@ $HeadURL$ * Documentation.html, libraries/tbl_properties.inc.php, libraries/config.default.php: Allow to edit small number of fields vertically and lange number horizontally (RFE #1581773). - * [too much files]: Rename tbl_* files to drop useless _properties part. + * [too much files]: + - Rename tbl_* files to drop useless _properties part. + - Rename db_* files to drop useless _details part. 2006-10-19 Marc Delisle * libraries/common.lib.php, /database_interface.lib.php,/session.inc.php: diff --git a/Documentation.html b/Documentation.html index 259c4b6d8..ef8d1195f 100644 --- a/Documentation.html +++ b/Documentation.html @@ -1335,8 +1335,8 @@ ALTER TABLE `pma_column_comments`
$cfg['DefaultTabDatabase'] string
Defines the tab displayed by default on database view. Possible - values: "db_details_structure.php", - "db_details.php" or "db_search.php".
+ values: "db_structure.php", + "db_sql.php" or "db_search.php".
$cfg['DefaultTabTable'] string
Defines the tab displayed by default on table view. Possible @@ -2550,7 +2550,7 @@ ALTER TABLE `pma_column_comments`

1.27 I get empty page when I want to view huge page (eg. - db_details_structure.php with plenty of tables).

+ db_structure.php with plenty of tables).

This is a PHP bug that occur when GZIP output buffering is enabled. If you turn off it (by diff --git a/chk_rel.php b/chk_rel.php index 10fcdde47..51d6a4afe 100644 --- a/chk_rel.php +++ b/chk_rel.php @@ -7,7 +7,7 @@ * Gets some core libraries */ require_once('./libraries/common.lib.php'); -require_once('./libraries/db_details_common.inc.php'); +require_once('./libraries/db_common.inc.php'); require_once('./libraries/relation.lib.php'); diff --git a/db_datadict.php b/db_datadict.php index 449a7e529..25ce6badb 100644 --- a/db_datadict.php +++ b/db_datadict.php @@ -31,7 +31,7 @@ PMA_checkParameters(array('db')); if (isset($table)) { $err_url = 'tbl_sql.php?' . PMA_generate_common_url($db, $table); } else { - $err_url = 'db_details.php?' . PMA_generate_common_url($db); + $err_url = 'db_sql.php?' . PMA_generate_common_url($db); } if ($cfgRelation['commwork']) { diff --git a/db_details_export.php b/db_export.php similarity index 89% rename from db_details_export.php rename to db_export.php index 40c6f61c5..cdecaba5d 100644 --- a/db_details_export.php +++ b/db_export.php @@ -4,7 +4,7 @@ /** * dumps a database * - * @uses libraries/db_details_common.inc.php + * @uses libraries/db_common.inc.php * @uses libraries/db_info.inc.php * @uses libraries/display_export.lib.php * @uses $tables from libraries/db_info.inc.php @@ -16,8 +16,8 @@ require_once('./libraries/common.lib.php'); $sub_part = '_export'; -require_once('./libraries/db_details_common.inc.php'); -$url_query .= '&goto=db_details_export.php'; +require_once('./libraries/db_common.inc.php'); +$url_query .= '&goto=db_export.php'; require_once('./libraries/db_info.inc.php'); /** @@ -55,9 +55,9 @@ foreach ( $tables as $each_table ) { $multi_values .= "\n"; $multi_values .= ''; -$checkall_url = 'db_details_export.php?' +$checkall_url = 'db_export.php?' . PMA_generate_common_url( $db ) - . '&goto=db_details_export.php'; + . '&goto=db_export.php'; $multi_values .= '
' . $strSelectAll . ' diff --git a/db_import.php b/db_import.php index 2a84d6b09..0d1ab19b4 100644 --- a/db_import.php +++ b/db_import.php @@ -7,7 +7,7 @@ require_once('./libraries/common.lib.php'); /** * Gets tables informations and displays top links */ -require('./libraries/db_details_common.inc.php'); +require('./libraries/db_common.inc.php'); require('./libraries/db_info.inc.php'); $import_type = 'database'; diff --git a/db_details_importdocsql.php b/db_importdocsql.php similarity index 98% rename from db_details_importdocsql.php rename to db_importdocsql.php index 8701b976d..325af7175 100644 --- a/db_details_importdocsql.php +++ b/db_importdocsql.php @@ -207,7 +207,7 @@ if (isset($cfg['docSQLDir']) && !empty($cfg['docSQLDir'])) { */ ?> -

> + > diff --git a/db_operations.php b/db_operations.php index 3c1094eb5..9d193405c 100644 --- a/db_operations.php +++ b/db_operations.php @@ -180,7 +180,7 @@ if ($cfgRelation['commwork'] && isset($db_comment) && $db_comment == 'true') { * because there is no table in the database ($is_info is true) */ if (empty($is_info)) { - require './libraries/db_details_common.inc.php'; + require './libraries/db_common.inc.php'; $url_query .= '&goto=db_operations.php'; // Gets the database structure @@ -475,7 +475,7 @@ if ($num_tables > 0 * import docSQL files */ echo '