mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 22:33:55 -07:00
Продолжение работы
Исправление небольших ошибок, стилистика.
This commit is contained in:
parent
5914baf7f9
commit
9fd886f8fb
11 changed files with 650 additions and 330 deletions
2
library/TorrentPier/.htaccess
Normal file
2
library/TorrentPier/.htaccess
Normal file
|
@ -0,0 +1,2 @@
|
|||
order allow,deny
|
||||
deny from all
|
|
@ -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 . "'
|
||||
});
|
||||
};
|
||||
</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':
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -134,8 +134,7 @@ function updateButton()
|
|||
else
|
||||
{
|
||||
document.form_rebuild_progress.submit_button.value = label_next + " (" + ticker + ")";
|
||||
|
||||
ticker--;;
|
||||
ticker--;
|
||||
refresh = setTimeout("updateButton()", 1000);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -127,10 +127,10 @@ function show_edit_options ()
|
|||
<div id="mod-action-content" style="display: none;">
|
||||
<form id="mod-action" method="POST" action="{U_SEARCH}" target="_blank">
|
||||
<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 };" />
|
||||
</td>
|
||||
<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 }" />
|
||||
</td>
|
||||
<td class="med" style="padding: 0 8px;">{L_DEL_LIST_MY_MESSAGE_INFO}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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
|
@ -557,7 +557,7 @@ $template->assign_vars(array(
|
|||
'CAT_ID' => $forum_data['cat_id'],
|
||||
'CAT_TITLE' => $forums['cat_title_html'][$forum_data['cat_id']],
|
||||
'U_VIEWCAT' => CAT_URL . $forum_data['cat_id'],
|
||||
'PARENT_FORUM_HREF' => ($parent_id = $forum_data['forum_parent']) ? FORUM_URL . $forum_data['forum_parent'] : '',
|
||||
'PARENT_FORUM_HREF' => ($parent_id = $forum_data['forum_parent']) ? FORUM_URL . $forum_data['forum_parent'] : '',
|
||||
'PARENT_FORUM_NAME' => ($parent_id = $forum_data['forum_parent']) ? $forums['forum_name_html'][$parent_id] : '',
|
||||
));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue