mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
r506
Фикс багов git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@506 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
parent
a94c50f279
commit
a495218f78
21 changed files with 121 additions and 48 deletions
|
@ -340,7 +340,7 @@ else
|
||||||
|
|
||||||
for($k = 0; $k < count($forum_auth_levels); $k++)
|
for($k = 0; $k < count($forum_auth_levels); $k++)
|
||||||
{
|
{
|
||||||
$selected = ( $forum_rows[0][$forum_auth_fields[$j]] == $forum_auth_const[$k] ) ? ' selected="selected"' : '';
|
$selected = ( !empty($forum_rows) && $forum_rows[0][$forum_auth_fields[$j]] == $forum_auth_const[$k] ) ? ' selected="selected"' : '';
|
||||||
$custom_auth[$j] .= '<option value="' . $forum_auth_const[$k] . '"' . $selected . '>' . $lang['FORUM_' . $forum_auth_levels[$k]] . '</option>';
|
$custom_auth[$j] .= '<option value="' . $forum_auth_const[$k] . '"' . $selected . '>' . $lang['FORUM_' . $forum_auth_levels[$k]] . '</option>';
|
||||||
}
|
}
|
||||||
$custom_auth[$j] .= '</select>';
|
$custom_auth[$j] .= '</select>';
|
||||||
|
|
|
@ -546,7 +546,21 @@ class ajax_common
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
DB()->query("UPDATE ". BB_TOPICS ." SET is_draft = 0 WHERE topic_id = {$tid}");
|
require_once(INC_DIR . 'functions_post.php');
|
||||||
|
DB()->query("
|
||||||
|
UPDATE
|
||||||
|
". BB_POSTS ." p,
|
||||||
|
". BB_TOPICS ." t
|
||||||
|
SET
|
||||||
|
p.post_time = ". TIMENOW .",
|
||||||
|
t.is_draft = 0,
|
||||||
|
t.topic_last_post_time = ". TIMENOW .",
|
||||||
|
t.topic_time = ". TIMENOW ."
|
||||||
|
WHERE
|
||||||
|
t.topic_id = {$tid}
|
||||||
|
AND t.topic_first_post_id = p.post_id
|
||||||
|
");
|
||||||
|
update_draft('no_draft', $row['forum_id'], $tid, $row['topic_dl_type'], $row['topic_first_post_id'], $row['topic_poster']);
|
||||||
}
|
}
|
||||||
$this->response['tid'] = $tid;
|
$this->response['tid'] = $tid;
|
||||||
}
|
}
|
||||||
|
|
|
@ -134,11 +134,13 @@ class torrent
|
||||||
$cur_files_ary[] = $this->build_file_item($name, $length);
|
$cur_files_ary[] = $this->build_file_item($name, $length);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
natsort($cur_files_ary);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$name = $f['path'][0];
|
$name = $f['path'][0];
|
||||||
$this->files_ary['/'][] = $this->build_file_item($name, $length);
|
$this->files_ary['/'][] = $this->build_file_item($name, $length);
|
||||||
|
natsort($this->files_ary['/']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -149,6 +151,7 @@ class torrent
|
||||||
$length = isset($info['length']) ? $info['length'] : 0;
|
$length = isset($info['length']) ? $info['length'] : 0;
|
||||||
|
|
||||||
$this->files_ary['/'][] = $this->build_file_item($name, $length);
|
$this->files_ary['/'][] = $this->build_file_item($name, $length);
|
||||||
|
natsort($this->files_ary['/']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1795,7 +1795,7 @@ class datastore_file extends datastore_common
|
||||||
|
|
||||||
$filecache = "<?php\n";
|
$filecache = "<?php\n";
|
||||||
$filecache .= "if (!defined('BB_ROOT')) die(basename(__FILE__));\n";
|
$filecache .= "if (!defined('BB_ROOT')) die(basename(__FILE__));\n";
|
||||||
$filecache .= '$filestore = ' . var_export($var, true) . ";\n";
|
$filecache .= '$filecache = ' . var_export($var, true) . ";\n";
|
||||||
$filecache .= '?>';
|
$filecache .= '?>';
|
||||||
|
|
||||||
$this->debug('stop');
|
$this->debug('stop');
|
||||||
|
@ -1849,7 +1849,7 @@ class datastore_file extends datastore_common
|
||||||
{
|
{
|
||||||
require($filename);
|
require($filename);
|
||||||
|
|
||||||
$this->data[$item] = $filestore;
|
$this->data[$item] = $filecache;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,8 +56,8 @@ $domain_name = (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : $do
|
||||||
|
|
||||||
// Increase number of revision after update
|
// Increase number of revision after update
|
||||||
$bb_cfg['tp_version'] = '2.5 pre-stable';
|
$bb_cfg['tp_version'] = '2.5 pre-stable';
|
||||||
$bb_cfg['tp_release_date'] = '30-05-2013';
|
$bb_cfg['tp_release_date'] = '23-06-2013';
|
||||||
$bb_cfg['tp_release_state'] = 'R505';
|
$bb_cfg['tp_release_state'] = 'R506';
|
||||||
|
|
||||||
// Database
|
// Database
|
||||||
$charset = 'utf8';
|
$charset = 'utf8';
|
||||||
|
|
|
@ -13,6 +13,7 @@ $page_cfg['include_bbcode_js'] = true;
|
||||||
//
|
//
|
||||||
function get_bbcode_tpl ()
|
function get_bbcode_tpl ()
|
||||||
{
|
{
|
||||||
|
global $lang;
|
||||||
$bbcode_tpl = array();
|
$bbcode_tpl = array();
|
||||||
|
|
||||||
// Quote
|
// Quote
|
||||||
|
@ -34,7 +35,6 @@ HTML;
|
||||||
// Code
|
// Code
|
||||||
$bbcode_tpl['code_open'] = <<<HTML
|
$bbcode_tpl['code_open'] = <<<HTML
|
||||||
<div class="c-wrap">
|
<div class="c-wrap">
|
||||||
<div class="c-head"><b>Код:</b></div>
|
|
||||||
<div class="c-body">
|
<div class="c-body">
|
||||||
HTML;
|
HTML;
|
||||||
|
|
||||||
|
|
|
@ -768,7 +768,6 @@ class html_common
|
||||||
|
|
||||||
function _array2html_rec ($array, $ul, $li)
|
function _array2html_rec ($array, $ul, $li)
|
||||||
{
|
{
|
||||||
@natsort($array);
|
|
||||||
foreach ($array as $k => $v)
|
foreach ($array as $k => $v)
|
||||||
{
|
{
|
||||||
if (is_array($v))
|
if (is_array($v))
|
||||||
|
|
|
@ -106,7 +106,7 @@ function prepare_post(&$mode, &$post_data, &$error_msg, &$username, &$subject, &
|
||||||
//
|
//
|
||||||
function submit_post($mode, &$post_data, &$message, &$meta, &$forum_id, &$topic_id, &$post_id, &$poll_id, &$topic_type, $post_username, $post_subject, $post_message, $poll_title, &$poll_options, &$poll_length, $update_post_time)
|
function submit_post($mode, &$post_data, &$message, &$meta, &$forum_id, &$topic_id, &$post_id, &$poll_id, &$topic_type, $post_username, $post_subject, $post_message, $poll_title, &$poll_options, &$poll_length, $update_post_time)
|
||||||
{
|
{
|
||||||
global $userdata, $post_info, $is_auth, $bb_cfg, $lang, $datastore;
|
global $userdata, $post_info, $is_auth, $bb_cfg, $lang, $datastore, $to_draft;
|
||||||
|
|
||||||
$current_time = TIMENOW;
|
$current_time = TIMENOW;
|
||||||
|
|
||||||
|
@ -160,9 +160,43 @@ function submit_post($mode, &$post_data, &$message, &$meta, &$forum_id, &$topic_
|
||||||
|
|
||||||
$topic_dl_type = (isset($_POST['topic_dl_type']) && ($post_info['allow_reg_tracker'] || $is_auth['auth_mod'])) ? TOPIC_DL_TYPE_DL : TOPIC_DL_TYPE_NORMAL;
|
$topic_dl_type = (isset($_POST['topic_dl_type']) && ($post_info['allow_reg_tracker'] || $is_auth['auth_mod'])) ? TOPIC_DL_TYPE_DL : TOPIC_DL_TYPE_NORMAL;
|
||||||
|
|
||||||
$is_draft = (empty($_POST['to_draft'])) ? 0 : 1;
|
if (($mode == 'editpost' && $post_data['first_post']) && !$to_draft && $to_draft != $post_data['is_draft'])
|
||||||
|
{
|
||||||
|
$sql_update = "
|
||||||
|
UPDATE
|
||||||
|
". BB_POSTS ." p,
|
||||||
|
". BB_TOPICS ." t
|
||||||
|
SET
|
||||||
|
p.post_time = ". TIMENOW .",
|
||||||
|
t.topic_title = '$post_subject',
|
||||||
|
t.topic_type = $topic_type,
|
||||||
|
t.topic_dl_type = $topic_dl_type " . ((@$post_data['edit_vote'] || !empty($poll_title)) ? ",
|
||||||
|
t.topic_vote = " . $topic_vote : "") . ",
|
||||||
|
t.is_draft = $to_draft,
|
||||||
|
t.topic_last_post_time = ". TIMENOW .",
|
||||||
|
t.topic_time = ". TIMENOW ."
|
||||||
|
WHERE
|
||||||
|
t.topic_id = $topic_id
|
||||||
|
AND t.topic_first_post_id = p.post_id
|
||||||
|
";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$sql_update = "
|
||||||
|
UPDATE
|
||||||
|
" . BB_TOPICS . "
|
||||||
|
SET
|
||||||
|
topic_title = '$post_subject',
|
||||||
|
topic_type = $topic_type,
|
||||||
|
topic_dl_type = $topic_dl_type " . ((@$post_data['edit_vote'] || !empty($poll_title)) ? ",
|
||||||
|
topic_vote = " . $topic_vote : "") . ",
|
||||||
|
is_draft = $to_draft
|
||||||
|
WHERE
|
||||||
|
topic_id = $topic_id
|
||||||
|
";
|
||||||
|
}
|
||||||
|
|
||||||
$sql = ($mode != "editpost") ? "INSERT INTO " . BB_TOPICS . " (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_dl_type, topic_vote, is_draft) VALUES ('$post_subject', " . $userdata['user_id'] . ", $current_time, $forum_id, " . TOPIC_UNLOCKED . ", $topic_type, $topic_dl_type, $topic_vote, $is_draft)" : "UPDATE " . BB_TOPICS . " SET topic_title = '$post_subject', topic_type = $topic_type, topic_dl_type = $topic_dl_type " . ((@$post_data['edit_vote'] || !empty($poll_title)) ? ", topic_vote = " . $topic_vote : "") . ", is_draft = {$is_draft}" . " WHERE topic_id = $topic_id";
|
$sql = ($mode != "editpost") ? "INSERT INTO " . BB_TOPICS . " (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_dl_type, topic_vote, is_draft) VALUES ('$post_subject', " . $userdata['user_id'] . ", $current_time, $forum_id, " . TOPIC_UNLOCKED . ", $topic_type, $topic_dl_type, $topic_vote, $to_draft)" : $sql_update;
|
||||||
|
|
||||||
if (!DB()->sql_query($sql))
|
if (!DB()->sql_query($sql))
|
||||||
{
|
{
|
||||||
|
|
|
@ -280,6 +280,7 @@ $lang['CODE_COPIED'] = 'Code copied to clipboard';
|
||||||
$lang['CODE_COPY'] = 'copy to clipboard';
|
$lang['CODE_COPY'] = 'copy to clipboard';
|
||||||
$lang['SPOILER_HEAD'] = 'hidden text';
|
$lang['SPOILER_HEAD'] = 'hidden text';
|
||||||
$lang['SPOILER_CLOSE'] = 'turn';
|
$lang['SPOILER_CLOSE'] = 'turn';
|
||||||
|
$lang['PLAY_ON_CURPAGE'] = 'Start playing on the current page';
|
||||||
|
|
||||||
$lang['EDITED_TIME_TOTAL'] = 'Last edited by %s on %s; edited %d time in total'; // Last edited by me on 12 Oct 2001; edited 1 time in total
|
$lang['EDITED_TIME_TOTAL'] = 'Last edited by %s on %s; edited %d time in total'; // Last edited by me on 12 Oct 2001; edited 1 time in total
|
||||||
$lang['EDITED_TIMES_TOTAL'] = 'Last edited by %s on %s; edited %d times in total'; // Last edited by me on 12 Oct 2001; edited 2 times in total
|
$lang['EDITED_TIMES_TOTAL'] = 'Last edited by %s on %s; edited %d times in total'; // Last edited by me on 12 Oct 2001; edited 2 times in total
|
||||||
|
@ -1423,6 +1424,7 @@ $lang['OTHERS'] = 'others';
|
||||||
$lang['ALL'] = 'all';
|
$lang['ALL'] = 'all';
|
||||||
|
|
||||||
$lang['POST_LINK'] = 'Post link';
|
$lang['POST_LINK'] = 'Post link';
|
||||||
|
$lang['GOTO_QUOTED_POST'] = 'Go to the quoted post';
|
||||||
$lang['LAST_VISITED'] = 'Last Visited';
|
$lang['LAST_VISITED'] = 'Last Visited';
|
||||||
$lang['LAST_ACTIVITY'] = 'Last activity';
|
$lang['LAST_ACTIVITY'] = 'Last activity';
|
||||||
$lang['NEVER'] = 'Never';
|
$lang['NEVER'] = 'Never';
|
||||||
|
|
|
@ -108,7 +108,7 @@ $lang['LOOK_UP_FORUM'] = 'Выбрать форум';
|
||||||
|
|
||||||
$lang['GROUP_AUTH_EXPLAIN'] = 'Здесь вы можете изменить права доступа и статус модератора для каждой группы пользователей. Не забывайте при изменении прав доступа для групп, что права доступа для отдельных пользователей могут давать пользователю возможность входа в форумы и т.п. Вы будете предупреждены в этом случае.';
|
$lang['GROUP_AUTH_EXPLAIN'] = 'Здесь вы можете изменить права доступа и статус модератора для каждой группы пользователей. Не забывайте при изменении прав доступа для групп, что права доступа для отдельных пользователей могут давать пользователю возможность входа в форумы и т.п. Вы будете предупреждены в этом случае.';
|
||||||
$lang['USER_AUTH_EXPLAIN'] = 'Здесь вы можете изменить права доступа и статус модератора для отдельных пользователей. Не забывайте при изменении прав пользователя, что права доступа для группы могут давать пользователю возможность входа в форумы и т.п. Вы будете предупреждены в этом случае.';
|
$lang['USER_AUTH_EXPLAIN'] = 'Здесь вы можете изменить права доступа и статус модератора для отдельных пользователей. Не забывайте при изменении прав пользователя, что права доступа для группы могут давать пользователю возможность входа в форумы и т.п. Вы будете предупреждены в этом случае.';
|
||||||
$lang['FORUM_AUTH_EXPLAIN'] = 'Здесь вы можете регулировать доступ к каждому форуму. У вас будет обычный и продвинутый режим для этого, продвинутый даёт больше возможностей для контроля. Помните, что изменение прав доступа к форуму повлияет на то, какие пользователи смогут совершать в нём различные действия';
|
$lang['FORUM_AUTH_EXPLAIN'] = 'Здесь вы можете регулировать доступ к каждому форуму. У вас будет обычный и продвинутый режим для этого, продвинутый даёт больше возможностей для контроля. Помните, что изменение прав доступа к форуму повлияет на то, какие пользователи смогут совершать в нём различные действия.';
|
||||||
|
|
||||||
$lang['SIMPLE_MODE'] = 'Простой режим';
|
$lang['SIMPLE_MODE'] = 'Простой режим';
|
||||||
$lang['ADVANCED_MODE'] = 'Продвинутый режим';
|
$lang['ADVANCED_MODE'] = 'Продвинутый режим';
|
||||||
|
@ -552,25 +552,25 @@ $lang['LOGIN_RESET_TIME_EXPLAIN'] = 'Время, через которое по
|
||||||
//
|
//
|
||||||
$lang['PERMISSIONS_LIST'] = 'Список прав доступа';
|
$lang['PERMISSIONS_LIST'] = 'Список прав доступа';
|
||||||
$lang['AUTH_CONTROL_CATEGORY'] = 'Права доступа к категориям';
|
$lang['AUTH_CONTROL_CATEGORY'] = 'Права доступа к категориям';
|
||||||
$lang['FORUM_AUTH_LIST_EXPLAIN'] = 'Этот модуль дает возможность установить права доступа для каждого форума. Вы можете изменить эти права, простым или расширеным способом, нажав на название форума. Помните, что при изменении прав доступа повлияет на пользователей, выполнять различные операции в них.';
|
$lang['FORUM_AUTH_LIST_EXPLAIN'] = 'Здесь вы можете установить права доступа для каждого форума. Вы можете изменить права с помощью простого или продвинутого режима, нажав на название форума. Помните, что изменение уровня прав доступа к форумам повлияет на то, какие пользователи смогут выполнять в них различные действия.';
|
||||||
$lang['CAT_AUTH_LIST_EXPLAIN'] = 'This provides a summary of the authorisation levels of each forum within this category. You can edit the permissions of individual forums, using either a simple or advanced method by clicking on the forum name. Alternatively, you can set the permissions for all the forums in this category by using the drop-down menus at the bottom of the page. Remember that changing the permission level of forums will affect which users can carry out the various operations within them.';
|
$lang['CAT_AUTH_LIST_EXPLAIN'] = 'Здесь вы можете установить права доступа для каждого форума в этой категории. Вы можете изменить права отдельных форумов с помощью простого или продвинутого режима, нажав на название форума. Кроме того, вы можете установить общие права для всех форумов в этой категории с помощью выпадающего меню в нижней части страницы. Помните, что изменение уровня прав доступа к форумам повлияет на то, какие пользователи смогут выполнять в них различные действия.';
|
||||||
$lang['FORUM_AUTH_LIST_EXPLAIN_ALL'] = 'Все пользователи';
|
$lang['FORUM_AUTH_LIST_EXPLAIN_ALL'] = 'Все пользователи';
|
||||||
$lang['FORUM_AUTH_LIST_EXPLAIN_REG'] = 'Все зарегистрированые пользователи';
|
$lang['FORUM_AUTH_LIST_EXPLAIN_REG'] = 'Все зарегистрированые пользователи';
|
||||||
$lang['FORUM_AUTH_LIST_EXPLAIN_PRIVATE'] = 'Только пользователи со спец правами';
|
$lang['FORUM_AUTH_LIST_EXPLAIN_PRIVATE'] = 'Только пользователи со спец правами';
|
||||||
$lang['FORUM_AUTH_LIST_EXPLAIN_MOD'] = 'Только модераторы этого форума';
|
$lang['FORUM_AUTH_LIST_EXPLAIN_MOD'] = 'Только модераторы этого форума';
|
||||||
$lang['FORUM_AUTH_LIST_EXPLAIN_ADMIN'] = 'Только администраторы';
|
$lang['FORUM_AUTH_LIST_EXPLAIN_ADMIN'] = 'Только администраторы';
|
||||||
$lang['FORUM_AUTH_LIST_EXPLAIN_AUTH_VIEW'] = '%s может просматривать этот форум';
|
$lang['FORUM_AUTH_LIST_EXPLAIN_AUTH_VIEW'] = '%s могут просматривать этот форум';
|
||||||
$lang['FORUM_AUTH_LIST_EXPLAIN_AUTH_READ'] = '%s может просматривать сообщения в этом форуме';
|
$lang['FORUM_AUTH_LIST_EXPLAIN_AUTH_READ'] = '%s могут просматривать сообщения в этом форуме';
|
||||||
$lang['FORUM_AUTH_LIST_EXPLAIN_AUTH_POST'] = '%s может создавать сообщения в этом форуме';
|
$lang['FORUM_AUTH_LIST_EXPLAIN_AUTH_POST'] = '%s могут создавать сообщения в этом форуме';
|
||||||
$lang['FORUM_AUTH_LIST_EXPLAIN_AUTH_REPLY'] = '%s может отвечать на сообщения в этом форуме';
|
$lang['FORUM_AUTH_LIST_EXPLAIN_AUTH_REPLY'] = '%s могут отвечать на сообщения в этом форуме';
|
||||||
$lang['FORUM_AUTH_LIST_EXPLAIN_AUTH_EDIT'] = '%s может редактировать сообщения в этом форуме';
|
$lang['FORUM_AUTH_LIST_EXPLAIN_AUTH_EDIT'] = '%s могут редактировать сообщения в этом форуме';
|
||||||
$lang['FORUM_AUTH_LIST_EXPLAIN_AUTH_DELETE'] = '%s может удалять сообщения в этом форуме';
|
$lang['FORUM_AUTH_LIST_EXPLAIN_AUTH_DELETE'] = '%s могут удалять сообщения в этом форуме';
|
||||||
$lang['FORUM_AUTH_LIST_EXPLAIN_AUTH_STICKY'] = '%s может прикреплять темы в этом форуме';
|
$lang['FORUM_AUTH_LIST_EXPLAIN_AUTH_STICKY'] = '%s могут прикреплять темы в этом форуме';
|
||||||
$lang['FORUM_AUTH_LIST_EXPLAIN_AUTH_ANNOUNCE'] = '%s может размещать объявления в этом форуме';
|
$lang['FORUM_AUTH_LIST_EXPLAIN_AUTH_ANNOUNCE'] = '%s могут размещать объявления в этом форуме';
|
||||||
$lang['FORUM_AUTH_LIST_EXPLAIN_AUTH_VOTE'] = '%s может голосовать в опросах этого форума';
|
$lang['FORUM_AUTH_LIST_EXPLAIN_AUTH_VOTE'] = '%s могут голосовать в опросах этого форума';
|
||||||
$lang['FORUM_AUTH_LIST_EXPLAIN_AUTH_POLLCREATE'] = '%s может создавать опросы в этом форуме';
|
$lang['FORUM_AUTH_LIST_EXPLAIN_AUTH_POLLCREATE'] = '%s могут создавать опросы в этом форуме';
|
||||||
$lang['FORUM_AUTH_LIST_EXPLAIN_AUTH_ATTACHMENTS'] = '%s может прикреплять вложения';
|
$lang['FORUM_AUTH_LIST_EXPLAIN_AUTH_ATTACHMENTS'] = '%s могут прикреплять вложения';
|
||||||
$lang['FORUM_AUTH_LIST_EXPLAIN_AUTH_DOWNLOAD'] = '%s может скачивать вложения';
|
$lang['FORUM_AUTH_LIST_EXPLAIN_AUTH_DOWNLOAD'] = '%s могут скачивать вложения';
|
||||||
|
|
||||||
//
|
//
|
||||||
// Misc
|
// Misc
|
||||||
|
|
|
@ -278,6 +278,7 @@ $lang['CODE_COPIED'] = 'Код скопирован в буфер обмена';
|
||||||
$lang['CODE_COPY'] = 'скопировать в буфер обмена';
|
$lang['CODE_COPY'] = 'скопировать в буфер обмена';
|
||||||
$lang['SPOILER_HEAD'] = 'Скрытый текст';
|
$lang['SPOILER_HEAD'] = 'Скрытый текст';
|
||||||
$lang['SPOILER_CLOSE'] = 'Свернуть';
|
$lang['SPOILER_CLOSE'] = 'Свернуть';
|
||||||
|
$lang['PLAY_ON_CURPAGE'] = 'Начать проигрывание на текущей странице';
|
||||||
|
|
||||||
|
|
||||||
$lang['EDITED_TIME_TOTAL'] = 'Последний раз редактировалось: %s (%s), всего редактировалось %d раз'; // Last edited by me on 12 Oct 2001, edited 1 time in total
|
$lang['EDITED_TIME_TOTAL'] = 'Последний раз редактировалось: %s (%s), всего редактировалось %d раз'; // Last edited by me on 12 Oct 2001, edited 1 time in total
|
||||||
|
@ -1425,6 +1426,7 @@ $lang['OTHERS'] = 'другие';
|
||||||
$lang['ALL'] = 'все';
|
$lang['ALL'] = 'все';
|
||||||
|
|
||||||
$lang['POST_LINK'] = 'Линк на это сообщение';
|
$lang['POST_LINK'] = 'Линк на это сообщение';
|
||||||
|
$lang['GOTO_QUOTED_POST'] = 'Перейти к цитируемому сообщению';
|
||||||
$lang['LAST_VISITED'] = 'Последний визит';
|
$lang['LAST_VISITED'] = 'Последний визит';
|
||||||
$lang['LAST_ACTIVITY'] = 'Последняя активность';
|
$lang['LAST_ACTIVITY'] = 'Последняя активность';
|
||||||
$lang['NEVER'] = 'Никогда';
|
$lang['NEVER'] = 'Никогда';
|
||||||
|
|
|
@ -317,11 +317,19 @@ if ($mode == 'newtopic' && $topic_tpl && $post_info['topic_tpl_id'])
|
||||||
require(INC_DIR .'topic_templates.php');
|
require(INC_DIR .'topic_templates.php');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Notify
|
// Notify and draft
|
||||||
|
$post_data['is_draft'] = $post_info['is_draft'];
|
||||||
if ($submit || $refresh)
|
if ($submit || $refresh)
|
||||||
{
|
{
|
||||||
$notify_user = (int) !empty($_POST['notify']);
|
$notify_user = (int) !empty($_POST['notify']);
|
||||||
$to_draft = ($post_data['first_post']) ? (int) !empty($_POST['to_draft']) : 0;
|
if ($bb_cfg['status_of_draft'] && $post_data['first_post'])
|
||||||
|
{
|
||||||
|
$to_draft = (int) !empty($_POST['to_draft']);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$to_draft = ($mode == 'editpost') ? $post_info['is_draft'] : 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -865,7 +873,7 @@ if ($mode == 'newtopic' || $post_data['first_post'])
|
||||||
$template->assign_var('POSTING_SUBJECT');
|
$template->assign_var('POSTING_SUBJECT');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($mode == 'newtopic' || ($post_data['first_post'] && ($post_info['topic_replies'] == 0 || $post_info['is_draft'])) && $bb_cfg['status_of_draft'])
|
if (($mode == 'newtopic' || $post_data['first_post'] && ($post_info['topic_replies'] == 0 || $post_info['is_draft'])) && $bb_cfg['status_of_draft'])
|
||||||
{
|
{
|
||||||
$template->assign_var('DRAFT_CHK');
|
$template->assign_var('DRAFT_CHK');
|
||||||
}
|
}
|
||||||
|
|
|
@ -497,7 +497,7 @@ if ($post_mode)
|
||||||
if ($prev_days) $SQL['WHERE'][] = "$tbl.$time_field > ". $time_opt[$time_val]['sql'];
|
if ($prev_days) $SQL['WHERE'][] = "$tbl.$time_field > ". $time_opt[$time_val]['sql'];
|
||||||
if ($my_posts) $SQL['WHERE'][] = "p.poster_id = $poster_id_val";
|
if ($my_posts) $SQL['WHERE'][] = "p.poster_id = $poster_id_val";
|
||||||
if ($my_topics) $SQL['WHERE'][] = "t.topic_poster = $poster_id_val";
|
if ($my_topics) $SQL['WHERE'][] = "t.topic_poster = $poster_id_val";
|
||||||
if ($poster_id_val != $user_id && !IS_ADMIN && $bb_cfg['status_of_draft']) $SQL['WHERE'][] = "t.is_draft = 0";
|
if ($poster_id_val != $user_id && !IS_ADMIN) $SQL['WHERE'][] = "t.is_draft = 0";
|
||||||
|
|
||||||
if ($text_match_sql)
|
if ($text_match_sql)
|
||||||
{
|
{
|
||||||
|
@ -685,7 +685,7 @@ else
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($my_topics) $SQL['WHERE'][] = "t.topic_poster = $poster_id_val";
|
if ($my_topics) $SQL['WHERE'][] = "t.topic_poster = $poster_id_val";
|
||||||
if ($poster_id_val != $user_id && !IS_ADMIN && $bb_cfg['status_of_draft']) $SQL['WHERE'][] = "t.is_draft = 0";
|
if ($poster_id_val != $user_id && !IS_ADMIN) $SQL['WHERE'][] = "t.is_draft = 0";
|
||||||
|
|
||||||
if ($text_match_sql)
|
if ($text_match_sql)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,9 +1,7 @@
|
||||||
|
|
||||||
<h1>{L_FORUM_PRUNE}</h1>
|
<h1>{L_FORUM_PRUNE}</h1>
|
||||||
|
|
||||||
<!-- IF L_PRUNE_EXPLAIN -->
|
|
||||||
<p>{L_FORUM_PRUNE_EXPLAIN}</p>
|
<p>{L_FORUM_PRUNE_EXPLAIN}</p>
|
||||||
<!-- ENDIF -->
|
|
||||||
|
|
||||||
<!-- IF FORUM_NAME -->
|
<!-- IF FORUM_NAME -->
|
||||||
<h2>{L_FORUM}: {FORUM_NAME}</h2>
|
<h2>{L_FORUM}: {FORUM_NAME}</h2>
|
||||||
|
|
|
@ -735,6 +735,9 @@ td.topicSep { /* Topic type groups separator */
|
||||||
.topicSticky { /* Topic Sticky prefix */
|
.topicSticky { /* Topic Sticky prefix */
|
||||||
color: #009900;
|
color: #009900;
|
||||||
}
|
}
|
||||||
|
.topicDraft { /* Topic Draft prefix */
|
||||||
|
font-weight: normal; color: #C63B00;
|
||||||
|
}
|
||||||
.topicPoll { /* Topic Poll prefix */
|
.topicPoll { /* Topic Poll prefix */
|
||||||
font-weight: normal; color: #006699;
|
font-weight: normal; color: #006699;
|
||||||
}
|
}
|
||||||
|
@ -1398,7 +1401,7 @@ div#autocomplete_popup div.close {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
width: 12px;
|
width: 12px;
|
||||||
height: 12px;
|
height: 12px;
|
||||||
background: url("/images/bad.gif") transparent no-repeat;
|
background: url("./../images/bad.gif") transparent no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
div#autocomplete_popup input {
|
div#autocomplete_popup input {
|
||||||
|
@ -1411,7 +1414,7 @@ div#autocomplete_popup span.regenerate {
|
||||||
width: 16px;
|
width: 16px;
|
||||||
height: 16px;
|
height: 16px;
|
||||||
margin: 24px 0 0 8px;
|
margin: 24px 0 0 8px;
|
||||||
background: url("/images/pic_loading.gif") transparent no-repeat;
|
background: url("./../images/pic_loading.gif") transparent no-repeat;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
|
@ -32,12 +32,20 @@ function copyText_writeLink(node)
|
||||||
function initPostBBCode(context)
|
function initPostBBCode(context)
|
||||||
{
|
{
|
||||||
$('span.post-hr', context).html('<hr align="left" />');
|
$('span.post-hr', context).html('<hr align="left" />');
|
||||||
|
initCodes(context);
|
||||||
initQuotes(context);
|
initQuotes(context);
|
||||||
initExternalLinks(context);
|
initExternalLinks(context);
|
||||||
initPostImages(context);
|
initPostImages(context);
|
||||||
initSpoilers(context);
|
initSpoilers(context);
|
||||||
initMedia(context);
|
initMedia(context);
|
||||||
}
|
}
|
||||||
|
function initCodes(context)
|
||||||
|
{
|
||||||
|
$('div.c-body', context).each(function(){
|
||||||
|
var $c = $(this);
|
||||||
|
$c.before('<div class="c-head"><b>{L_CODE}:</b></div>');
|
||||||
|
});
|
||||||
|
}
|
||||||
function initQuotes(context)
|
function initQuotes(context)
|
||||||
{
|
{
|
||||||
$('div.q', context).each(function(){
|
$('div.q', context).each(function(){
|
||||||
|
@ -47,7 +55,7 @@ function initQuotes(context)
|
||||||
if ( quoted_pid = $q.children('u.q-post:first').text() ) {
|
if ( quoted_pid = $q.children('u.q-post:first').text() ) {
|
||||||
var on_this_page = $('#post_'+quoted_pid).length;
|
var on_this_page = $('#post_'+quoted_pid).length;
|
||||||
var href = (on_this_page) ? '#'+ quoted_pid : './viewtopic.php?p='+ quoted_pid +'#'+ quoted_pid;
|
var href = (on_this_page) ? '#'+ quoted_pid : './viewtopic.php?p='+ quoted_pid +'#'+ quoted_pid;
|
||||||
q_title += ' <a href="'+ href +'" title="Перейти к цитируемому сообщению"><img src="{SITE_URL}templates/default/images/icon_latest_reply.gif" class="icon2" alt="" /></a>';
|
q_title += ' <a href="'+ href +'" title="{L_GOTO_QUOTED_POST}"><img src="{SITE_URL}templates/default/images/icon_latest_reply.gif" class="icon2" alt="" /></a>';
|
||||||
}
|
}
|
||||||
$q.before('<div class="q-head">'+ q_title +'</div>');
|
$q.before('<div class="q-head">'+ q_title +'</div>');
|
||||||
});
|
});
|
||||||
|
@ -141,7 +149,7 @@ function initMedia(context)
|
||||||
if (/^http(?:s|):\/\/www.youtube.com\/watch\?(.*)?(&?v=([a-z0-9\-_]+))(.*)?|http:\/\/youtu.be\/.+/i.test(link.href)) {
|
if (/^http(?:s|):\/\/www.youtube.com\/watch\?(.*)?(&?v=([a-z0-9\-_]+))(.*)?|http:\/\/youtu.be\/.+/i.test(link.href)) {
|
||||||
var a = document.createElement('span');
|
var a = document.createElement('span');
|
||||||
a.className = 'YTLink';
|
a.className = 'YTLink';
|
||||||
a.innerHTML = '<span title="Начать проигрывание на текущей странице" class="YTLinkButton">►</span>';
|
a.innerHTML = '<span title="{L_PLAY_ON_CURPAGE}" class="YTLinkButton">►</span>';
|
||||||
window.addEvent(a, 'click', function (e) {
|
window.addEvent(a, 'click', function (e) {
|
||||||
var vhref = e.target.nextSibling.href.replace(/^http(?:s|):\/\/www.youtube.com\/watch\?(.*)?(&?v=([a-z0-9\-_]+))(.*)?|http:\/\/youtu.be\//ig, "http://www.youtube.com/embed/$3");
|
var vhref = e.target.nextSibling.href.replace(/^http(?:s|):\/\/www.youtube.com\/watch\?(.*)?(&?v=([a-z0-9\-_]+))(.*)?|http:\/\/youtu.be\//ig, "http://www.youtube.com/embed/$3");
|
||||||
var text = e.target.nextSibling.innerText != "" ? e.target.nextSibling.innerText : e.target.nextSibling.href;
|
var text = e.target.nextSibling.innerText != "" ? e.target.nextSibling.innerText : e.target.nextSibling.href;
|
||||||
|
@ -410,7 +418,7 @@ ajax.index_data = function(tz) {
|
||||||
ajax.exec({
|
ajax.exec({
|
||||||
action : 'index_data',
|
action : 'index_data',
|
||||||
mode : 'change_tz',
|
mode : 'change_tz',
|
||||||
tz : tz,
|
tz : tz
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
ajax.callback.index_data = function(data) {};
|
ajax.callback.index_data = function(data) {};
|
||||||
|
@ -546,9 +554,9 @@ important_info
|
||||||
<div class="spacer_6"></div>
|
<div class="spacer_6"></div>
|
||||||
<div class="tCenter">
|
<div class="tCenter">
|
||||||
<!-- IF H_C_AL_MESS -->
|
<!-- IF H_C_AL_MESS -->
|
||||||
<input style="width: 100px;" type="button" onclick="$('input.h-cat-cbx').attr('checked',false); $('input#sec_h_cat').click(); return false;" value="Сбросить">
|
<input style="width: 100px;" type="button" onclick="$('input.h-cat-cbx').attr('checked',false); $('input#sec_h_cat').click(); return false;" value="{L_RESET}">
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
<input id="sec_h_cat" type="button" onclick="set_h_cat();" style="width: 100px;" value="Отправить">
|
<input id="sec_h_cat" type="button" onclick="set_h_cat();" style="width: 100px;" value="{L_SUBMIT}">
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function set_h_cat ()
|
function set_h_cat ()
|
||||||
{
|
{
|
||||||
|
|
|
@ -78,7 +78,7 @@ document.write('<input type="hidden" name="user_timezone" value="'+tz+'" />');
|
||||||
<!-- IF CAPTCHA_HTML -->
|
<!-- IF CAPTCHA_HTML -->
|
||||||
<tr>
|
<tr>
|
||||||
<td>{L_CONFIRM_CODE}:</td>
|
<td>{L_CONFIRM_CODE}:</td>
|
||||||
<td><span id="refresh_captcha">{CAPTCHA_HTML}</span> <img align="middle" src="/images/pic_loading.gif" title="{L_UPDATE}" onclick="ajax.exec({ action: 'user_register', mode: 'refresh_captcha'}); return false;" /></td>
|
<td><span id="refresh_captcha">{CAPTCHA_HTML}</span> <img align="middle" src="./images/pic_loading.gif" title="{L_UPDATE}" onclick="ajax.exec({ action: 'user_register', mode: 'refresh_captcha'}); return false;" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
<!-- IF EDIT_PROFILE -->
|
<!-- IF EDIT_PROFILE -->
|
||||||
|
|
|
@ -27,7 +27,7 @@ ajax.callback.user_register = function(data){
|
||||||
<!-- IF CAPTCHA_HTML -->
|
<!-- IF CAPTCHA_HTML -->
|
||||||
<tr>
|
<tr>
|
||||||
<td>{L_CONFIRM_CODE}:</td>
|
<td>{L_CONFIRM_CODE}:</td>
|
||||||
<td><span id="refresh_captcha">{CAPTCHA_HTML}</span> <img align="middle" src="/images/pic_loading.gif" title="{L_UPDATE}" onclick="ajax.exec({ action: 'user_register', mode: 'refresh_captcha'}); return false;"></td>
|
<td><span id="refresh_captcha">{CAPTCHA_HTML}</span> <img align="middle" src="./images/pic_loading.gif" title="{L_UPDATE}" onclick="ajax.exec({ action: 'user_register', mode: 'refresh_captcha'}); return false;"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -135,7 +135,7 @@ ajax.mod_action = function(topic_ids, mode, status) {
|
||||||
action : 'mod_action',
|
action : 'mod_action',
|
||||||
mode : mode,
|
mode : mode,
|
||||||
topic_ids : topic_ids,
|
topic_ids : topic_ids,
|
||||||
status : status,
|
status : status
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -458,6 +458,7 @@ td.topic_id { cursor: pointer; }
|
||||||
<!-- IF t.STATUS == MOVED --><span class="topicMoved">{L_TOPIC_MOVED}</span>
|
<!-- IF t.STATUS == MOVED --><span class="topicMoved">{L_TOPIC_MOVED}</span>
|
||||||
<!-- ELSEIF t.DL_CLASS --><span class="{t.DL_CLASS} iconDL"><b>{L_TOPIC_DL}</b></span>
|
<!-- ELSEIF t.DL_CLASS --><span class="{t.DL_CLASS} iconDL"><b>{L_TOPIC_DL}</b></span>
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
|
<!-- IF t.IS_DRAFT --><span class="topicDraft">{L_TOPIC_DRAFT}</span><!-- ENDIF -->
|
||||||
<!-- IF t.POLL --><span class="topicPoll">{L_TOPIC_POLL}</span><!-- ENDIF -->
|
<!-- IF t.POLL --><span class="topicPoll">{L_TOPIC_POLL}</span><!-- ENDIF -->
|
||||||
<!-- IF t.TOR_STALED || t.TOR_FROZEN -->
|
<!-- IF t.TOR_STALED || t.TOR_FROZEN -->
|
||||||
<!-- IF t.ATTACH --><span>{TOPIC_ATTACH_ICON}</span><!-- ENDIF -->
|
<!-- IF t.ATTACH --><span>{TOPIC_ATTACH_ICON}</span><!-- ENDIF -->
|
||||||
|
@ -559,6 +560,7 @@ td.topic_id { cursor: pointer; }
|
||||||
<!-- ELSEIF t.DL --><span class="">{L_TOPIC_DL}</span>
|
<!-- ELSEIF t.DL --><span class="">{L_TOPIC_DL}</span>
|
||||||
<!-- ELSEIF t.ATTACH -->{TOPIC_ATTACH_ICON}
|
<!-- ELSEIF t.ATTACH -->{TOPIC_ATTACH_ICON}
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
|
<!-- IF t.IS_DRAFT --><span class="topicDraft">{L_TOPIC_DRAFT}</span><!-- ENDIF -->
|
||||||
<!-- IF t.POLL --><span class="topicPoll">{L_TOPIC_POLL}</span><!-- ENDIF -->
|
<!-- IF t.POLL --><span class="topicPoll">{L_TOPIC_POLL}</span><!-- ENDIF -->
|
||||||
<a id="tt-{t.TOPIC_ID}" href="{TOPIC_URL}{t.HREF_TOPIC_ID}" class="topictitle tt-text">{t.TOPIC_TITLE}</a>
|
<a id="tt-{t.TOPIC_ID}" href="{TOPIC_URL}{t.HREF_TOPIC_ID}" class="topictitle tt-text">{t.TOPIC_TITLE}</a>
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -286,7 +286,7 @@
|
||||||
|
|
||||||
<span id="tor_comment">
|
<span id="tor_comment">
|
||||||
<!-- IF $bb_cfg['tor_comment'] -->
|
<!-- IF $bb_cfg['tor_comment'] -->
|
||||||
<input type="text" id="comment" onfocus="if(this.value=='{L_COMMENT}') this.value='';" onblur="if(this.value=='') this.value='';" value="{L_COMMENT}" class="hint" />
|
<input type="text" id="comment" onfocus="if(this.value==this.defaultValue || this.className=='hint'){this.value=''; this.className='';}" onblur="if(this.value==''){this.value=this.defaultValue; this.className='hint';}" value="{L_COMMENT}" class="hint" />
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
|
|
||||||
<!-- IF AUTH_MOD -->
|
<!-- IF AUTH_MOD -->
|
||||||
|
|
|
@ -394,8 +394,6 @@ if ($topics_csv = join(',', $topic_ids))
|
||||||
");
|
");
|
||||||
}
|
}
|
||||||
|
|
||||||
$found_topics = count($topic_rowset);
|
|
||||||
|
|
||||||
// Define censored word matches
|
// Define censored word matches
|
||||||
$orig_word = $replacement_word = array();
|
$orig_word = $replacement_word = array();
|
||||||
obtain_word_list($orig_word, $replacement_word);
|
obtain_word_list($orig_word, $replacement_word);
|
||||||
|
@ -462,6 +460,7 @@ $template->assign_vars(array(
|
||||||
));
|
));
|
||||||
|
|
||||||
// Okay, lets dump out the page ...
|
// Okay, lets dump out the page ...
|
||||||
|
$found_topics = 0;
|
||||||
foreach ($topic_rowset as $topic)
|
foreach ($topic_rowset as $topic)
|
||||||
{
|
{
|
||||||
if ($topic['is_draft'] && $topic['first_user_id'] != $userdata['user_id'])
|
if ($topic['is_draft'] && $topic['first_user_id'] != $userdata['user_id'])
|
||||||
|
@ -475,7 +474,6 @@ foreach ($topic_rowset as $topic)
|
||||||
$t_hot = ($replies >= $bb_cfg['hot_threshold']);
|
$t_hot = ($replies >= $bb_cfg['hot_threshold']);
|
||||||
$t_type = $topic['topic_type'];
|
$t_type = $topic['topic_type'];
|
||||||
$separator = '';
|
$separator = '';
|
||||||
$topic_draft = ($topic['is_draft']) ? $lang['TOPIC_DRAFT'] .' ' : '';
|
|
||||||
$is_unread = is_unread($topic['topic_last_post_time'], $topic_id, $forum_id);
|
$is_unread = is_unread($topic['topic_last_post_time'], $topic_id, $forum_id);
|
||||||
|
|
||||||
if ($t_type == POST_ANNOUNCE && !defined('ANNOUNCE_SEP'))
|
if ($t_type == POST_ANNOUNCE && !defined('ANNOUNCE_SEP'))
|
||||||
|
@ -516,7 +514,7 @@ foreach ($topic_rowset as $topic)
|
||||||
'FORUM_ID' => $forum_id,
|
'FORUM_ID' => $forum_id,
|
||||||
'TOPIC_ID' => $topic_id,
|
'TOPIC_ID' => $topic_id,
|
||||||
'HREF_TOPIC_ID' => ($moved) ? $topic['topic_moved_id'] : $topic['topic_id'],
|
'HREF_TOPIC_ID' => ($moved) ? $topic['topic_moved_id'] : $topic['topic_id'],
|
||||||
'TOPIC_TITLE' => $topic_draft . wbr($topic['topic_title']),
|
'TOPIC_TITLE' => wbr($topic['topic_title']),
|
||||||
'TOPICS_SEPARATOR' => $separator,
|
'TOPICS_SEPARATOR' => $separator,
|
||||||
'IS_UNREAD' => $is_unread,
|
'IS_UNREAD' => $is_unread,
|
||||||
'TOPIC_ICON' => ($topic['is_draft']) ? $images['draft'] : get_topic_icon($topic, $is_unread),
|
'TOPIC_ICON' => ($topic['is_draft']) ? $images['draft'] : get_topic_icon($topic, $is_unread),
|
||||||
|
@ -534,6 +532,7 @@ foreach ($topic_rowset as $topic)
|
||||||
'STATUS' => $topic['topic_status'],
|
'STATUS' => $topic['topic_status'],
|
||||||
'TYPE' => $topic['topic_type'],
|
'TYPE' => $topic['topic_type'],
|
||||||
'DL' => ($topic['topic_dl_type'] == TOPIC_DL_TYPE_DL && !$forum_data['allow_reg_tracker']),
|
'DL' => ($topic['topic_dl_type'] == TOPIC_DL_TYPE_DL && !$forum_data['allow_reg_tracker']),
|
||||||
|
'IS_DRAFT' => $topic['is_draft'],
|
||||||
'POLL' => $topic['topic_vote'],
|
'POLL' => $topic['topic_vote'],
|
||||||
'DL_CLASS' => isset($topic['dl_status']) ? $dl_link_css[$topic['dl_status']] : '',
|
'DL_CLASS' => isset($topic['dl_status']) ? $dl_link_css[$topic['dl_status']] : '',
|
||||||
|
|
||||||
|
@ -556,6 +555,7 @@ foreach ($topic_rowset as $topic)
|
||||||
'MAGNET' => $tor_magnet,
|
'MAGNET' => $tor_magnet,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
$found_topics++;
|
||||||
}
|
}
|
||||||
unset($topic_rowset);
|
unset($topic_rowset);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue