home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 February (DVD) / PCWorld_2008-02_DVD.iso / v cisle / PHP / PHP.exe / xampp-win32-1.6.5-installer.exe / phpMyAdmin / db_sql.php < prev    next >
Encoding:
PHP Script  |  2007-12-20  |  852 b   |  41 lines

  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4.  *
  5.  * @version $Id: db_sql.php 10240 2007-04-01 11:02:46Z cybot_tm $
  6.  */
  7.  
  8. /**
  9.  *
  10.  */
  11. require_once './libraries/common.inc.php';
  12.  
  13. /**
  14.  * Runs common work
  15.  */
  16. require './libraries/db_common.inc.php';
  17. require_once './libraries/sql_query_form.lib.php';
  18.  
  19. /**
  20.  * Gets informations about the database and, if it is empty, move to the
  21.  * "db_structure.php" script where table can be created
  22.  */
  23. require './libraries/db_info.inc.php';
  24. if ($num_tables == 0 && empty($db_query_force)) {
  25.     $sub_part   = '';
  26.     $is_info    = TRUE;
  27.     require './db_structure.php';
  28.     exit();
  29. }
  30.  
  31. /**
  32.  * Query box, bookmark, insert data from textfile
  33.  */
  34. PMA_sqlQueryForm(true, false, isset($_REQUEST['delimiter']) ? $_REQUEST['delimiter'] : ';');
  35.  
  36. /**
  37.  * Displays the footer
  38.  */
  39. require_once './libraries/footer.inc.php';
  40. ?>
  41.