mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 08:23:12 +01:00
allow to specify grant host for database creation
This commit is contained in:
parent
b161c0d500
commit
3ee9c72cf3
@ -290,7 +290,8 @@ switch($GLOBALS['egw_info']['setup']['stage']['db'])
|
||||
switch ($GLOBALS['egw_info']['setup']['currentver']['phpgwapi'])
|
||||
{
|
||||
case 'dbcreate':
|
||||
$GLOBALS['egw_setup']->db->create_database($_POST['db_root'], $_POST['db_pass'],'utf8'); // create all new db's with utf8
|
||||
$GLOBALS['egw_setup']->db->create_database($_POST['db_root'], $_POST['db_pass'], 'utf8', // create all new db's with utf8
|
||||
!preg_match('/^[0-9.a-z_]+$/i', $_POST['db_grant_host']) ? 'localhost' : $_POST['db_grant_host']);
|
||||
break;
|
||||
case 'drop':
|
||||
$setup_info = $GLOBALS['egw_setup']->detection->get_versions($setup_info);
|
||||
|
@ -15,6 +15,7 @@
|
||||
<p>{createdb}<br />
|
||||
DB root username: <input type="text" name="db_root" value="root" /><br />
|
||||
DB root password: <input type="password" name="db_pass" /><br />
|
||||
DB grant host: <input type="text" name="db_grant_host" value="localhost" /><br />
|
||||
<input type="hidden" name="action" value="Create Database" />
|
||||
<input type="submit" name="label" value="{create_database}" /></p>
|
||||
</form>
|
||||
|
Loading…
Reference in New Issue
Block a user