Template/Update (Cleanup)

* smush leftover changes into a commit
 * create fresh db dump, without dbc placeholders
 * version bump

 ... all done
This commit is contained in:
Sarjuuk
2025-08-23 17:33:57 +02:00
parent 6557e70d5c
commit 92c1c59d3a
15 changed files with 1298 additions and 1591 deletions

File diff suppressed because one or more lines are too long

View File

@@ -93,7 +93,7 @@ CLISetup::registerUtility(new class extends UtilityScript
return true;
}
if (DB::Aowow()->SelectCell('SELECT 1 FROM ?_account WHERE `username` = ? AND (`status` <> ?d OR (`status` = ?d AND `statusTimer` > UNIX_TIMESTAMP()))', $name, ACC_STATUS_NEW, ACC_STATUS_NEW))
if (DB::Aowow()->SelectCell('SELECT 1 FROM ?_account WHERE LOWER(`username`) = LOWER(?) AND (`status` <> ?d OR (`status` = ?d AND `statusTimer` > UNIX_TIMESTAMP()))', $name, ACC_STATUS_NEW, ACC_STATUS_NEW))
{
CLI::write('[account] ' . Lang::account('nameInUse'), CLI::LOG_ERROR);
CLI::write();
@@ -106,7 +106,7 @@ CLISetup::registerUtility(new class extends UtilityScript
if (DB::Aowow()->query('REPLACE INTO ?_account (`login`, `passHash`, `username`, `joindate`, `email`, `userGroups`, `userPerms`) VALUES (?, ?, ?, UNIX_TIMESTAMP(), ?, ?d, 1)',
$name, User::hashCrypt($passw), $name, $email ?: Cfg::get('CONTACT_EMAIL'), U_GROUP_ADMIN))
{
$newId = DB::Aowow()->selectCell('SELECT `id` FROM ?_account WHERE `username` = ?', $name);
$newId = DB::Aowow()->selectCell('SELECT `id` FROM ?_account WHERE LOWER(`username`) = LOWER(?)', $name);
Util::gainSiteReputation($newId, SITEREP_ACTION_REGISTER);
CLI::write("[account] admin ".$name." created successfully", CLI::LOG_OK);

View File

@@ -29,10 +29,10 @@ CLISetup::registerSetup("build", new class extends SetupScript
protected $setupAfter = [['icons'], []];
private const ICON_DIRS = array(
['static/images/wow/icons/large/', 'jpg', 0, 56, 4],
['static/images/wow/icons/medium/', 'jpg', 0, 36, 4],
['static/images/wow/icons/small/', 'jpg', 0, 18, 4],
['static/images/wow/icons/tiny/', 'gif', 0, 15, 4]
['static/images/wow/icons/large/', 'jpg', 0, ICON_SIZE_LARGE, 4],
['static/images/wow/icons/medium/', 'jpg', 0, ICON_SIZE_MEDIUM, 4],
['static/images/wow/icons/small/', 'jpg', 0, ICON_SIZE_SMALL, 4],
['static/images/wow/icons/tiny/', 'gif', 0, ICON_SIZE_TINY, 4]
);
private $genSteps = array(