B
Blink70v
Guest
Good morning.
But I feel that the code adds of hits every day ...
How can he adds just +100 hits the first days ?
Code source
I need to change like this ?
But I feel that the code adds of hits every day ...
How can he adds just +100 hits the first days ?
Code source
PHP:
// Free 100 hits in
$DB->query("UPDATE {$CONF['sql_prefix']}_stats SET
unq_in_0_daily = unq_in_0_daily + 100,
unq_in_max_daily = unq_in_max_daily + 100,
tot_in_0_daily = tot_in_0_daily + 100,
tot_in_max_daily = tot_in_max_daily + 100,
unq_in_0_weekly = unq_in_0_weekly + 100,
unq_in_max_weekly = unq_in_max_weekly + 100,
tot_in_0_weekly = tot_in_0_weekly + 100,
tot_in_max_weekly = tot_in_max_weekly + 100,
unq_in_0_monthly = unq_in_0_monthly + 100,
unq_in_max_monthly = unq_in_max_monthly + 100,
tot_in_0_monthly = tot_in_0_monthly + 100,
tot_in_max_monthly = tot_in_max_monthly + 100 WHERE username = '{$username}'", __FILE__, __LINE__);
I need to change like this ?
PHP:
// Free 100 hits in
$DB->query("UPDATE {$CONF['sql_prefix']}_stats SET
unq_in_0_daily = unq_in_0_daily + 100 HERE username = '{$username}'", __FILE__, __LINE__);