mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 14:10:57 +08:00
announce use warn() + one IP one client
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user