del h&R when del torrent

This commit is contained in:
xiaomlove
2022-05-03 00:38:50 +08:00
parent 07bd1f724b
commit 17339bda67
5 changed files with 12 additions and 9 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
<?php
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.7.7');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2022-04-30');
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.7.8');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2022-05-03');
defined('IN_TRACKER') || define('IN_TRACKER', true);
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
+1
View File
@@ -2952,6 +2952,7 @@ function deletetorrent($id) {
foreach(array("peers", "files", "comments") as $x) {
sql_query("DELETE FROM $x WHERE torrent = ".mysql_real_escape_string($id));
}
sql_query("DELETE FROM hit_and_runs WHERE torrent_id = ".mysql_real_escape_string($id));
unlink(getFullDirectory("$torrent_dir/$id.torrent"));
}