announce use warn() + one IP one client

This commit is contained in:
xiaomlove
2023-06-10 02:07:56 +08:00
parent 3bf2b3591a
commit 7d1af5b351
4 changed files with 69 additions and 43 deletions

View File

@@ -11,7 +11,7 @@ preg_match_all('/info_hash=([^&]*)/i', $_SERVER["QUERY_STRING"], $info_hash_arra
$fields = "info_hash, times_completed, seeders, leechers";
if (count($info_hash_array[1]) < 1) {
err("Require info_hash.");
warn("Require info_hash.", 86400);
// $query = "SELECT $fields FROM torrents ORDER BY id";
}
else {
@@ -29,7 +29,7 @@ if ($cacheData) {
$res = sql_query($query);
if (mysql_num_rows($res) < 1){
err("Torrent not registered with this tracker.");
warn("Torrent not registered with this tracker.", 86400);
}
$torrent_details = [];