} else $tpl->set( '{favorite-count}', '0', count(explode(",", $_COOKIE['dle_favorites'])) );
set_vars( "cron", $_TIME );
set_vars( "cron", $cron_data );
if($_SERVER['REQUEST_URI'] == '/favorites') {
if ($do == 'favorites') { } else { $count_cache_path = ENGINE_DIR . '/cache/news_select-count.tmp'; if (file_exists($count_cache_path)) { $temp = file_get_contents($count_cache_path); $count_cache = $temp ? json_decode($temp, true) : []; unset($temp); } else { $count_cache = []; } $cache_hash = md5($sql_count); if (!is_null($count_cache[$cache_hash])) { $count_all = (int)$count_cache[$cache_hash]; } else { }
if ($do == 'favorites') { } else { $count_cache[$cache_hash] = (int)$count_all; file_put_contents($count_cache_path, json_encode($count_cache)); } unset($count_cache); }