* Fix makeoption function call * Update formfield.mysql_add.php Added database name * Update formfield.mysql_add.php * Update formfield.mysql_add.php * Update Mysqls.php * Update DbManager.php * Update formfield.mysql_add.php * Update german.lng.php * Update formfield.mysql_add.php * Update Mysqls.php * Added field database_name (Feature #672) * Added Testfunction for customer choosed database name * Fixed test for customer choosed database name Added docs for param $name * Fixed mysql api command add Removed doubled code * Set settings for customer choosed db name * Fixed wrong excepted for database name * Renamed parameter database_name to custom_suffix * Changed testCustomerMysqlsList Added testCustomerMysqlsDBNameDelete
This commit is contained in:
@@ -16,9 +16,9 @@ use Froxlor\Settings;
|
||||
* @author Froxlor team <team@froxlor.org> (2010-)
|
||||
* @license GPLv2 http://files.froxlor.org/misc/COPYING.txt
|
||||
* @package Classes
|
||||
*
|
||||
*
|
||||
* @since 0.9.31
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -87,6 +87,8 @@ class DbManager
|
||||
while (in_array($username, $allsqlusers)) {
|
||||
$username = $loginname . '-' . substr(md5(uniqid(microtime(), 1)), 20, 3);
|
||||
}
|
||||
} elseif (strtoupper(Settings::Get('customer.mysqlprefix')) == 'DBNAME') {
|
||||
$username = $loginname;
|
||||
} else {
|
||||
$username = $loginname . Settings::Get('customer.mysqlprefix') . (intval($last_accnumber) + 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user