Browse Source

Show username behind anonymous for mods

spaghetti 7 years ago
parent
commit
8adb0113c5
1 changed files with 11 additions and 1 deletions
  1. 11
    1
      sections/torrents/details.php

+ 11
- 1
sections/torrents/details.php View File

@@ -543,7 +543,17 @@ foreach ($TorrentList as $Torrent) {
543 543
         <td colspan="5">
544 544
           <div id="release_<?=$TorrentID?>" class="no_overflow">
545 545
             <blockquote>
546
-              Uploaded by <?=($Anonymous ? '<em>Anonymous</em>' : Users::format_username($UserID, false, false, false))?> <?=time_diff($TorrentTime);?>
546
+              Uploaded by <?
547
+  if ($Anonymous) {
548
+    if (check_perms('users_mod')) { ?>
549
+      <em class="tooltip" title="<?=Users::user_info($UserID)['Username']?>">Anonymous</em>
550
+<?  } else {
551
+      ?><em>Anonymous</em><?
552
+    }
553
+  } else {
554
+    print Users::format_username($UserID, false, false, false);
555
+  }
556
+?> <?=time_diff($TorrentTime);?>
547 557
 <?  if ($Seeders == 0) {
548 558
     if ($LastActive && time() - strtotime($LastActive) >= 1209600) { ?>
549 559
             <br /><strong>Last active: <?=time_diff($LastActive); ?></strong>

Loading…
Cancel
Save