define('MAXDBS', 20);
class proc {
- static function newdb(&$User, $i_newdb) {
+ static function newdb(&$User, &$i_newdb) {
+ // return through $i_newdb the full name of the created db
$msg1 = $err1 = array();
$uname = $User->getUsername();
$uname = str_replace('.','',$uname);
} else {
$msg1[] = 'Database `'.$dbname.'` created.';
}
+ $i_newdb = $dbname;
return array($msg1, $err1);
}
static function drop(&$User, $i_drop) {