mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 06:13:58 -07:00
r294
Фиксы багов выявленных бета тестерами git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@294 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
parent
bd2f5bb979
commit
ec91bce317
7 changed files with 21 additions and 24 deletions
|
@ -77,6 +77,10 @@ switch($this->request['type'])
|
|||
$message = (!empty($message)) ? preg_replace($orig_word, $replace_word, $message) : '';
|
||||
}
|
||||
|
||||
if($post['post_attachment'] || $post['topic_first_post_id'])
|
||||
{
|
||||
$message = '[quote]'. $post['topic_title'] .'[/quote]';
|
||||
}
|
||||
if(mb_strlen($message, 'UTF-8') > 1000)
|
||||
{
|
||||
$this->response['redirect'] = make_url('posting.php?mode=quote&p='. $post_id);
|
||||
|
|
|
@ -53,8 +53,8 @@ $bb_cfg = $tr_cfg = $page_cfg = array();
|
|||
|
||||
// Increase number of revision after update
|
||||
$bb_cfg['tp_version'] = '2.1 Stable';
|
||||
$bb_cfg['tp_release_state'] = 'R293';
|
||||
$bb_cfg['tp_release_date'] = '20-09-2011';
|
||||
$bb_cfg['tp_release_state'] = 'R294';
|
||||
$bb_cfg['tp_release_date'] = '30-09-2011';
|
||||
|
||||
// Database
|
||||
$charset = 'utf8';
|
||||
|
@ -508,7 +508,9 @@ $bb_cfg['copyright_holders_html_path'] = $bb_cfg['html_path'] .'copyright_holder
|
|||
$bb_cfg['advert_html_path'] = $bb_cfg['html_path'] .'advert.html'; #
|
||||
|
||||
// Captcha
|
||||
$bb_cfg['captcha']['disabled'] = false;
|
||||
$bb_cfg['captcha']['secret_key'] = 'secret_key';
|
||||
$bb_cfg['captcha']['img_url'] = './images/captcha/'; # without '/'
|
||||
$bb_cfg['captcha']['img_path'] = BB_PATH .'/images/captcha/'; # without '/'
|
||||
$bb_cfg['captcha'] = array(
|
||||
'disabled' => false,
|
||||
'secret_key' => 'secret_key',
|
||||
'img_url' => './images/captcha/', # without '/'
|
||||
'img_path' => BB_PATH .'/images/captcha/', # without '/'
|
||||
);
|
||||
|
|
|
@ -15,6 +15,6 @@ foreach ($gc_cache as $cache_name)
|
|||
if (method_exists(CACHE($cache_name), 'gc'))
|
||||
{
|
||||
$changes = CACHE($cache_name)->gc();
|
||||
$cron_runtime_log .= date('Y-m-d H:i:s') ." -- tr -- $changes rows deleted\n";
|
||||
$cron_runtime_log = date('Y-m-d H:i:s') ." -- tr -- $changes rows deleted\n";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
if (!defined('BB_ROOT')) die(basename(__FILE__));
|
||||
|
||||
global $tr_cfg;
|
||||
|
||||
$releaser = DL_STATUS_RELEASER;
|
||||
|
||||
if($bb_cfg['announce_type'] != 'xbt')
|
||||
|
|
|
@ -49,8 +49,7 @@
|
|||
<!-- IF SHOW_FORUMS -->
|
||||
|
||||
<!-- IF H_C_AL_MESS -->
|
||||
<div class="row1 med tCenter pad_4 border bw_TRBL">{L_HIDE_CAT_MESS}</div>
|
||||
<div class="cat_separator"></div>
|
||||
<div class="row1 med tCenter pad_4 border bw_TRBL" style="margin: 4px 0;">{L_HIDE_CAT_MESS}</div>
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- BEGIN c -->
|
||||
|
|
|
@ -382,20 +382,9 @@ td.topic_id { cursor: pointer; }
|
|||
</td>
|
||||
<td class="med" style="padding: 0 4px 2px 4px;">|</td>
|
||||
<td class="small nowrap" style="padding: 0;">{L_TOPICS_PER_PAGE}:</td>
|
||||
<td class="small nowrap" style="padding: 0 0 0 3px;">{SELECT_TPP}</td>
|
||||
<!-- IF TORRENTS -->
|
||||
<td class="small nowrap" style="padding: 0 0 0 6px;">{L_STATUS}:</td>
|
||||
<td class="small nowrap" style="padding: 0 0 0 3px;">{SELECT_TST}</td>
|
||||
<!-- ENDIF -->
|
||||
<td class="small nowrap" style="padding: 0 0 0 3px;"> <input id="tst-submit-btn" type="button" class="bold" value="»" style="width: 30px;" onclick="mod_goto(); return false;" /></td>
|
||||
<script type="text/javascript">
|
||||
function mod_goto(){
|
||||
window.location = '{MOD_URL}' +'&tpp='+ $('#tpp').val() <!-- IF TORRENTS -->+'&tst='+ $('#tst').val()<!-- ENDIF --> +'&mod=1';
|
||||
}
|
||||
$(function(){
|
||||
$('#tst').bind('change', function(){ $('#tst-submit-btn').attr({disabled: 1}); mod_goto(); });
|
||||
});
|
||||
</script>
|
||||
<td class="small nowrap" style="padding: 0 0 0 3px;">
|
||||
<form id="tpp" action="{PAGE_URL_TPP}" method="post">{SELECT_TPP}</form>
|
||||
</td>
|
||||
<!-- ENDIF / AUTH_MOD -->
|
||||
|
||||
<td class="small bold nowrap tRight w100">
|
||||
|
|
|
@ -440,7 +440,7 @@ $template->assign_vars(array(
|
|||
'ONLY_NEW_TOPICS_ON' => ($only_new == ONLY_NEW_TOPICS),
|
||||
|
||||
'TITLE_MATCH' => htmlCHR($title_match),
|
||||
'SELECT_TPP' => ($select_tpp) ? build_select('tpp', $select_tpp, $topics_per_page) : '',
|
||||
'SELECT_TPP' => ($select_tpp) ? build_select('tpp', $select_tpp, $topics_per_page, null, null, 'onchange="$(\'#tpp\').submit();"') : '',
|
||||
'T_POST_NEW_TOPIC' => ($forum_data['forum_status'] == FORUM_LOCKED) ? $lang['FORUM_LOCKED'] : $lang['POST_NEW_TOPIC'],
|
||||
'S_AUTH_LIST' => $u_auth,
|
||||
'U_VIEW_FORUM' => FORUM_URL . $forum_id,
|
||||
|
@ -572,6 +572,7 @@ else
|
|||
|
||||
$template->assign_vars(array(
|
||||
'PAGE_URL' => $pg_url,
|
||||
'PAGE_URL_TPP' => url_arg($pg_url, 'tpp', null),
|
||||
'FOUND_TOPICS' => $found_topics,
|
||||
|
||||
'AUTH_MOD' => $is_auth['auth_mod'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue