diff --git a/bt/announce.php b/bt/announce.php
index bc0fe67aa..304cf1b8d 100644
--- a/bt/announce.php
+++ b/bt/announce.php
@@ -242,7 +242,7 @@ if ($lp_info) {
}
// Limit concurrent IPs
- if ($bb_cfg['tracker']['limit_concurrent_ips'] && (($bb_cfg['tracker']['limit_seed_ips'] && $seeder) || ($bb_cfg['tracker']['limit_leech_ips'] && !$seeder))) {
+ if (!isset($bb_cfg['unlimited_users'][$user_id]) && $bb_cfg['tracker']['limit_concurrent_ips'] && (($bb_cfg['tracker']['limit_seed_ips'] && $seeder) || ($bb_cfg['tracker']['limit_leech_ips'] && !$seeder))) {
$sql = "SELECT COUNT(DISTINCT ip) AS ips
FROM " . BB_BT_TRACKER . "
WHERE topic_id = $topic_id
diff --git a/library/ajax/topic_tpl.php b/library/ajax/topic_tpl.php
index 17085ae5b..1052b4879 100644
--- a/library/ajax/topic_tpl.php
+++ b/library/ajax/topic_tpl.php
@@ -11,10 +11,10 @@ if (!defined('IN_AJAX')) {
die(basename(__FILE__));
}
-global $userdata;
+global $userdata, $lang;
if (!IS_SUPER_ADMIN) {
- $this->ajax_die('not auth');
+ $this->ajax_die($lang['NOT_AUTHORISED']);
}
array_deep($this->request, 'trim');
diff --git a/library/attach_mod/includes/functions_selects.php b/library/attach_mod/includes/functions_selects.php
index 24aac4745..26379efc8 100644
--- a/library/attach_mod/includes/functions_selects.php
+++ b/library/attach_mod/includes/functions_selects.php
@@ -97,7 +97,7 @@ function download_select($select_name, $group_id = 0)
*/
function category_select($select_name, $group_id = 0)
{
- global $types_category, $modes_category;
+ global $types_category, $modes_category, $lang;
$category_type = null;
$sql = 'SELECT group_id, cat_id FROM ' . BB_EXTENSION_GROUPS;
@@ -121,7 +121,7 @@ function category_select($select_name, $group_id = 0)
}
$types = [NONE_CAT];
- $modes = ['none'];
+ $modes = [$lang['NONE']];
for ($i = 0, $iMax = count($types_category); $i < $iMax; $i++) {
$types[] = $types_category[$i];
diff --git a/library/language/source/main.php b/library/language/source/main.php
index 08e34ebee..220f87847 100644
--- a/library/language/source/main.php
+++ b/library/language/source/main.php
@@ -1005,7 +1005,7 @@ $lang['ATTACHMENT_PHP_SIZE_NA'] = 'The Attachment is too big.
Could not get
$lang['ATTACHMENT_PHP_SIZE_OVERRUN'] = 'The Attachment is too big.
Maximum Upload Size: %d MB.
Please note that this Size is defined in php.ini, this means it\'s set by PHP and the Attachment Mod can not override this value.'; // replace %d with ini_get('upload_max_filesize')
$lang['DISALLOWED_EXTENSION'] = 'The Extension %s is not allowed'; // replace %s with extension (e.g. .php)
$lang['DISALLOWED_EXTENSION_WITHIN_FORUM'] = 'You are not allowed to post Files with the Extension %s within this Forum'; // replace %s with the Extension
-$lang['ATTACHMENT_TOO_BIG'] = 'The Attachment is too big.
Max Size: %d'; // replace %d with maximum file size, %s with size var
+$lang['ATTACHMENT_TOO_BIG'] = 'The Attachment is too big.
Max Size: %s'; // replace %d with maximum file size, %s with size var
$lang['ATTACH_QUOTA_REACHED'] = 'Sorry, but the maximum filesize for all Attachments is reached. Please contact the Board Administrator if you have questions.';
$lang['TOO_MANY_ATTACHMENTS'] = 'Attachment cannot be added, since the max. number of %d Attachments in this post was achieved'; // replace %d with maximum number of attachments
$lang['ERROR_IMAGESIZE'] = 'The Attachment/Image must be less than %d pixels wide and %d pixels high';