mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Split functions to the composer autoloading
Signed-off-by: Yuriy Pikhtarev <iglix@me.com>
This commit is contained in:
parent
6aae72b836
commit
83ca67fae6
75 changed files with 3612 additions and 3184 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue