окраска при переносах git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@345 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
pherum83 2012-01-31 20:05:24 +00:00
commit 334c3715c6
2 changed files with 4 additions and 6 deletions

View file

@ -63,7 +63,7 @@ $bb_cfg = $tr_cfg = $page_cfg = array();
// Increase number of revision after update // Increase number of revision after update
$bb_cfg['tp_version'] = '2.4 (beta)'; $bb_cfg['tp_version'] = '2.4 (beta)';
$bb_cfg['tp_release_state'] = 'R344'; $bb_cfg['tp_release_state'] = 'R345';
$bb_cfg['tp_release_date'] = '31-01-2012'; $bb_cfg['tp_release_date'] = '31-01-2012';
// Database // Database

View file

@ -645,8 +645,6 @@ function insert_post ($mode, $topic_id, $forum_id = '', $old_forum_id = '', $new
$post_username = $post_subject = $post_text = $poster_ip = ''; $post_username = $post_subject = $post_text = $poster_ip = '';
$post_time = $current_time = TIMENOW; $post_time = $current_time = TIMENOW;
$username = $userdata['username'];
$user_id = $userdata['user_id'];
if ($mode == 'after_move') if ($mode == 'after_move')
{ {
@ -663,14 +661,14 @@ function insert_post ($mode, $topic_id, $forum_id = '', $old_forum_id = '', $new
} }
if (!$forum_names) return; if (!$forum_names) return;
$post_text = sprintf($lang['BOT_TOPIC_MOVED_FROM_TO'], "<a class=\"gen\" href=\"viewforum.php?f=$old_forum_id\">$forum_names[$old_forum_id]</a>", "<a class=\"gen\" href=\"viewforum.php?f=$forum_id\">$forum_names[$forum_id]</a>", "<a class=\"gen\" href=\"profile.php?mode=viewprofile&u=$user_id\">$username</a>"); $post_text = sprintf($lang['BOT_TOPIC_MOVED_FROM_TO'], "<a class=\"gen\" href=\"viewforum.php?f=$old_forum_id\">$forum_names[$old_forum_id]</a>", "<a class=\"gen\" href=\"viewforum.php?f=$forum_id\">$forum_names[$forum_id]</a>", profile_url($userdata));
$poster_id = BOT_UID; $poster_id = BOT_UID;
$poster_ip = '7f000001'; $poster_ip = '7f000001';
} }
else if ($mode == 'after_split_to_old') else if ($mode == 'after_split_to_old')
{ {
$post_text = sprintf($lang['BOT_MESS_SPLITS'], "<a class=\"gen\" href=\"viewtopic.php?t=$new_topic_id\">". htmlCHR($new_topic_title) ."</a>", "<a class=\"gen\" href=\"profile.php?mode=viewprofile&u=$user_id\">$username</a>"); $post_text = sprintf($lang['BOT_MESS_SPLITS'], "<a class=\"gen\" href=\"viewtopic.php?t=$new_topic_id\">". htmlCHR($new_topic_title) ."</a>", profile_url($userdata));
$poster_id = BOT_UID; $poster_id = BOT_UID;
$poster_ip = '7f000001'; $poster_ip = '7f000001';
@ -687,7 +685,7 @@ function insert_post ($mode, $topic_id, $forum_id = '', $old_forum_id = '', $new
$old_topic_title = $row['topic_title']; $old_topic_title = $row['topic_title'];
$post_time = $row['post_time'] - 1; $post_time = $row['post_time'] - 1;
$post_text = sprintf($lang['BOT_TOPIC_SPLITS'], "<a class=\"gen\" href=\"viewtopic.php?t=$old_topic_id\">$old_topic_title</a>", "<a class=\"gen\" href=\"profile.php?mode=viewprofile&u=$user_id\">$username</a>"); $post_text = sprintf($lang['BOT_TOPIC_SPLITS'], "<a class=\"gen\" href=\"viewtopic.php?t=$old_topic_id\">$old_topic_title</a>", profile_url($userdata));
$poster_id = BOT_UID; $poster_id = BOT_UID;
$poster_ip = '7f000001'; $poster_ip = '7f000001';