plugin management + user tables and torrents table text column migrate

This commit is contained in:
xiaomlove
2025-01-19 14:37:00 +08:00
parent 0f88ab8d82
commit 403a9447a9
66 changed files with 1432 additions and 786 deletions

View File

@@ -496,9 +496,22 @@ if (user_can('prfmanage') && $user["class"] < get_user_class())
if (user_can('cruprfmanage'))
{
$modcomment = htmlspecialchars($user["modcomment"]);
$modcomment = \App\Models\UserModifyLog::query()
->where("user_id", $user["id"])
->orderBy("id", "desc")
->limit(20)
->get()
->implode("content", "\n")
;
tr($lang_userdetails['row_comment'], "<textarea cols=\"60\" rows=\"6\" name=\"modcomment\">".$modcomment."</textarea>", 1);
$bonuscomment = htmlspecialchars($user["bonuscomment"]);
$bonuscomment = \App\Models\BonusLogs::query()
->where("uid", $user["id"])
->orderBy("id", "desc")
->limit(20)
->get()
->map(fn ($item) => sprintf("%s - %s", $item->created_at->format("Y-m-d"), $item->comment))
->implode("\n")
;
tr($lang_userdetails['row_seeding_karma'], "<textarea cols=\"60\" rows=\"6\" name=\"bonuscomment\" readonly=\"readonly\">".$bonuscomment."</textarea>", 1);
}
$warned = $user["warned"] == "yes";