Продолжение работы

Исправление небольших ошибок, стилистика.
This commit is contained in:
Exile 2015-04-23 14:51:00 +03:00
commit 9fd886f8fb
11 changed files with 650 additions and 330 deletions

View file

@ -0,0 +1,2 @@
order allow,deny
deny from all

View file

@ -2572,8 +2572,8 @@ function bb_captcha ($mode, $callback = '')
$secret = $bb_cfg['captcha']['secret_key']; $secret = $bb_cfg['captcha']['secret_key'];
$public = $bb_cfg['captcha']['public_key']; $public = $bb_cfg['captcha']['public_key'];
$theme = $bb_cfg['captcha']['theme']; $cp_theme = $bb_cfg['captcha']['theme'];
$lang = $bb_cfg['lang'][$userdata['user_lang']]['captcha']; $cp_lang = $bb_cfg['lang'][$userdata['user_lang']]['captcha'];
if (!$public || !$secret) if (!$public || !$secret)
{ {
@ -2590,13 +2590,13 @@ function bb_captcha ($mode, $callback = '')
var onloadCallback = function() { var onloadCallback = function() {
grecaptcha.render('tp-captcha', { grecaptcha.render('tp-captcha', {
'sitekey' : '" . $public . "', 'sitekey' : '" . $public . "',
'theme' : '" . $theme . "', 'theme' : '" . $cp_theme . "',
'callback' : '" . $callback . "' 'callback' : '" . $callback . "'
}); });
}; };
</script> </script>
<div id=\"tp-captcha\"></div> <div id=\"tp-captcha\"></div>
<script src=\"https://www.google.com/recaptcha/api.js?onload=onloadCallback&hl=" . $lang . "&render=explicit\" async defer></script>"; <script src=\"https://www.google.com/recaptcha/api.js?onload=onloadCallback&hl=" . $cp_lang . "&render=explicit\" async defer></script>";
break; break;
case 'check': case 'check':

View file

@ -20,7 +20,7 @@ BBCode.prototype = {
// Create new BBCode control // Create new BBCode control
construct: function(textarea) { construct: function(textarea) {
this.textarea = textarea; this.textarea = textarea;
this.tags = new Object(); this.tags = {};
// Tag for quoting // Tag for quoting
this.addTag( this.addTag(
'_quoter', '_quoter',
@ -224,7 +224,7 @@ BBCode.prototype = {
// Adds a BB tag to the list // Adds a BB tag to the list
addTag: function(id, open, close, key, ctrlKey, multiline) { addTag: function(id, open, close, key, ctrlKey, multiline) {
if (!ctrlKey) ctrlKey = "ctrl"; if (!ctrlKey) ctrlKey = "ctrl";
var tag = new Object(); var tag = {};
tag.id = id; tag.id = id;
tag.open = open; tag.open = open;
tag.close = close; tag.close = close;

View file

@ -1,5 +1,5 @@
function $p() { function $p() {
var elements = new Array(); var elements = [];
for (var i = 0; i < arguments.length; i++) { for (var i = 0; i < arguments.length; i++) {
var element = arguments[i]; var element = arguments[i];
if (typeof element == 'string') if (typeof element == 'string')

View file

@ -134,8 +134,7 @@ function updateButton()
else else
{ {
document.form_rebuild_progress.submit_button.value = label_next + " (" + ticker + ")"; document.form_rebuild_progress.submit_button.value = label_next + " (" + ticker + ")";
ticker--;
ticker--;;
refresh = setTimeout("updateButton()", 1000); refresh = setTimeout("updateButton()", 1000);
} }
} }

View file

@ -129,7 +129,7 @@ function show_edit_options ()
<table class="borderless pad_0" cellpadding="0" cellspacing="0"> <table class="borderless pad_0" cellpadding="0" cellspacing="0">
<tr> <tr>
<td class="pad_4"> <td class="pad_4">
<input type="submit" name="del_my_post" value="{L_DEL_LIST_MY_MESSAGE}" class="bold" onclick="if (!window.confirm( this.value +'?' )){ return false };" /> <input type="submit" name="del_my_post" value="{L_DEL_LIST_MY_MESSAGE}" class="bold" onclick="if (!window.confirm( this.value +'?' )){ return false }" />
</td> </td>
<td class="med" style="padding: 0 8px;">{L_DEL_LIST_MY_MESSAGE_INFO}</td> <td class="med" style="padding: 0 8px;">{L_DEL_LIST_MY_MESSAGE_INFO}</td>
</tr> </tr>

View file

@ -55,9 +55,12 @@ td.topic_id { cursor: pointer; }
<div id="mod-action-content" style="display: none;"> <div id="mod-action-content" style="display: none;">
<form id="mod-action" name="watch_form" method="post" action="{S_FORM_ACTION}"> <form id="mod-action" name="watch_form" method="post" action="{S_FORM_ACTION}">
<table class="borderless pad_0" cellpadding="0" cellspacing="0"> <table class="borderless pad_0" cellpadding="0" cellspacing="0">
<tr><td class="pad_4"> <tr>
<input type="submit" name="del_from_ut" value="{L_DEL_LIST_MY_MESSAGE}" onclick="if (!window.confirm( this.value +'?' )){ return false };" /> <td class="pad_4">
</tr></table> <input type="submit" name="del_from_ut" value="{L_DEL_LIST_MY_MESSAGE}" onclick="if (!window.confirm( this.value +'?' )){ return false }" />
</td>
</tr>
</table>
</form> </form>
</div> </div>

View file

@ -284,7 +284,7 @@ function humn_size (size) {
size = size/1024; size = size/1024;
i++; i++;
} }
size = new String(size); size = String(size);
if (size.indexOf('.') != -1) { if (size.indexOf('.') != -1) {
size = size.substring(0, size.indexOf('.') + 3); size = size.substring(0, size.indexOf('.') + 3);
} }

File diff suppressed because it is too large Load diff