super_query("SELECT onserver FROM " . PREFIX . "_torrents WHERE id='{$id}'"); if( !$content ){ require_once SYSTEM_DIR . '/classes/torrent.class.php'; $FilesTorrent = new Torrent(ROOT_DIR.'/uploads/torrents/'.$row['onserver']); $content = $FilesTorrent->content(); } foreach ($content as $cx => $v) { $count_filesx = count($content); $ssdx = mksize($v); // Кодировка win1251 (CP1251) $cx = iconv("UTF-8", $config['charset'], $cx ); $torrent_filesx .= " {$cx} {$ssdx} / ({$v}) "; } @header("Content-type: text/html; charset={$config['charset']}"); echo "" . $torrent_filesx . "
ФайлРазмер
"; ?>