250 |
kaklik |
1 |
<?php |
|
|
2 |
/* $Id: db_details.php,v 2.23 2005/11/24 09:12:16 nijel Exp $ */ |
|
|
3 |
// vim: expandtab sw=4 ts=4 sts=4: |
|
|
4 |
|
|
|
5 |
require_once('./libraries/common.lib.php'); |
|
|
6 |
|
|
|
7 |
/** |
|
|
8 |
* Runs common work |
|
|
9 |
*/ |
|
|
10 |
require('./libraries/db_details_common.inc.php'); |
|
|
11 |
require_once './libraries/sql_query_form.lib.php'; |
|
|
12 |
|
|
|
13 |
/** |
|
|
14 |
* Gets informations about the database and, if it is empty, move to the |
|
|
15 |
* "db_details_structure.php" script where table can be created |
|
|
16 |
*/ |
|
|
17 |
require('./libraries/db_details_db_info.inc.php'); |
|
|
18 |
if ( $num_tables == 0 && empty( $db_query_force ) ) { |
|
|
19 |
$sub_part = ''; |
|
|
20 |
$is_info = TRUE; |
|
|
21 |
require './db_details_structure.php'; |
|
|
22 |
exit(); |
|
|
23 |
} |
|
|
24 |
|
|
|
25 |
/** |
|
|
26 |
* Query box, bookmark, insert data from textfile |
|
|
27 |
*/ |
|
|
28 |
PMA_sqlQueryForm(); |
|
|
29 |
|
|
|
30 |
/** |
|
|
31 |
* Displays the footer |
|
|
32 |
*/ |
|
|
33 |
require_once './libraries/footer.inc.php'; |
|
|
34 |
?> |