assign('mas_do',get_sibnet_do(6)); $query = 'https://vote.sibnet.ru/dev/dev_vote.php?action=get_all_votes&projectname=auto&limit=10'; $cache_class->cache_name = $query; $cache_class->cache_time = 1800; if (!$result = $cache_class->read_cache()) { if ($result=get_url_content($query,2)) { $result=@unserialize($result); $cache_class->write_cache($result); } } $smarty->assign('mas_id',$result); $smarty->display('vote/votes.tpl'); require("../inc/bottom.php"); ?>