mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-23 19:37:23 +08:00
improve job log
This commit is contained in:
+2
-2
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -225,7 +225,6 @@ if (user_can('userprofile')) {
|
||||
|
||||
if ($iphistory > 0)
|
||||
tr_small($lang_userdetails['row_ip_history'], $lang_userdetails['text_user_earlier_used']."<b><a href=\"iphistory.php?id=" . $user['id'] . "\">" . $iphistory. $lang_userdetails['text_different_ips'].add_s($iphistory, true)."</a></b>", 1);
|
||||
|
||||
}
|
||||
$seedBoxRep = new \App\Repositories\SeedBoxRepository();
|
||||
if (user_can('userprofile') || $user["id"] == $CURUSER["id"])
|
||||
|
||||
Reference in New Issue
Block a user