ar_cached = array(); $index_cache_item = get_full_path(append_path(PATH_CACHE, INDEX_CACHE_ITEM)); $start_time = microtime(1); $cache = file_get_contents($index_cache_item); stat_io(STAT_R, $start_time); if ( $cache ) { $ar = unserialize($cache); if ( is_array($ar) ) { $this->ar_cached = $ar; } else { htrace(__METHOD__."(): can't unserialize cached array"); } } else { require_once("site/gearmand_client.phpi"); htrace(__METHOD__."(): can't read cached array, sending rebuild request"); rcall()->rebuild_index_cache(); } } private function gen_forum_recent() { $html = $this->ar_cached['forum']; if ( $html ) { if ( need_sid() ) { require_once("lib/body_parser.phpi"); $parser = new CBodyParser($html); $parser->link_sid(); $html = $parser->get_body(); } /* Correct times */ $html = replace_time_marks($html, _DT_SHORT_MONTH|_DT_NO_YEAR); echo "
|
Статьи из журнала Citywalls.RU
|
Подписка на новости Citywalls.RU
Введите email для получения новостей:
|