mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
- move sources from individual tables to a single table with searchable format
- implemented 'group by source' and most source-related filters in items.php note: some fields are not yet set and searches against those will yield no usable result - fixed js-error; always expecting array characters in g_user - fixed rep gain on first login, when using external auth - fixed wrong lootIds in ?_objects, where the field size was too small
This commit is contained in:
@@ -292,16 +292,16 @@ class User
|
||||
);
|
||||
|
||||
if ($newId)
|
||||
Util::gainSiteReputation(SITEREP_ACTION_REGISTER, $newId);
|
||||
Util::gainSiteReputation($newId, SITEREP_ACTION_REGISTER);
|
||||
|
||||
return $newId;
|
||||
}
|
||||
|
||||
private static function createSalt()
|
||||
{
|
||||
$algo = '$2a';
|
||||
$strength = '$09';
|
||||
$salt = '$'.Util::createHash(22);
|
||||
$algo = '$2a';
|
||||
$strength = '$09';
|
||||
$salt = '$'.Util::createHash(22);
|
||||
|
||||
return $algo.$strength.$salt;
|
||||
}
|
||||
@@ -446,9 +446,7 @@ class User
|
||||
$gUser['superCommentVotes'] = self::canSupervote();
|
||||
$gUser['downvoteRep'] = CFG_REP_REQ_DOWNVOTE;
|
||||
$gUser['upvoteRep'] = CFG_REP_REQ_UPVOTE;
|
||||
|
||||
if ($_ = self::getCharacters())
|
||||
$gUser['characters'] = $_;
|
||||
$gUser['characters'] = self::getCharacters();
|
||||
|
||||
if ($_ = self::getProfiles())
|
||||
$gUser['profiles'] = $_;
|
||||
|
||||
Reference in New Issue
Block a user