From b76ed69a421d08d064ea04b99bc0b3b046527c6c Mon Sep 17 00:00:00 2001 From: nanosimbiot Date: Tue, 5 Jul 2011 14:49:37 +0000 Subject: [PATCH] r87 git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@87 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293 --- upload/config.php | 2 +- upload/includes/ucp/usercp_register.php | 2 +- upload/modcp.php | 4 ++-- upload/posting.php | 2 -- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/upload/config.php b/upload/config.php index 1f5e57f92..cd39fb0ab 100644 --- a/upload/config.php +++ b/upload/config.php @@ -57,7 +57,7 @@ $bb_cfg['css_ver'] = 1; // Increase number of revision after update $bb_cfg['tp_version'] = '2.0.2'; -$bb_cfg['tp_release_state'] = 'TP II r85'; +$bb_cfg['tp_release_state'] = 'TP II r86'; $bb_cfg['tp_release_date'] = '05-07-2011'; $bb_cfg['board_disabled_msg'] = 'форум временно отключен'; // 'forums temporarily disabled'; // show this msg if board has been disabled via ON/OFF trigger diff --git a/upload/includes/ucp/usercp_register.php b/upload/includes/ucp/usercp_register.php index 70739a495..3e9cd47d4 100644 --- a/upload/includes/ucp/usercp_register.php +++ b/upload/includes/ucp/usercp_register.php @@ -41,7 +41,7 @@ switch ($mode) if (!IS_ADMIN) { // Ограничение по ипу - if($bb_cfg['user_unique_ip']) + if($bb_cfg['unique_ip']) { if($users = DB()->fetch_row("SELECT user_id, username FROM ". BB_USERS ." WHERE user_reg_ip = '". USER_IP ."' LIMIT 1")) { diff --git a/upload/modcp.php b/upload/modcp.php index f69b0a34c..b7c47ed6e 100644 --- a/upload/modcp.php +++ b/upload/modcp.php @@ -243,7 +243,7 @@ switch ($mode) if(isset($news_forums[$forum_id]) && $bb_cfg['show_latest_news'] && $result) { $datastore->enqueue('latest_news'); - $atastore->update('latest_news'); + $datastore->update('latest_news'); } $msg = ($result) ? $lang['TOPICS_REMOVED'] : 'No topics were removed'; @@ -272,7 +272,7 @@ switch ($mode) if((isset($news_forums[$forum_id]) || isset($news_forums[$new_forum_id])) && $bb_cfg['show_latest_news'] && $result) { $datastore->enqueue('latest_news'); - $atastore->update('latest_news'); + $datastore->update('latest_news'); } $msg = ($result) ? $lang['TOPICS_MOVED'] : $lang['NO_TOPICS_MOVED']; diff --git a/upload/posting.php b/upload/posting.php index 510e486f6..478cf9695 100644 --- a/upload/posting.php +++ b/upload/posting.php @@ -638,8 +638,6 @@ else define('WORD_LIST_OBTAINED', TRUE); } - $msg_date = bb_date($postrow['post_time']); - // Use trim to get rid of spaces placed there by MS-SQL 2000 $quote_username = ( trim($post_info['post_username']) != '' ) ? $post_info['post_username'] : $post_info['username']; $message = '[quote="' . $quote_username . '"]' . $message . '[/quote]';