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

Исправление небольших ошибок, стилистика.
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'];
$public = $bb_cfg['captcha']['public_key'];
$theme = $bb_cfg['captcha']['theme'];
$lang = $bb_cfg['lang'][$userdata['user_lang']]['captcha'];
$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 . "'
});
};
</script>
<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;
case 'check':

View file

@ -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;

View file

@ -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')

View file

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

View file

@ -129,7 +129,7 @@ function show_edit_options ()
<table class="borderless pad_0" cellpadding="0" cellspacing="0">
<tr>
<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 class="med" style="padding: 0 8px;">{L_DEL_LIST_MY_MESSAGE_INFO}</td>
</tr>

View file

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

View file

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

File diff suppressed because it is too large Load diff