3 // vim: expandtab sw=4 ts=4 sts=4:
7 * Gets some core libraries
9 require('./libraries/grab_globals.lib.php3');
10 $js_to_run = 'functions.js';
11 require('./header.inc.php3');
15 * Defines the url to return to in case of error in a sql statement
17 $err_url = 'main.php3'
19 . '&convcharset=' . $convcharset
20 . '&server=' . $server;
24 * Ensures the db name is valid
26 if (PMA_MYSQL_INT_VERSION
< 32306) {
27 PMA_checkReservedWords($db, $err_url);
32 * Executes the db creation sql query
34 $local_query = 'CREATE DATABASE ' . PMA_backquote($db);
35 $result = PMA_mysql_query('CREATE DATABASE ' . PMA_backquote($db)) or PMA_mysqlDie('', $local_query, FALSE, $err_url);
39 * Displays the result and moves back to the calling page
41 $message = $strDatabase . ' ' . htmlspecialchars($db) . ' ' . $strHasBeenCreated;
42 require('./db_details.php3');