improve torrent download url

This commit is contained in:
xiaomlove
2021-06-10 00:50:17 +08:00
parent 58e7fedb38
commit 4b5e223498
2 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -65,7 +65,9 @@ if (@ini_get('output_handler') == 'ob_gzhandler' AND @ob_get_length() !== false)
}
*/
$base_announce_url = get_base_announce_url();
$trackerSchemaAndHost = get_tracker_schema_and_host();
$ssl_torrent = $trackerSchemaAndHost['ssl_torrent'];
$base_announce_url = $trackerSchemaAndHost['base_announce_url'];
$res = sql_query("SELECT torrents.name, torrents.filename, torrents.save_as, torrents.size, torrents.owner, torrents.banned, categories.mode as search_box_id FROM torrents left join categories on torrents.category = categories.id WHERE torrents.id = ".sqlesc($id)) or sqlerr(__FILE__, __LINE__);
$row = mysql_fetch_assoc($res);