iFlooder
Пользователь
displaying_torrent
Найти
Заменить на
Найти
Заменить
В корне заменить файл на тот, что в атаче.
Найти
PHP:
//Thanks mod
'RATING' => '<span id="VR'.$attach_id.'">'. ($rating_sum ? round($rating_sum/$rating_count,1) : '-') .'</span>',
'RATING_VOTES' => '<span id="VC'.$attach_id.'">'. $rating_count .'</span>',
'THANKED' => '<span id="VT'.$attach_id.'">'. $thanks .'</span>'
. ($thanked || ($userdata['user_id'] == $poster_id) ? '' : '<span id="VB'.$attach_id.'">'. ' <img src="images/sps.gif" onClick="this.disabled=true;ajax_do(\''
. append_sid("thanks.php?mode=thank&a=" . $attach_id) .'\');" alt="'. $lang['THANKS'] .'" style="cursor:pointer" /></span>')
. ($thanks > 0 ? ' (<span id="VL'.$attach_id.'"><a href="#torrent" onClick="ajax_do(\'thanks.php?mode=list&a='.$attach_id.'\');">'. $lang['THANK_LIST'] .'</a></span>)' : ''),
'YOUR_VOTE' => $your_vote > 0 ? $your_vote : '',
'DO_VOTE' => $userdata['user_id'] == ANONYMOUS ? '' : ('<span id="VD'.$attach_id.'">'. $rate_html .'</span>'),
//Thanks mod End
PHP:
//Thanks mod
'RATING' => '<span id="VR'.$attach_id.'">'. ($rating_sum ? round($rating_sum/$rating_count,1) : '-') .'</span>',
'RATING_VOTES' => '<span id="VC'.$attach_id.'">'. $rating_count .'</span>',
'THANKED' => '<span id="VT'.$attach_id.'">'. $thanks .'</span>'
. ($thanked || ($userdata['user_id'] == $poster_id) ? '' : '<span id="VB'.$attach_id.'">'. ' <img src="images/sps.gif" onClick="this.disabled=true;ajax_do(\''
. "thanks.php?mode=thank&a=" . $attach_id .'\');" alt="'. $lang['THANKS'] .'" style="cursor:pointer" /></span>')
. ($thanks > 0 ? ' (<span id="VL'.$attach_id.'"><a href="#torrent" onClick="ajax_do(\'thanks.php?mode=list&a='.$attach_id.'\');">'. $lang['THANK_LIST'] .'</a></span>)' : ''),
'YOUR_VOTE' => $your_vote > 0 ? $your_vote : '',
'DO_VOTE' => $userdata['user_id'] == ANONYMOUS ? '' : ('<span id="VD'.$attach_id.'">'. $rate_html .'</span>'),
//Thanks mod End
PHP:
$rate_html = '';
for ($r = 5; $r >= 1; $r-- ) {
$rate_html .= '<input type="radio" name="rate'.$attach_id.'" value="'.$r.'" onClick="ajax_do(\''
. append_sid("rate.php?a=" . $attach_id . "&v=" . $r ) .'\');" />'
. '<span onclick="nodeClick(this);">' . $lang['RATING_'.$r] . '</span>';
}
PHP:
$rate_html = '';
for ($r = 5; $r >= 1; $r-- ) {
$rate_html .= '<input type="radio" name="rate'.$attach_id.'" value="'.$r.'" onClick="ajax_do(\''
. "rate.php?a=" . $attach_id . "&v=" . $r .'\');" />'
. '<span onclick="nodeClick(this);">' . $lang['RATING_'.$r] . '</span>';
}