mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Setup/DB
* table prefix for aowow is now fixed to 'aowow_' * no more input required
This commit is contained in:
@@ -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), ['', '', '', '', '']);
|
||||
|
||||
Reference in New Issue
Block a user