Код: Выделить всё
#
#------[OPEN]--------------
#
includes/usercp_reputation.php
#
#------[FIND]--------------
# NOTE: ONLY phpbb 2.0.18 or newest
#
$sql = "DELETE FROM " . SESSIONS_TABLE . "
WHERE session_user_id = $user_id";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Couldn't delete banned session from database", "", __LINE__, __FILE__, $sql);
}
#
#------[AFTER ADD]--------------
# for compatible phpbb 2.0.18 or newest
#
$sql = "DELETE FROM " . SESSIONS_KEYS_TABLE . "
WHERE user_id = $user_id";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Couldn't delete banned session from database", "", __LINE__, __FILE__, $sql);
}
#
#------[OPEN]--------------
#
viewtopic.php
#
#------[FIND]--------------
#
#
$temp_url = append_sid("profile.$phpEx?mode=reputation&");
$user_reputation = $lang['Reputation'] . ': ' . $postrow[$i]['reputation'];
if ( $postrow[$i]['user_id'] != $userdata['user_id'] && $userdata['user_id'] != ANONYMOUS )
{
$user_reputation .= ' <a href="' . $temp_url . 'm=' . REPUTATION_INC . '&p=' . $postrow[$i]['post_id']. '">' . $thumb_up_img . '</a> <a href="' . $temp_url . 'm=' . REPUTATION_DEC . '&p=' . $postrow[$i]['post_id']. '">' . $thumb_dn_img . '</a>';
}
#
#------[REPLACE WITH]--------------
#
$temp_url = "profile.$phpEx?mode=reputation&";
if ( $postrow[$i]['reputation'] > 0 || $postrow[$i]['warnings'] > 0)
{
$user_reputation = '<a href="' . append_sid($temp_url . "m=" . REPUTATION_VIEW . '&u=' . $postrow[$i]['user_id']) . '" title="' . $lang['reputation_view_details'] . '">' . $lang['Reputation'] . '</a>' . ': ' . $postrow[$i]['reputation'];
}
else
{
$user_reputation = $lang['Reputation'] . ': ' . $postrow[$i]['reputation'];
}
if ( $postrow[$i]['user_id'] != $userdata['user_id'] && $userdata['user_id'] != ANONYMOUS )
{
$user_reputation .= ' <a href="' . append_sid($temp_url . 'm=' . REPUTATION_INC . '&p=' . $postrow[$i]['post_id']) . '">' . $thumb_up_img . '</a> <a href="' . append_sid($temp_url . 'm=' . REPUTATION_DEC . '&p=' . $postrow[$i]['post_id']) . '">' . $thumb_dn_img . '</a>' . '<br />';
}
#------[FIND]--------------
#
#
$user_warnings = '<div style="margin:4px 1px 4px 1px"><a href="' . $temp_url . POST_USERS_URL . '=' . $postrow[$i]['user_id'] . '&m=0">';
#
#------[REPLACE WITH]--------------
#
$temp_url = append_sid("profile.$phpEx?mode=reputation&" . POST_USERS_URL . '=' . $postrow[$i]['user_id'] . '&m=0');
$user_warnings = '<div style="margin:4px 1px 4px 1px"><a href="' . $temp_url . '">';
#------[FIND]--------------
#
#
$temp_url = append_sid("profile.$phpEx?mode=reputation&m=" . REPUTATION_VIEW . '&' . POST_POST_URL . '=' . $postrow[$i]['post_id']);
#
#------[REPLACE WITH]--------------
#
$temp_url = append_sid("profile.$phpEx?mode=reputation&m=" . REPUTATION_VIEW . '&' . POST_POST_URL . '=' . $postrow[$i]['post_id']);
#------[FIND]--------------
#
#
if ( $board_config['reputation_moderators_can_ban'] == 1 )
#
#------[REPLACE WITH]--------------
#
if ( ($board_config['reputation_moderators_can_ban'] == 1) || ($userdata['user_level'] == ADMIN) )
#------[FIND]--------------
#
#
if ( $board_config['warnings_enabled'] )
{
if( $userdata['user_id'] != ANONYMOUS )
{
$temp_url = "post_report.$phpEx?mode=report&" . POST_POST_URL . "=" . $postrow[$i]['post_id'] . "&sid=" . $userdata['session_id'];
#
#------[REPLACE WITH]--------------
#
if ( $board_config['warnings_enabled'] && $postrow[$i]['user_level'] != ADMIN)
{
if( $userdata['user_id'] != ANONYMOUS && $userdata['user_id'] != $poster_id)
{
$temp_url = "post_report.$phpEx?mode=report&" . POST_POST_URL . "=" . $postrow[$i]['post_id'] . "&sid=" . $userdata['session_id'];