diff --git a/common.php b/common.php
index 79cd91cc..af330b2e 100644
--- a/common.php
+++ b/common.php
@@ -28,11 +28,11 @@ if (isset($_SERVER['HTTP_CF_CONNECTING_IP']))
// Get initial config
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
{
- require_once(BB_ROOT . 'library/config.php');
+ require(BB_ROOT . 'library/config.php');
}
// Load Zend Framework
diff --git a/library/includes/functions.php b/library/includes/functions.php
index 9601c321..84523c97 100644
--- a/library/includes/functions.php
+++ b/library/includes/functions.php
@@ -1242,7 +1242,7 @@ function show_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);
$btu = get_bt_userdata($user_id);
}
@@ -2584,7 +2584,7 @@ function create_magnet ($infohash, $infohash_v2, $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))
{
bb_die($lang['PASSKEY_ERR_EMPTY']);
@@ -2597,7 +2597,7 @@ function create_magnet ($infohash, $infohash_v2, $auth_key)
}
$passkey_url = $passkey ? "?{$bb_cfg['passkey_key']}=$auth_key" : '';
- return '
';
+ return '
';
}
function set_die_append_msg ($forum_id = null, $topic_id = null, $group_id = null)