Split functions to the composer autoloading

Signed-off-by: Yuriy Pikhtarev <iglix@me.com>
This commit is contained in:
Yuriy Pikhtarev 2018-06-24 14:13:56 +03:00
commit 83ca67fae6
No known key found for this signature in database
GPG key ID: 3A9B5A757B48ECC6
75 changed files with 3612 additions and 3184 deletions

View file

@ -27,8 +27,7 @@ if (isset($_POST['bonus_id'])) {
$btu = get_bt_userdata($user_id);
if (empty($btu)) {
require INC_DIR . '/functions_torrent.php';
generate_passkey($user_id, true);
\TorrentPier\Legacy\Torrent::generate_passkey($user_id, true);
$btu = get_bt_userdata($user_id);
}
@ -52,7 +51,7 @@ if (isset($_POST['bonus_id'])) {
AND u.user_id = bu.user_id
");
cache_rm_user_sessions($user_id);
\TorrentPier\Legacy\Sessions::cache_rm_user_sessions($user_id);
meta_refresh(BONUS_URL, 5);
$message = sprintf($lang['BONUS_SUCCES'], humn_size($upload_row[$id] * 1024 * 1024 * 1024));