diff --git a/library/TorrentPier/.htaccess b/library/TorrentPier/.htaccess new file mode 100644 index 000000000..baa56e5a3 --- /dev/null +++ b/library/TorrentPier/.htaccess @@ -0,0 +1,2 @@ +order allow,deny +deny from all \ No newline at end of file diff --git a/library/TorrentPier/.keep b/library/TorrentPier/.keep deleted file mode 100644 index e69de29bb..000000000 diff --git a/library/includes/functions.php b/library/includes/functions.php index b66893387..5a5c51c48 100644 --- a/library/includes/functions.php +++ b/library/includes/functions.php @@ -2570,10 +2570,10 @@ function bb_captcha ($mode, $callback = '') require_once(TP_AUTO_DIR . 'ReCaptcha/ReCaptcha.php'); - $secret = $bb_cfg['captcha']['secret_key']; - $public = $bb_cfg['captcha']['public_key']; - $theme = $bb_cfg['captcha']['theme']; - $lang = $bb_cfg['lang'][$userdata['user_lang']]['captcha']; + $secret = $bb_cfg['captcha']['secret_key']; + $public = $bb_cfg['captcha']['public_key']; + $cp_theme = $bb_cfg['captcha']['theme']; + $cp_lang = $bb_cfg['lang'][$userdata['user_lang']]['captcha']; if (!$public || !$secret) { @@ -2590,13 +2590,13 @@ function bb_captcha ($mode, $callback = '') var onloadCallback = function() { grecaptcha.render('tp-captcha', { 'sitekey' : '" . $public . "', - 'theme' : '" . $theme . "', + 'theme' : '" . $cp_theme . "', 'callback' : '" . $callback . "' }); };
- "; + "; break; case 'check': diff --git a/styles/js/bbcode.js b/styles/js/bbcode.js index 7e5cf1c90..1f198e6f7 100644 --- a/styles/js/bbcode.js +++ b/styles/js/bbcode.js @@ -20,7 +20,7 @@ BBCode.prototype = { // Create new BBCode control construct: function(textarea) { this.textarea = textarea; - this.tags = new Object(); + this.tags = {}; // Tag for quoting this.addTag( '_quoter', @@ -224,7 +224,7 @@ BBCode.prototype = { // Adds a BB tag to the list addTag: function(id, open, close, key, ctrlKey, multiline) { if (!ctrlKey) ctrlKey = "ctrl"; - var tag = new Object(); + var tag = {}; tag.id = id; tag.open = open; tag.close = close; diff --git a/styles/js/main.js b/styles/js/main.js index 540ae43c7..3a1ff0fe7 100644 --- a/styles/js/main.js +++ b/styles/js/main.js @@ -1,5 +1,5 @@ function $p() { - var elements = new Array(); + var elements = []; for (var i = 0; i < arguments.length; i++) { var element = arguments[i]; if (typeof element == 'string') diff --git a/styles/templates/admin/admin_rebuild_search.tpl b/styles/templates/admin/admin_rebuild_search.tpl index 6f2538f5a..28369869a 100644 --- a/styles/templates/admin/admin_rebuild_search.tpl +++ b/styles/templates/admin/admin_rebuild_search.tpl @@ -134,8 +134,7 @@ function updateButton() else { document.form_rebuild_progress.submit_button.value = label_next + " (" + ticker + ")"; - - ticker--;; + ticker--; refresh = setTimeout("updateButton()", 1000); } } diff --git a/styles/templates/default/search_results.tpl b/styles/templates/default/search_results.tpl index 8280806f8..2bc29c303 100644 --- a/styles/templates/default/search_results.tpl +++ b/styles/templates/default/search_results.tpl @@ -127,10 +127,10 @@ function show_edit_options ()