home *** CD-ROM | disk | FTP | other *** search
/ Cricao de Sites - 650 Layouts Prontos / WebMasters.iso / Servidores / xampp-win32-1.6.7-installer.exe / phpMyAdmin / libraries / tbl_common.php < prev    next >
Encoding:
PHP Script  |  2008-06-23  |  1.0 KB  |  48 lines

  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4.  *
  5.  * @version $Id: tbl_common.php 11326 2008-06-17 21:32:48Z lem9 $
  6.  */
  7. if (! defined('PHPMYADMIN')) {
  8.     exit;
  9. }
  10.  
  11. /**
  12.  * Gets some core libraries
  13.  */
  14. require_once './libraries/common.inc.php';
  15. require_once './libraries/bookmark.lib.php';
  16.  
  17. // Check parameters
  18. PMA_checkParameters(array('db', 'table'));
  19.  
  20. if (PMA_MYSQL_INT_VERSION >= 50002 && $db === 'information_schema') {
  21.     $db_is_information_schema = true;
  22. } else {
  23.     $db_is_information_schema = false;
  24. }
  25.  
  26. /**
  27.  * Set parameters for links
  28.  * @deprecated
  29.  */
  30. $url_query = PMA_generate_common_url($db, $table);
  31.  
  32. $url_params['db']    = $db;
  33. $url_params['table'] = $table;
  34.  
  35. /**
  36.  * Defines the urls to return to in case of error in a sql statement
  37.  */
  38. $err_url_0 = $cfg['DefaultTabDatabase'] . PMA_generate_common_url(array('db' => $db,));
  39. $err_url   = $cfg['DefaultTabTable'] . PMA_generate_common_url($url_params);
  40.  
  41.  
  42. /**
  43.  * Ensures the database and the table exist (else move to the "parent" script)
  44.  */
  45. require_once './libraries/db_table_exists.lib.php';
  46.  
  47. ?>
  48.