コード例 #1
0
ファイル: common.inc.php プロジェクト: mi-squared/openemr
 /**
  * Charset information
  */
 if (!PMA_DRIZZLE) {
     include_once './libraries/mysql_charsets.inc.php';
 }
 if (!isset($mysql_charsets)) {
     $mysql_charsets = array();
     $mysql_collations_flat = array();
 }
 /**
  * Initializes the SQL parsing library.
  */
 include_once SQL_PARSER_AUTOLOAD;
 // Loads closest context to this version.
 SqlParser\Context::loadClosest((PMA_DRIZZLE ? 'Drizzle' : 'MySql') . PMA_MYSQL_INT_VERSION);
 // Sets the default delimiter (if specified).
 if (!empty($_REQUEST['sql_delimiter'])) {
     SqlParser\Lexer::$DEFAULT_DELIMITER = $_REQUEST['sql_delimiter'];
 }
 // TODO: Set SQL modes too.
 /**
  * the PMA_List_Database class
  */
 include_once './libraries/PMA.php';
 $pma = new PMA();
 $pma->userlink = $userlink;
 $pma->controllink = $controllink;
 /**
  * some resetting has to be done when switching servers
  */
コード例 #2
0
ファイル: common.inc.php プロジェクト: nervo/phpmyadmin
  */
 $GLOBALS['PMA_Types'] = new PMA_Types_MySQL();
 /**
  * Charset information
  */
 include_once './libraries/mysql_charsets.inc.php';
 if (!isset($mysql_charsets)) {
     $mysql_charsets = array();
     $mysql_collations_flat = array();
 }
 /**
  * Initializes the SQL parsing library.
  */
 include_once SQL_PARSER_AUTOLOAD;
 // Loads closest context to this version.
 SqlParser\Context::loadClosest('MySql' . PMA_MYSQL_INT_VERSION);
 // Sets the default delimiter (if specified).
 if (!empty($_REQUEST['sql_delimiter'])) {
     SqlParser\Lexer::$DEFAULT_DELIMITER = $_REQUEST['sql_delimiter'];
 }
 // TODO: Set SQL modes too.
 /**
  * the PMA_List_Database class
  */
 include_once './libraries/PMA.php';
 $pma = new PMA();
 $pma->userlink = $userlink;
 $pma->controllink = $controllink;
 /**
  * some resetting has to be done when switching servers
  */