diff options
author | Michal Čihař <michal@cihar.com> | 2006-10-25 16:25:01 +0400 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2006-10-25 16:25:01 +0400 |
commit | cac4247057ce6811f920d10661fc7ca80e121e33 (patch) | |
tree | 002e8a16f374c439bd4fd8e731a2c95c0af5b77b /db_sql.php | |
parent | ad06b4a9914572939006e2c6ab5e2c4f08f0c0cc (diff) |
Rename db_* files to drop useless _details part.
Diffstat (limited to 'db_sql.php')
-rw-r--r-- | db_sql.php | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/db_sql.php b/db_sql.php new file mode 100644 index 0000000000..618b7eae3d --- /dev/null +++ b/db_sql.php @@ -0,0 +1,34 @@ +<?php +/* $Id$ */ +// vim: expandtab sw=4 ts=4 sts=4: + +require_once('./libraries/common.lib.php'); + +/** + * Runs common work + */ +require('./libraries/db_common.inc.php'); +require_once './libraries/sql_query_form.lib.php'; + +/** + * Gets informations about the database and, if it is empty, move to the + * "db_structure.php" script where table can be created + */ +require('./libraries/db_info.inc.php'); +if ( $num_tables == 0 && empty( $db_query_force ) ) { + $sub_part = ''; + $is_info = TRUE; + require './db_structure.php'; + exit(); +} + +/** + * Query box, bookmark, insert data from textfile + */ +PMA_sqlQueryForm(); + +/** + * Displays the footer + */ +require_once './libraries/footer.inc.php'; +?> |