* table prefix for aowow is now fixed to 'aowow_'
 * no more input required
This commit is contained in:
Sarjuuk
2017-04-09 22:04:40 +02:00
parent d63ac946f6
commit fa9d518980

View File

@@ -83,13 +83,16 @@ function dbconfig()
{
if ($inp['idx'] >= 0 && $inp['idx'] <= (3 + $nCharDBs))
{
$curFields = $dbFields;
$curFields = $inp['idx'] ? $dbFields : array_splice($dbFields, 0, 4);
if ($inp['idx'] == 3 + $nCharDBs) // add new realmDB
$curFields['realmId'] = ['Realm Id', false, '/[1-9][0-9]*/'];
if (CLISetup::readInput($curFields))
{
if ($inp['idx'] == 0 && $curFields)
$curFields['prefix'] = 'aowow_';
// auth, world or aowow
if ($inp['idx'] < 3)
$AoWoWconf[$databases[$inp['idx']]] = $curFields ?: array_combine(array_keys($dbFields), ['', '', '', '', '']);