Blob upload via pre-uploaded (FTP) files in $cfg['UploadDir'].
[phpmyadmin/crack.git] / db_create.php3
blob6cd2d46057318558fd0f4e447ecc1240d6f359f1
1 <?php
2 /* $Id$ */
3 // vim: expandtab sw=4 ts=4 sts=4:
6 /**
7 * Gets some core libraries
8 */
9 require('./libraries/grab_globals.lib.php3');
10 $js_to_run = 'functions.js';
11 require('./header.inc.php3');
14 /**
15 * Defines the url to return to in case of error in a sql statement
17 $err_url = 'main.php3?' . PMA_generate_common_url();
19 /**
20 * Ensures the db name is valid
22 if (PMA_MYSQL_INT_VERSION < 32306) {
23 PMA_checkReservedWords($db, $err_url);
27 /**
28 * Executes the db creation sql query
30 $local_query = 'CREATE DATABASE ' . PMA_backquote($db);
31 $result = PMA_mysql_query('CREATE DATABASE ' . PMA_backquote($db)) or PMA_mysqlDie('', $local_query, FALSE, $err_url);
34 /**
35 * Displays the result and moves back to the calling page
37 $message = $strDatabase . ' ' . htmlspecialchars($db) . ' ' . $strHasBeenCreated;
38 require('./db_details.php3');