26 require_once(
"../class/config.php");
29 "dbn" => array (
"post",
"string",
""),
34 if (!$quota->cancreate(
"mysql")) {
35 $msg->raise(
"ALERT",
"mysql", _(
"Can't create a database: your quota is over"));
36 include(
"sql_list.php");
40 $q=$quota->getquota(
"mysql");
43 $dbname=
$mem->user[
"login"].
"_".$dbn;
45 $dbname=
$mem->user[
"login"];
48 if($mysql->add_db($dbname)) {
49 $msg->raise(
"INFO",
"mysql", _(
"The database '%s' has been created."),$dbname);
52 header(
'Location: sql_getparam.php?dbname='.htmlentities($dbname));
getFields($fields, $requestOnly=false)
Get the Fields of the posted form from $_REQUEST or POST or GET and check their type.
if(! $quota->cancreate("mysql")) $q
$fields
Create a new MySQL database for the account.