~hexmode/+junk/main

« back to all changes in this revision

Viewing changes to install-files/apps/phpmyadmin2.10.1/db_sql.php

  • Committer: Mark A. Hershberger
  • Date: 2008-01-05 19:38:56 UTC
  • Revision ID: hershberger@spawn-xp-20080105193856-6rnzgwa4nehue3qj
initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
/* $Id: db_sql.php 9602 2006-10-25 12:25:01Z nijel $ */
 
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_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_structure.php" script where table can be created
 
16
 */
 
17
require('./libraries/db_info.inc.php');
 
18
if ( $num_tables == 0 && empty( $db_query_force ) ) {
 
19
    $sub_part   = '';
 
20
    $is_info    = TRUE;
 
21
    require './db_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
?>