Browse Source

Update 'sections/log/index.php'

Respect anonymity on filling request
Neesrod 1 month ago
parent
commit
6a1352eeca
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      sections/log/index.php

+ 7
- 0
sections/log/index.php View File

@@ -105,6 +105,13 @@ while (list($ID, $Message, $LogTime) = $DB->next_record()) {
105 105
             $UserID = $MessageParts[++$i];
106 106
           }
107 107
           $URL = "user $UserID (<a href=\"user.php?id=$UserID\">".substr($MessageParts[++$i], 1, -1).'</a>)';
108
+          if ($MessageParts[$i - 4] == 'filled')) {
109
+            $DB->query("SELECT UserID, Anonymous FROM torrents WHERE ID = ?", $MessageParts[$i + 4]);
110
+            if ($DB->has_results()) {
111
+              list($UploaderID, $AnonTorrent) = $DB->next_record();
112
+              if ($AnonTorrent && $UploaderID == $UserID) $URL = '<em>Anonymous</em>';
113
+            }
114
+          }
108 115
         } elseif (in_array($MessageParts[$i - 1], ['deleted', 'uploaded', 'edited', 'created', 'recovered'])) {
109 116
           $User = $MessageParts[++$i];
110 117
           if (substr($User, -1) == ':') {

Loading…
Cancel
Save