<!-- IF SHOW_GOLDEN_DAYS -->
<a href="{U_INDEX}"><img src="images/goldday.png" title="Золотой День: Скачаное не учитывается, Отданное учитывается в полной объеме." alt="{SITENAME}"/></a> (картинка "А")
<!-- ELSE -->
<a href="{U_INDEX}"><img src="images/logo/logo.png" alt="{SITENAME}"/></a> (Картинка "Б")
<!-- ENDIF -->
// Update TOTAL user's dlstat
if (in_array(date("d"), explode(",",$bb_cfg['golddays'])))
{
DB()->query("
UPDATE
". BB_BT_USERS ." u,
". NEW_BB_BT_LAST_USERSTAT ." ub
SET
u.u_up_total = u.u_up_total + ub.up_add,
u.u_down_total = u.u_down_total,
u.u_up_release = u.u_up_release + ub.release_add,
u.u_up_bonus = u.u_up_bonus + ub.bonus_add,
u.up_today = u.up_today + ub.up_add,
u.down_today = u.down_today + ub.down_add,
u.up_release_today = u.up_release_today + ub.release_add,
u.up_bonus_today = u.up_bonus_today + ub.bonus_add
WHERE u.user_id = ub.user_id
");
}
else
{
DB()->query("
UPDATE
". BB_BT_USERS ." u,
". NEW_BB_BT_LAST_USERSTAT ." ub
SET
u.u_up_total = u.u_up_total + ub.up_add,
u.u_down_total = u.u_down_total + ub.down_add,
u.u_up_release = u.u_up_release + ub.release_add,
u.u_up_bonus = u.u_up_bonus + ub.bonus_add,
u.up_today = u.up_today + ub.up_add,
u.down_today = u.down_today + ub.down_add,
u.up_release_today = u.up_release_today + ub.release_add,
u.up_bonus_today = u.up_bonus_today + ub.bonus_add
WHERE u.user_id = ub.user_id
");
}
'GOLDDAYS' => $new['golddays'],
<tr class="row3 med">
<td class="bold tCenter" colspan="2">{L_GOLDDAYS}</td>
</tr>
<tr>
<td><h4>{L_GOLDDAYS_ABOUT}</h4></td>
<td><input class="post" type="text" size="25" maxlength="100" name="golddays" value="{GOLDDAYS}" /></td>
</tr>
$lang['GOLDDAYS'] = 'Золотые дни';
$lang['GOLDDAYS_ABOUT'] = 'Золотые дни <br /> <h6>Задаются дни на каждый месяц</h6>';