mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
improve job log
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
require '../include/bittorrent_announce.php';
|
||||
require ROOT_PATH . 'include/core.php';
|
||||
do_log(nexus_json_encode($_SERVER));
|
||||
//do_log(nexus_json_encode($_SERVER));
|
||||
//1. BLOCK ACCESS WITH WEB BROWSERS AND CHEATS!
|
||||
$agent = $_SERVER["HTTP_USER_AGENT"] ?? '';
|
||||
block_browser();
|
||||
@@ -155,7 +155,7 @@ if ($torrent['approval_status'] != \App\Models\Torrent::APPROVAL_STATUS_ALLOW &&
|
||||
if ($seeder == 'no' && isset($torrent['price']) && $torrent['price'] > 0 && $torrent['owner'] != $userid) {
|
||||
$hasBuy = \App\Models\TorrentBuyLog::query()->where('uid', $userid)->where('torrent_id', $torrent['id'])->exists();
|
||||
if (!$hasBuy) {
|
||||
err("You have not buy the torrent yet");
|
||||
err("You have not purchased this torrent yet");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user