change announce hr handle

This commit is contained in:
xiaomlove
2023-09-20 01:14:08 +08:00
parent 6128c17aa4
commit 36aa10f64f
5 changed files with 44 additions and 133 deletions

View File

@@ -1,6 +1,6 @@
<?php
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.8.7');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2023-09-14');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2023-09-20');
defined('IN_TRACKER') || define('IN_TRACKER', false);
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");

View File

@@ -1205,3 +1205,7 @@ function is_danger_url($url): bool
return false;
}
function get_snatch_info($torrentId, $userId)
{
return mysql_fetch_assoc(sql_query(sprintf('select * from snatched where torrentid = %s and userid = %s order by id desc limit 1', $torrentId, $userId)));
}