mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 10:37:30 -07:00
Translations for config.php, raised scrape interval (#1100)
This commit is contained in:
parent
6ae8dc8d5e
commit
7e4a76dc02
5 changed files with 104 additions and 98 deletions
|
@ -2066,8 +2066,6 @@ function hash_search($hash)
|
|||
bb_die(sprintf($lang['HASH_INVALID'], $hash));
|
||||
}
|
||||
|
||||
$info_hash = DB()->escape(pack('H*', $hash));
|
||||
|
||||
// Check info_hash version
|
||||
if (mb_strlen($hash, 'UTF-8') == 40) {
|
||||
$info_hash_where = "WHERE info_hash = '$info_hash'";
|
||||
|
@ -2077,6 +2075,8 @@ function hash_search($hash)
|
|||
bb_die(sprintf($lang['HASH_INVALID'], $hash));
|
||||
}
|
||||
|
||||
$info_hash = DB()->escape(pack('H*', $hash));
|
||||
|
||||
if ($row = DB()->fetch_row("SELECT topic_id FROM " . BB_BT_TORRENTS . " $info_hash_where")) {
|
||||
redirect(TOPIC_URL . $row['topic_id']);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue