|
@@ -1,4 +1,6 @@
|
1
|
|
-<?
|
|
1
|
+<?php
|
|
2
|
+declare(strict_types=1);
|
|
3
|
+
|
2
|
4
|
$DB->query("
|
3
|
5
|
SELECT Page, COUNT(1)
|
4
|
6
|
FROM comments
|
|
@@ -32,49 +34,65 @@ $DB->query("
|
32
|
34
|
list($UniqueGroups) = $DB->next_record();
|
33
|
35
|
|
34
|
36
|
?>
|
35
|
|
- <div class="box box_info box_userinfo_community">
|
36
|
|
- <div class="head colhead_dark">Community</div>
|
37
|
|
- <ul class="stats nobullet">
|
38
|
|
- <li id="comm_posts">Forum posts: <?=number_format($ForumPosts)?> <a href="userhistory.php?action=posts&userid=<?=$UserID?>" class="brackets">View</a></li>
|
39
|
|
- <li id="comm_irc">IRC lines: <?=number_format($IRCLines)?></li>
|
40
|
|
-<?php if ($Override = check_paranoia_here('torrentcomments+')) { ?>
|
41
|
|
- <li id="comm_torrcomm"<?=($Override === 2 ? ' class="paranoia_override"' : '')?>>Torrent comments: <?=number_format($NumComments)?>
|
42
|
|
-<?php if ($Override = check_paranoia_here('torrentcomments')) { ?>
|
43
|
|
- <a href="comments.php?id=<?=$UserID?>" class="brackets<?=($Override === 2 ? ' paranoia_override' : '')?>">View</a>
|
44
|
|
-<?php } ?>
|
45
|
|
- </li>
|
46
|
|
- <li id="comm_artcomm"<?=($Override === 2 ? ' class="paranoia_override"' : '')?>>Artist comments: <?=number_format($NumArtistComments)?>
|
47
|
|
-<?php if ($Override = check_paranoia_here('torrentcomments')) { ?>
|
48
|
|
- <a href="comments.php?id=<?=$UserID?>&action=artist" class="brackets<?=($Override === 2 ? ' paranoia_override' : '')?>">View</a>
|
49
|
|
-<?php } ?>
|
50
|
|
- </li>
|
51
|
|
- <li id="comm_collcomm"<?=($Override === 2 ? ' class="paranoia_override"' : '')?>>Collage comments: <?=number_format($NumCollageComments)?>
|
52
|
|
-<?php if ($Override = check_paranoia_here('torrentcomments')) { ?>
|
53
|
|
- <a href="comments.php?id=<?=$UserID?>&action=collages" class="brackets<?=($Override === 2 ? ' paranoia_override' : '')?>">View</a>
|
54
|
|
-<?php } ?>
|
55
|
|
- </li>
|
56
|
|
- <li id="comm_reqcomm"<?=($Override === 2 ? ' class="paranoia_override"' : '')?>>Request comments: <?=number_format($NumRequestComments)?>
|
57
|
|
-<?php if ($Override = check_paranoia_here('torrentcomments')) { ?>
|
58
|
|
- <a href="comments.php?id=<?=$UserID?>&action=requests" class="brackets<?=($Override === 2 ? ' paranoia_override' : '')?>">View</a>
|
59
|
|
-<?php } ?>
|
60
|
|
- </li>
|
61
|
|
-<?
|
|
37
|
+<div class="box box_info box_userinfo_community">
|
|
38
|
+ <div class="head colhead_dark">Community</div>
|
|
39
|
+ <ul class="stats nobullet">
|
|
40
|
+ <li id="comm_posts">Forum posts: <?=number_format($ForumPosts)?> <a
|
|
41
|
+ href="userhistory.php?action=posts&userid=<?=$UserID?>"
|
|
42
|
+ class="brackets">View</a></li>
|
|
43
|
+ <li id="comm_irc">IRC lines: <?=number_format($IRCLines)?>
|
|
44
|
+ </li>
|
|
45
|
+ <?php if ($Override = check_paranoia_here('torrentcomments+')) { ?>
|
|
46
|
+ <li id="comm_torrcomm" <?=($Override === 2 ? ' class="paranoia_override"' : '')?>>Torrent
|
|
47
|
+ comments: <?=number_format($NumComments)?>
|
|
48
|
+ <?php if ($Override = check_paranoia_here('torrentcomments')) { ?>
|
|
49
|
+ <a href="comments.php?id=<?=$UserID?>"
|
|
50
|
+ class="brackets<?=($Override === 2 ? ' paranoia_override' : '')?>">View</a>
|
|
51
|
+ <?php } ?>
|
|
52
|
+ </li>
|
|
53
|
+ <li id="comm_artcomm" <?=($Override === 2 ? ' class="paranoia_override"' : '')?>>Artist
|
|
54
|
+ comments: <?=number_format($NumArtistComments)?>
|
|
55
|
+ <?php if ($Override = check_paranoia_here('torrentcomments')) { ?>
|
|
56
|
+ <a href="comments.php?id=<?=$UserID?>&action=artist"
|
|
57
|
+ class="brackets<?=($Override === 2 ? ' paranoia_override' : '')?>">View</a>
|
|
58
|
+ <?php } ?>
|
|
59
|
+ </li>
|
|
60
|
+ <li id="comm_collcomm" <?=($Override === 2 ? ' class="paranoia_override"' : '')?>>Collage
|
|
61
|
+ comments: <?=number_format($NumCollageComments)?>
|
|
62
|
+ <?php if ($Override = check_paranoia_here('torrentcomments')) { ?>
|
|
63
|
+ <a href="comments.php?id=<?=$UserID?>&action=collages"
|
|
64
|
+ class="brackets<?=($Override === 2 ? ' paranoia_override' : '')?>">View</a>
|
|
65
|
+ <?php } ?>
|
|
66
|
+ </li>
|
|
67
|
+ <li id="comm_reqcomm" <?=($Override === 2 ? ' class="paranoia_override"' : '')?>>Request
|
|
68
|
+ comments: <?=number_format($NumRequestComments)?>
|
|
69
|
+ <?php if ($Override = check_paranoia_here('torrentcomments')) { ?>
|
|
70
|
+ <a href="comments.php?id=<?=$UserID?>&action=requests"
|
|
71
|
+ class="brackets<?=($Override === 2 ? ' paranoia_override' : '')?>">View</a>
|
|
72
|
+ <?php } ?>
|
|
73
|
+ </li>
|
|
74
|
+ <?php
|
62
|
75
|
}
|
63
|
76
|
if (($Override = check_paranoia_here('collages+'))) { ?>
|
64
|
|
- <li id="comm_collstart"<?=($Override === 2 ? ' class="paranoia_override"' : '')?>>Collages started: <?=number_format($NumCollages)?>
|
65
|
|
-<?php if ($Override = check_paranoia_here('collages')) { ?>
|
66
|
|
- <a href="collages.php?userid=<?=$UserID?>" class="brackets<?=(($Override === 2) ? ' paranoia_override' : '')?>">View</a>
|
67
|
|
-<?php } ?>
|
68
|
|
- </li>
|
69
|
|
-<?
|
|
77
|
+ <li id="comm_collstart" <?=($Override === 2 ? ' class="paranoia_override"' : '')?>>Collages
|
|
78
|
+ started: <?=number_format($NumCollages)?>
|
|
79
|
+ <?php if ($Override = check_paranoia_here('collages')) { ?>
|
|
80
|
+ <a href="collages.php?userid=<?=$UserID?>"
|
|
81
|
+ class="brackets<?=(($Override === 2) ? ' paranoia_override' : '')?>">View</a>
|
|
82
|
+ <?php } ?>
|
|
83
|
+ </li>
|
|
84
|
+ <?php
|
70
|
85
|
}
|
71
|
86
|
if (($Override = check_paranoia_here('collagecontribs+'))) { ?>
|
72
|
|
- <li id="comm_collcontrib"<?=($Override === 2 ? ' class="paranoia_override"' : '')?>>Collages contributed to: <? echo number_format($NumCollageContribs); ?>
|
73
|
|
-<?php if ($Override = check_paranoia_here('collagecontribs')) { ?>
|
74
|
|
- <a href="collages.php?userid=<?=$UserID?>&contrib=1" class="brackets<?=(($Override === 2) ? ' paranoia_override' : '')?>">View</a>
|
75
|
|
-<?php } ?>
|
76
|
|
- </li>
|
77
|
|
-<?
|
|
87
|
+ <li id="comm_collcontrib" <?=($Override === 2 ? ' class="paranoia_override"' : '')?>>Collages
|
|
88
|
+ contributed to:
|
|
89
|
+ <?php echo number_format($NumCollageContribs); ?>
|
|
90
|
+ <?php if ($Override = check_paranoia_here('collagecontribs')) { ?>
|
|
91
|
+ <a href="collages.php?userid=<?=$UserID?>&contrib=1"
|
|
92
|
+ class="brackets<?=(($Override === 2) ? ' paranoia_override' : '')?>">View</a>
|
|
93
|
+ <?php } ?>
|
|
94
|
+ </li>
|
|
95
|
+ <?php
|
78
|
96
|
}
|
79
|
97
|
|
80
|
98
|
//Let's see if we can view requests because of reasons
|
|
@@ -83,18 +101,23 @@ list($UniqueGroups) = $DB->next_record();
|
83
|
101
|
$ViewBounty = check_paranoia_here('requestsfilled_bounty');
|
84
|
102
|
|
85
|
103
|
if ($ViewCount && !$ViewBounty && !$ViewAll) { ?>
|
86
|
|
- <li>Requests filled: <?=number_format($RequestsFilled)?></li>
|
87
|
|
-<?php } elseif (!$ViewCount && $ViewBounty && !$ViewAll) { ?>
|
88
|
|
- <li>Requests filled: <?=Format::get_size($TotalBounty)?> collected</li>
|
89
|
|
-<?php } elseif ($ViewCount && $ViewBounty && !$ViewAll) { ?>
|
90
|
|
- <li>Requests filled: <?=number_format($RequestsFilled)?> for <?=Format::get_size($TotalBounty)?></li>
|
91
|
|
-<?php } elseif ($ViewAll) { ?>
|
92
|
|
- <li>
|
93
|
|
- <span<?=($ViewCount === 2 ? ' class="paranoia_override"' : '')?>>Requests filled: <?=number_format($RequestsFilled)?></span>
|
94
|
|
- <span<?=($ViewBounty === 2 ? ' class="paranoia_override"' : '')?>> for <?=Format::get_size($TotalBounty) ?></span>
|
95
|
|
- <a href="requests.php?type=filled&userid=<?=$UserID?>" class="brackets<?=(($ViewAll === 2) ? ' paranoia_override' : '')?>">View</a>
|
96
|
|
- </li>
|
97
|
|
-<?
|
|
104
|
+ <li>Requests filled: <?=number_format($RequestsFilled)?>
|
|
105
|
+ </li>
|
|
106
|
+ <?php } elseif (!$ViewCount && $ViewBounty && !$ViewAll) { ?>
|
|
107
|
+ <li>Requests filled: <?=Format::get_size($TotalBounty)?> collected</li>
|
|
108
|
+ <?php } elseif ($ViewCount && $ViewBounty && !$ViewAll) { ?>
|
|
109
|
+ <li>Requests filled: <?=number_format($RequestsFilled)?> for <?=Format::get_size($TotalBounty)?>
|
|
110
|
+ </li>
|
|
111
|
+ <?php } elseif ($ViewAll) { ?>
|
|
112
|
+ <li>
|
|
113
|
+ <span<?=($ViewCount === 2 ? ' class="paranoia_override"' : '')?>>Requests
|
|
114
|
+ filled: <?=number_format($RequestsFilled)?></span>
|
|
115
|
+ <span<?=($ViewBounty === 2 ? ' class="paranoia_override"' : '')?>>
|
|
116
|
+ for <?=Format::get_size($TotalBounty) ?></span>
|
|
117
|
+ <a href="requests.php?type=filled&userid=<?=$UserID?>"
|
|
118
|
+ class="brackets<?=(($ViewAll === 2) ? ' paranoia_override' : '')?>">View</a>
|
|
119
|
+ </li>
|
|
120
|
+ <?php
|
98
|
121
|
}
|
99
|
122
|
|
100
|
123
|
//Let's see if we can view requests because of reasons
|
|
@@ -103,135 +126,169 @@ list($UniqueGroups) = $DB->next_record();
|
103
|
126
|
$ViewBounty = check_paranoia_here('requestsvoted_bounty');
|
104
|
127
|
|
105
|
128
|
if ($ViewCount && !$ViewBounty && !$ViewAll) { ?>
|
106
|
|
- <li>Requests created: <?=number_format($RequestsCreated)?></li>
|
107
|
|
- <li>Requests voted: <?=number_format($RequestsVoted)?></li>
|
108
|
|
-<?php } elseif (!$ViewCount && $ViewBounty && !$ViewAll) { ?>
|
109
|
|
- <li>Requests created: <?=Format::get_size($RequestsCreatedSpent)?> spent</li>
|
110
|
|
- <li>Requests voted: <?=Format::get_size($TotalSpent)?> spent</li>
|
111
|
|
-<?php } elseif ($ViewCount && $ViewBounty && !$ViewAll) { ?>
|
112
|
|
- <li>Requests created: <?=number_format($RequestsCreated)?> for <?=Format::get_size($RequestsCreatedSpent)?></li>
|
113
|
|
- <li>Requests voted: <?=number_format($RequestsVoted)?> for <?=Format::get_size($TotalSpent)?></li>
|
114
|
|
-<?php } elseif ($ViewAll) { ?>
|
115
|
|
- <li>
|
116
|
|
- <span<?=($ViewCount === 2 ? ' class="paranoia_override"' : '')?>>Requests created: <?=number_format($RequestsCreated)?></span>
|
117
|
|
- <span<?=($ViewBounty === 2 ? ' class="paranoia_override"' : '')?>> for <?=Format::get_size($RequestsCreatedSpent)?></span>
|
118
|
|
- <a href="requests.php?type=created&userid=<?=$UserID?>" class="brackets<?=($ViewAll === 2 ? ' paranoia_override' : '')?>">View</a>
|
119
|
|
- </li>
|
120
|
|
- <li>
|
121
|
|
- <span<?=($ViewCount === 2 ? ' class="paranoia_override"' : '')?>>Requests voted: <?=number_format($RequestsVoted)?></span>
|
122
|
|
- <span<?=($ViewBounty === 2 ? ' class="paranoia_override"' : '')?>> for <?=Format::get_size($TotalSpent)?></span>
|
123
|
|
- <a href="requests.php?type=voted&userid=<?=$UserID?>" class="brackets<?=($ViewAll === 2 ? ' paranoia_override' : '')?>">View</a>
|
124
|
|
- </li>
|
125
|
|
-<?
|
|
129
|
+ <li>Requests created: <?=number_format($RequestsCreated)?>
|
|
130
|
+ </li>
|
|
131
|
+ <li>Requests voted: <?=number_format($RequestsVoted)?>
|
|
132
|
+ </li>
|
|
133
|
+ <?php } elseif (!$ViewCount && $ViewBounty && !$ViewAll) { ?>
|
|
134
|
+ <li>Requests created: <?=Format::get_size($RequestsCreatedSpent)?> spent
|
|
135
|
+ </li>
|
|
136
|
+ <li>Requests voted: <?=Format::get_size($TotalSpent)?> spent</li>
|
|
137
|
+ <?php } elseif ($ViewCount && $ViewBounty && !$ViewAll) { ?>
|
|
138
|
+ <li>Requests created: <?=number_format($RequestsCreated)?> for <?=Format::get_size($RequestsCreatedSpent)?>
|
|
139
|
+ </li>
|
|
140
|
+ <li>Requests voted: <?=number_format($RequestsVoted)?> for <?=Format::get_size($TotalSpent)?>
|
|
141
|
+ </li>
|
|
142
|
+ <?php } elseif ($ViewAll) { ?>
|
|
143
|
+ <li>
|
|
144
|
+ <span<?=($ViewCount === 2 ? ' class="paranoia_override"' : '')?>>Requests
|
|
145
|
+ created: <?=number_format($RequestsCreated)?></span>
|
|
146
|
+ <span<?=($ViewBounty === 2 ? ' class="paranoia_override"' : '')?>>
|
|
147
|
+ for <?=Format::get_size($RequestsCreatedSpent)?></span>
|
|
148
|
+ <a href="requests.php?type=created&userid=<?=$UserID?>"
|
|
149
|
+ class="brackets<?=($ViewAll === 2 ? ' paranoia_override' : '')?>">View</a>
|
|
150
|
+ </li>
|
|
151
|
+ <li>
|
|
152
|
+ <span<?=($ViewCount === 2 ? ' class="paranoia_override"' : '')?>>Requests
|
|
153
|
+ voted: <?=number_format($RequestsVoted)?></span>
|
|
154
|
+ <span<?=($ViewBounty === 2 ? ' class="paranoia_override"' : '')?>>
|
|
155
|
+ for <?=Format::get_size($TotalSpent)?></span>
|
|
156
|
+ <a href="requests.php?type=voted&userid=<?=$UserID?>"
|
|
157
|
+ class="brackets<?=($ViewAll === 2 ? ' paranoia_override' : '')?>">View</a>
|
|
158
|
+ </li>
|
|
159
|
+ <?php
|
126
|
160
|
}
|
127
|
161
|
|
128
|
162
|
if ($Override = check_paranoia_here('screenshotcount')) {
|
129
|
|
- $DB->query("
|
|
163
|
+ $DB->query("
|
130
|
164
|
SELECT COUNT(*)
|
131
|
165
|
FROM torrents_doi
|
132
|
166
|
WHERE UserID = '$UserID'");
|
133
|
|
- list($Screenshots) = $DB->next_record();
|
134
|
|
-?>
|
135
|
|
- <li id="comm_screenshots">Screenshots added: <?=number_format($Screenshots)?></li>
|
136
|
|
-<?
|
|
167
|
+ list($Screenshots) = $DB->next_record(); ?>
|
|
168
|
+ <li id="comm_screenshots">Screenshots added: <?=number_format($Screenshots)?>
|
|
169
|
+ </li>
|
|
170
|
+ <?php
|
137
|
171
|
}
|
138
|
172
|
|
139
|
173
|
if ($Override = check_paranoia_here('uploads+')) { ?>
|
140
|
|
- <li id="comm_upload"<?=($Override === 2 ? ' class="paranoia_override"' : '')?>>Uploaded: <?=number_format($Uploads)?>
|
141
|
|
-<?php if ($Override = check_paranoia_here('uploads')) { ?>
|
142
|
|
- <a href="torrents.php?type=uploaded&userid=<?=$UserID?>" class="brackets<?=($Override === 2 ? ' paranoia_override' : '')?>">View</a>
|
143
|
|
-<?php if (check_perms('zip_downloader')) { ?>
|
144
|
|
- <a href="torrents.php?action=redownload&type=uploads&userid=<?=$UserID?>" onclick="return confirm('If you no longer have the content, your ratio WILL be affected; be sure to check the size of all torrents before redownloading.');" class="brackets<?=($Override === 2 ? ' paranoia_override' : '')?>">Download</a>
|
145
|
|
-<?
|
|
174
|
+ <li id="comm_upload" <?=($Override === 2 ? ' class="paranoia_override"' : '')?>>Uploaded:
|
|
175
|
+ <?=number_format($Uploads)?>
|
|
176
|
+ <?php if ($Override = check_paranoia_here('uploads')) { ?>
|
|
177
|
+ <a href="torrents.php?type=uploaded&userid=<?=$UserID?>"
|
|
178
|
+ class="brackets<?=($Override === 2 ? ' paranoia_override' : '')?>">View</a>
|
|
179
|
+ <?php if (check_perms('zip_downloader')) { ?>
|
|
180
|
+ <a href="torrents.php?action=redownload&type=uploads&userid=<?=$UserID?>"
|
|
181
|
+ onclick="return confirm('If you no longer have the content, your ratio WILL be affected; be sure to check the size of all torrents before redownloading.');"
|
|
182
|
+ class="brackets<?=($Override === 2 ? ' paranoia_override' : '')?>">Download</a>
|
|
183
|
+ <?php
|
146
|
184
|
}
|
147
|
185
|
}
|
148
|
186
|
?>
|
149
|
|
- </li>
|
150
|
|
-<?
|
|
187
|
+ </li>
|
|
188
|
+ <?php
|
151
|
189
|
}
|
152
|
190
|
if ($Override = check_paranoia_here('uniquegroups+')) { ?>
|
153
|
|
- <li id="comm_uniquegroup"<?=($Override === 2 ? ' class="paranoia_override"' : '')?>>Unique groups: <?=number_format($UniqueGroups)?>
|
154
|
|
-<?php if ($Override = check_paranoia_here('uniquegroups')) { ?>
|
155
|
|
- <a href="torrents.php?type=uploaded&userid=<?=$UserID?>&filter=uniquegroup" class="brackets<?=($Override === 2 ? ' paranoia_override' : '')?>">View</a>
|
156
|
|
-<?php } ?>
|
157
|
|
- </li>
|
158
|
|
-<?
|
|
191
|
+ <li id="comm_uniquegroup" <?=($Override === 2 ? ' class="paranoia_override"' : '')?>>Unique
|
|
192
|
+ groups: <?=number_format($UniqueGroups)?>
|
|
193
|
+ <?php if ($Override = check_paranoia_here('uniquegroups')) { ?>
|
|
194
|
+ <a href="torrents.php?type=uploaded&userid=<?=$UserID?>&filter=uniquegroup"
|
|
195
|
+ class="brackets<?=($Override === 2 ? ' paranoia_override' : '')?>">View</a>
|
|
196
|
+ <?php } ?>
|
|
197
|
+ </li>
|
|
198
|
+ <?php
|
159
|
199
|
}
|
160
|
200
|
if ($Override = check_paranoia_here('seeding+')) {
|
161
|
|
-?>
|
162
|
|
- <li id="comm_seeding"<?=($Override === 2 ? ' class="paranoia_override"' : '')?>>Seeding:
|
163
|
|
- <span class="user_commstats" id="user_commstats_seeding"><a href="#" class="brackets" onclick="commStats(<?=$UserID?>); return false;">Show stats</a></span>
|
164
|
|
-<?php if ($Override = check_paranoia_here('snatched+')) { ?>
|
165
|
|
- <span<?=($Override === 2 ? ' class="paranoia_override"' : '')?> id="user_commstats_seedingperc"></span>
|
166
|
|
-<?
|
|
201
|
+ ?>
|
|
202
|
+ <li id="comm_seeding" <?=($Override === 2 ? ' class="paranoia_override"' : '')?>>Seeding:
|
|
203
|
+ <span class="user_commstats" id="user_commstats_seeding"><a href="#" class="brackets"
|
|
204
|
+ onclick="commStats(<?=$UserID?>); return false;">Show
|
|
205
|
+ stats</a></span>
|
|
206
|
+ <?php if ($Override = check_paranoia_here('snatched+')) { ?>
|
|
207
|
+ <span<?=($Override === 2 ? ' class="paranoia_override"' : '')?>
|
|
208
|
+ id="user_commstats_seedingperc"></span>
|
|
209
|
+ <?php
|
167
|
210
|
}
|
168
|
|
- if ($Override = check_paranoia_here('seeding')) {
|
169
|
|
-?>
|
170
|
|
- <a href="torrents.php?type=seeding&userid=<?=$UserID?>" class="brackets<?=($Override === 2 ? ' paranoia_override' : '')?>">View</a>
|
171
|
|
-<?php if (check_perms('zip_downloader')) { ?>
|
172
|
|
- <a href="torrents.php?action=redownload&type=seeding&userid=<?=$UserID?>" onclick="return confirm('If you no longer have the content, your ratio WILL be affected; be sure to check the size of all torrents before redownloading.');" class="brackets">Download</a>
|
173
|
|
-<?
|
|
211
|
+ if ($Override = check_paranoia_here('seeding')) {
|
|
212
|
+ ?>
|
|
213
|
+ <a href="torrents.php?type=seeding&userid=<?=$UserID?>"
|
|
214
|
+ class="brackets<?=($Override === 2 ? ' paranoia_override' : '')?>">View</a>
|
|
215
|
+ <?php if (check_perms('zip_downloader')) { ?>
|
|
216
|
+ <a href="torrents.php?action=redownload&type=seeding&userid=<?=$UserID?>"
|
|
217
|
+ onclick="return confirm('If you no longer have the content, your ratio WILL be affected; be sure to check the size of all torrents before redownloading.');"
|
|
218
|
+ class="brackets">Download</a>
|
|
219
|
+ <?php
|
174
|
220
|
}
|
175
|
|
- }
|
176
|
|
-?>
|
177
|
|
- </li>
|
178
|
|
-<?
|
|
221
|
+ } ?>
|
|
222
|
+ </li>
|
|
223
|
+ <?php
|
179
|
224
|
}
|
180
|
225
|
if ($Override = check_paranoia_here('leeching+')) {
|
181
|
|
-?>
|
182
|
|
- <li id="comm_leeching"<?=($Override === 2 ? ' class="paranoia_override"' : '')?>>Leeching:
|
183
|
|
- <span class="user_commstats" id="user_commstats_leeching"><a href="#" class="brackets" onclick="commStats(<?=$UserID?>); return false;">Show stats</a></span>
|
184
|
|
-<?php if ($Override = check_paranoia_here('leeching')) { ?>
|
185
|
|
- <a href="torrents.php?type=leeching&userid=<?=$UserID?>" class="brackets<?=($Override === 2 ? ' paranoia_override' : '')?>">View</a>
|
186
|
|
-<?
|
|
226
|
+ ?>
|
|
227
|
+ <li id="comm_leeching" <?=($Override === 2 ? ' class="paranoia_override"' : '')?>>Leeching:
|
|
228
|
+ <span class="user_commstats" id="user_commstats_leeching"><a href="#" class="brackets"
|
|
229
|
+ onclick="commStats(<?=$UserID?>); return false;">Show
|
|
230
|
+ stats</a></span>
|
|
231
|
+ <?php if ($Override = check_paranoia_here('leeching')) { ?>
|
|
232
|
+ <a href="torrents.php?type=leeching&userid=<?=$UserID?>"
|
|
233
|
+ class="brackets<?=($Override === 2 ? ' paranoia_override' : '')?>">View</a>
|
|
234
|
+ <?php
|
187
|
235
|
}
|
188
|
|
- if ($DisableLeech == 0 && check_perms('users_view_ips')) {
|
189
|
|
-?>
|
190
|
|
- <strong>(Disabled)</strong>
|
191
|
|
-<?php } ?>
|
192
|
|
- </li>
|
193
|
|
-<?
|
|
236
|
+ if ($DisableLeech == 0 && check_perms('users_view_ips')) {
|
|
237
|
+ ?>
|
|
238
|
+ <strong>(Disabled)</strong>
|
|
239
|
+ <?php
|
|
240
|
+ } ?>
|
|
241
|
+ </li>
|
|
242
|
+ <?php
|
194
|
243
|
}
|
195
|
244
|
if ($Override = check_paranoia_here('snatched+')) { ?>
|
196
|
|
- <li id="comm_snatched"<?=($Override === 2 ? ' class="paranoia_override"' : '')?>>Snatched:
|
197
|
|
- <span class="user_commstats" id="user_commstats_snatched"><a href="#" class="brackets" onclick="commStats(<?=$UserID?>); return false;">Show stats</a></span>
|
198
|
|
-<?php if ($Override = check_perms('site_view_torrent_snatchlist', $Class)) { ?>
|
199
|
|
- <span id="user_commstats_usnatched"<?=($Override === 2 ? ' class="paranoia_override"' : '')?>></span>
|
200
|
|
-<?
|
|
245
|
+ <li id="comm_snatched" <?=($Override === 2 ? ' class="paranoia_override"' : '')?>>Snatched:
|
|
246
|
+ <span class="user_commstats" id="user_commstats_snatched"><a href="#" class="brackets"
|
|
247
|
+ onclick="commStats(<?=$UserID?>); return false;">Show
|
|
248
|
+ stats</a></span>
|
|
249
|
+ <?php if ($Override = check_perms('site_view_torrent_snatchlist', $Class)) { ?>
|
|
250
|
+ <span id="user_commstats_usnatched" <?=($Override === 2 ? ' class="paranoia_override"' : '')?>></span>
|
|
251
|
+ <?php
|
201
|
252
|
}
|
202
|
253
|
}
|
203
|
254
|
if ($Override = check_paranoia_here('snatched')) { ?>
|
204
|
|
- <a href="torrents.php?type=snatched&userid=<?=$UserID?>" class="brackets<?=($Override === 2 ? ' paranoia_override' : '')?>">View</a>
|
205
|
|
-<?php if (check_perms('zip_downloader')) { ?>
|
206
|
|
- <a href="torrents.php?action=redownload&type=snatches&userid=<?=$UserID?>" onclick="return confirm('If you no longer have the content, your ratio WILL be affected, be sure to check the size of all torrents before redownloading.');" class="brackets">Download</a>
|
207
|
|
-<?php } ?>
|
208
|
|
- </li>
|
209
|
|
-<?
|
|
255
|
+ <a href="torrents.php?type=snatched&userid=<?=$UserID?>"
|
|
256
|
+ class="brackets<?=($Override === 2 ? ' paranoia_override' : '')?>">View</a>
|
|
257
|
+ <?php if (check_perms('zip_downloader')) { ?>
|
|
258
|
+ <a href="torrents.php?action=redownload&type=snatches&userid=<?=$UserID?>"
|
|
259
|
+ onclick="return confirm('If you no longer have the content, your ratio WILL be affected, be sure to check the size of all torrents before redownloading.');"
|
|
260
|
+ class="brackets">Download</a>
|
|
261
|
+ <?php } ?>
|
|
262
|
+ </li>
|
|
263
|
+ <?php
|
210
|
264
|
}
|
211
|
265
|
if (check_perms('site_view_torrent_snatchlist', $Class)) {
|
212
|
|
-?>
|
213
|
|
- <li id="comm_downloaded">Downloaded:
|
214
|
|
- <span class="user_commstats" id="user_commstats_downloaded"><a href="#" class="brackets" onclick="commStats(<?=$UserID?>); return false;">Show stats</a></span>
|
215
|
|
- <span id="user_commstats_udownloaded"></span>
|
216
|
|
- <a href="torrents.php?type=downloaded&userid=<?=$UserID?>" class="brackets">View</a>
|
217
|
|
- </li>
|
218
|
|
-<?
|
|
266
|
+ ?>
|
|
267
|
+ <li id="comm_downloaded">Downloaded:
|
|
268
|
+ <span class="user_commstats" id="user_commstats_downloaded"><a href="#" class="brackets"
|
|
269
|
+ onclick="commStats(<?=$UserID?>); return false;">Show
|
|
270
|
+ stats</a></span>
|
|
271
|
+ <span id="user_commstats_udownloaded"></span>
|
|
272
|
+ <a href="torrents.php?type=downloaded&userid=<?=$UserID?>"
|
|
273
|
+ class="brackets">View</a>
|
|
274
|
+ </li>
|
|
275
|
+ <?php
|
219
|
276
|
}
|
220
|
277
|
if ($Override = check_paranoia_here('invitedcount')) {
|
221
|
|
- $DB->query("
|
|
278
|
+ $DB->query("
|
222
|
279
|
SELECT COUNT(UserID)
|
223
|
280
|
FROM users_info
|
224
|
281
|
WHERE Inviter = '$UserID'");
|
225
|
|
- list($Invited) = $DB->next_record();
|
226
|
|
-?>
|
227
|
|
- <li id="comm_invited">Invited: <?=number_format($Invited)?></li>
|
228
|
|
-<?
|
|
282
|
+ list($Invited) = $DB->next_record(); ?>
|
|
283
|
+ <li id="comm_invited">Invited: <?=number_format($Invited)?>
|
|
284
|
+ </li>
|
|
285
|
+ <?php
|
229
|
286
|
}
|
230
|
287
|
?>
|
231
|
|
- </ul>
|
232
|
|
-<?php if ($LoggedUser['AutoloadCommStats']) { ?>
|
233
|
|
- <script type="text/javascript">
|
234
|
|
- commStats(<?=$UserID?>);
|
235
|
|
- </script>
|
236
|
|
-<?php } ?>
|
237
|
|
- </div>
|
|
288
|
+ </ul>
|
|
289
|
+ <?php if ($LoggedUser['AutoloadCommStats']) { ?>
|
|
290
|
+ <script type="text/javascript">
|
|
291
|
+ commStats( <?=$UserID?> );
|
|
292
|
+ </script>
|
|
293
|
+ <?php } ?>
|
|
294
|
+</div>
|