call user-defined default tab instead of hardcoded db_details.php3
This commit is contained in:
@@ -5,6 +5,11 @@ phpMyAdmin - Changelog
|
|||||||
$Id$
|
$Id$
|
||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
|
2003-07-11 Alexander M. Turek <rabus@users.sourceforge.net>
|
||||||
|
* db_create.php3:
|
||||||
|
- Display CREATE DATABASE query;
|
||||||
|
- Call user-defined default tab instead of hardcoded db_details.php3.
|
||||||
|
|
||||||
2003-07-10 Garvin Hicking <me@supergarv.de>
|
2003-07-10 Garvin Hicking <me@supergarv.de>
|
||||||
* libraries/display_tbl.lib.php3: Let the default function take
|
* libraries/display_tbl.lib.php3: Let the default function take
|
||||||
the honor to replace special strings, so that a non-default function
|
the honor to replace special strings, so that a non-default function
|
||||||
|
@@ -27,14 +27,14 @@ if (PMA_MYSQL_INT_VERSION < 32306) {
|
|||||||
/**
|
/**
|
||||||
* Executes the db creation sql query
|
* Executes the db creation sql query
|
||||||
*/
|
*/
|
||||||
$local_query = 'CREATE DATABASE ' . PMA_backquote($db);
|
$sql_query = 'CREATE DATABASE ' . PMA_backquote($db);
|
||||||
$result = PMA_mysql_query('CREATE DATABASE ' . PMA_backquote($db)) or PMA_mysqlDie('', $local_query, FALSE, $err_url);
|
$result = PMA_mysql_query('CREATE DATABASE ' . PMA_backquote($db)) or PMA_mysqlDie('', $sql_query, FALSE, $err_url);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Displays the result and moves back to the calling page
|
* Displays the result and calls default page
|
||||||
*/
|
*/
|
||||||
$message = $strDatabase . ' ' . htmlspecialchars($db) . ' ' . $strHasBeenCreated;
|
$message = $strDatabase . ' ' . htmlspecialchars($db) . ' ' . $strHasBeenCreated;
|
||||||
require('./db_details.php3');
|
require('./' . $cfg['DefaultTabDatabase']);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
Reference in New Issue
Block a user