mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Updated
This commit is contained in:
parent
0c856a4139
commit
f888893a03
@ -28,11 +28,11 @@ if (isset($_SERVER['HTTP_CF_CONNECTING_IP']))
|
|||||||
// Get initial config
|
// Get initial config
|
||||||
if (file_exists(BB_ROOT . 'library/config.local.php'))
|
if (file_exists(BB_ROOT . 'library/config.local.php'))
|
||||||
{
|
{
|
||||||
require_once(BB_ROOT . 'library/config.local.php');
|
require(BB_ROOT . 'library/config.local.php');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
require_once(BB_ROOT . 'library/config.php');
|
require(BB_ROOT . 'library/config.php');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Load Zend Framework
|
// Load Zend Framework
|
||||||
|
@ -1242,7 +1242,7 @@ function show_bt_userdata ($user_id)
|
|||||||
|
|
||||||
if (!$btu = get_bt_userdata($user_id))
|
if (!$btu = get_bt_userdata($user_id))
|
||||||
{
|
{
|
||||||
require(INC_DIR .'functions_torrent.php');
|
require_once(INC_DIR .'functions_torrent.php');
|
||||||
generate_passkey($user_id, true);
|
generate_passkey($user_id, true);
|
||||||
$btu = get_bt_userdata($user_id);
|
$btu = get_bt_userdata($user_id);
|
||||||
}
|
}
|
||||||
@ -2584,7 +2584,7 @@ function create_magnet ($infohash, $infohash_v2, $auth_key)
|
|||||||
}
|
}
|
||||||
elseif (empty($auth_key))
|
elseif (empty($auth_key))
|
||||||
{
|
{
|
||||||
require(INC_DIR .'functions_torrent.php');
|
require_once(INC_DIR .'functions_torrent.php');
|
||||||
if (!$passkey = generate_passkey($userdata['user_id'], true))
|
if (!$passkey = generate_passkey($userdata['user_id'], true))
|
||||||
{
|
{
|
||||||
bb_die($lang['PASSKEY_ERR_EMPTY']);
|
bb_die($lang['PASSKEY_ERR_EMPTY']);
|
||||||
|
Loading…
Reference in New Issue
Block a user