- 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:
Sarjuuk
2014-09-02 23:35:20 +02:00
parent 5f09b7e5c5
commit 13e45827e4
20 changed files with 37622 additions and 198 deletions

View File

@@ -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'] = $_;