New cron initialization and minor edits (#619)

* New cron initialization and minor edits

Updated the mechanism to check if cron needs to run and made minor improvements to the first run

* Adding a warning in the control panel
This commit is contained in:
Yury Pikhtarev 2023-03-17 19:26:07 +07:00 committed by GitHub
commit e4b6a91909
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 37 additions and 11 deletions

View file

@ -834,7 +834,10 @@ function show_bt_userdata($user_id)
{
global $lang, $template;
$btu = get_bt_userdata($user_id);
if (!$btu = get_bt_userdata($user_id)) {
\TorrentPier\Legacy\Torrent::generate_passkey($user_id, true);
$btu = get_bt_userdata($user_id);
}
$template->assign_vars(array(
'SHOW_BT_USERDATA' => true,