Проблема с обнулением статистики в 2.1.3 решается следующим образом:
func_boardstats.phpCODE
if ($this->users_online > $stats['most_count'])
{
$stats['most_count'] = $this->users_online;
$stats['most_date'] = time();
$this->DB->manual_addslashes = 1;
$this->DB->no_escape_fields['cs_key'] = 1;
$this->ipsclass->DB->do_update( 'cache_store',
array( 'cs_array' => 1, 'cs_value' => $this->ipsclass->DB->add_slashes(serialize($stats)) ),
"cs_key='stats'"
);
$this->DB->manual_addslashes = 0;
}
заменяем на:
CODE
if ($this->users_online > $stats['most_count'])
{
$stats['most_count'] = $this->users_online;
$stats['most_date'] = time();
$this->ipsclass->DB->obj['use_shutdown'] = 0;
$this->ipsclass->cache['stats'] = $stats;
$this->ipsclass->update_cache( array( 'name' => 'stats', 'array' => 1, 'deletefirst' => 1 ) );
}
rebuild.phpCODE
$this->ipsclass->DB->simple_exec_query( array( 'delete' => 'cache_store', 'where' => "cs_key='stats'" ) );
$this->ipsclass->DB->do_insert( 'cache_store', array( 'cs_array' => 1, 'cs_key' => 'stats', 'cs_value' => addslashes(serialize($stats)) ) );
заменяем на:
CODE
$this->ipsclass->cache['stats'] = $stats;
$this->ipsclass->update_cache( array( 'name' => 'stats', 'array' => 1, 'deletefirst' => 1 ) );
И делаем
Пересчет статистики в АЦ