|
@@ -1,5 +1,7 @@
|
1
|
1
|
<?php
|
2
|
|
-/*
|
|
2
|
+declare(strict_types=1);
|
|
3
|
+
|
|
4
|
+/**
|
3
|
5
|
* This page is used for viewing reports in every viewpoint except auto.
|
4
|
6
|
* It doesn't AJAX grab a new report when you resolve each one, use auto
|
5
|
7
|
* for that (reports.php). If you wanted to add a new view, you'd simply
|
|
@@ -10,185 +12,200 @@
|
10
|
12
|
*/
|
11
|
13
|
|
12
|
14
|
if (!check_perms('admin_reports')) {
|
13
|
|
- error(403);
|
|
15
|
+ error(403);
|
14
|
16
|
}
|
15
|
17
|
|
16
|
|
-include(SERVER_ROOT.'/classes/reports.class.php');
|
|
18
|
+require_once SERVER_ROOT.'/classes/reports.class.php';
|
17
|
19
|
|
18
|
20
|
define('REPORTS_PER_PAGE', '10');
|
19
|
21
|
list($Page, $Limit) = Format::page_limit(REPORTS_PER_PAGE);
|
20
|
22
|
|
21
|
23
|
|
22
|
24
|
if (isset($_GET['view'])) {
|
23
|
|
- $View = $_GET['view'];
|
|
25
|
+ $View = $_GET['view'];
|
24
|
26
|
} else {
|
25
|
|
- error(404);
|
|
27
|
+ error(404);
|
26
|
28
|
}
|
27
|
29
|
|
28
|
30
|
if (isset($_GET['id'])) {
|
29
|
|
- if (!is_number($_GET['id']) && $View !== 'type') {
|
30
|
|
- error(404);
|
31
|
|
- } else {
|
32
|
|
- $ID = db_string($_GET['id']);
|
33
|
|
- }
|
|
31
|
+ if (!is_number($_GET['id']) && $View !== 'type') {
|
|
32
|
+ error(404);
|
|
33
|
+ } else {
|
|
34
|
+ $ID = db_string($_GET['id']);
|
|
35
|
+ }
|
34
|
36
|
} else {
|
35
|
|
- $ID = '';
|
|
37
|
+ $ID = '';
|
36
|
38
|
}
|
37
|
39
|
|
38
|
|
-$Order = 'ORDER BY r.ReportedTime ASC';
|
|
40
|
+/**
|
|
41
|
+ * Large query builder
|
|
42
|
+ */
|
|
43
|
+$Order = 'ORDER BY r.`ReportedTime` ASC';
|
39
|
44
|
|
40
|
45
|
if (!$ID) {
|
41
|
|
- switch ($View) {
|
|
46
|
+ switch ($View) {
|
42
|
47
|
case 'resolved':
|
43
|
48
|
$Title = 'All the old smelly reports';
|
44
|
|
- $Where = "WHERE r.Status = 'Resolved'";
|
45
|
|
- $Order = 'ORDER BY r.LastChangeTime DESC';
|
|
49
|
+ $Where = "WHERE r.`Status` = 'Resolved'";
|
|
50
|
+ $Order = 'ORDER BY r.`LastChangeTime` DESC';
|
46
|
51
|
break;
|
|
52
|
+
|
47
|
53
|
case 'unauto':
|
48
|
54
|
$Title = 'New reports, not auto assigned!';
|
49
|
|
- $Where = "WHERE r.Status = 'New'";
|
|
55
|
+ $Where = "WHERE r.`Status` = 'New'";
|
50
|
56
|
break;
|
|
57
|
+
|
51
|
58
|
default:
|
52
|
59
|
error(404);
|
53
|
60
|
break;
|
54
|
61
|
}
|
55
|
62
|
} else {
|
56
|
|
- switch ($View) {
|
|
63
|
+ switch ($View) {
|
57
|
64
|
case 'staff':
|
58
|
65
|
$DB->query("
|
59
|
|
- SELECT Username
|
60
|
|
- FROM users_main
|
61
|
|
- WHERE ID = $ID");
|
|
66
|
+ SELECT `Username`
|
|
67
|
+ FROM `users_main`
|
|
68
|
+ WHERE `ID` = $ID");
|
62
|
69
|
list($Username) = $DB->next_record();
|
63
|
70
|
if ($Username) {
|
64
|
|
- $Title = "$Username's in-progress reports";
|
|
71
|
+ $Title = "$Username's in-progress reports";
|
65
|
72
|
} else {
|
66
|
|
- $Title = "$ID's in-progress reports";
|
|
73
|
+ $Title = "$ID's in-progress reports";
|
67
|
74
|
}
|
68
|
75
|
$Where = "
|
69
|
|
- WHERE r.Status = 'InProgress'
|
70
|
|
- AND r.ResolverID = $ID";
|
|
76
|
+ WHERE r.`Status` = 'InProgress'
|
|
77
|
+ AND r.`ResolverID` = $ID";
|
71
|
78
|
break;
|
|
79
|
+
|
72
|
80
|
case 'resolver':
|
73
|
81
|
$DB->query("
|
74
|
|
- SELECT Username
|
75
|
|
- FROM users_main
|
76
|
|
- WHERE ID = $ID");
|
|
82
|
+ SELECT `Username`
|
|
83
|
+ FROM `users_main`
|
|
84
|
+ WHERE `ID` = $ID");
|
77
|
85
|
list($Username) = $DB->next_record();
|
78
|
86
|
if ($Username) {
|
79
|
|
- $Title = "$Username's resolved reports";
|
|
87
|
+ $Title = "$Username's resolved reports";
|
80
|
88
|
} else {
|
81
|
|
- $Title = "$ID's resolved reports";
|
|
89
|
+ $Title = "$ID's resolved reports";
|
82
|
90
|
}
|
83
|
91
|
$Where = "
|
84
|
|
- WHERE r.Status = 'Resolved'
|
85
|
|
- AND r.ResolverID = $ID";
|
86
|
|
- $Order = 'ORDER BY r.LastChangeTime DESC';
|
|
92
|
+ WHERE r.`Status` = 'Resolved'
|
|
93
|
+ AND r.`ResolverID` = $ID";
|
|
94
|
+ $Order = 'ORDER BY r.`LastChangeTime` DESC';
|
87
|
95
|
break;
|
|
96
|
+
|
88
|
97
|
case 'group':
|
89
|
98
|
$Title = "Unresolved reports for the group $ID";
|
90
|
99
|
$Where = "
|
91
|
|
- WHERE r.Status != 'Resolved'
|
92
|
|
- AND tg.ID = $ID";
|
|
100
|
+ WHERE r.`Status` != 'Resolved'
|
|
101
|
+ AND tg.`id` = $ID";
|
93
|
102
|
break;
|
|
103
|
+
|
94
|
104
|
case 'torrent':
|
95
|
105
|
$Title = "All reports for the torrent $ID";
|
96
|
|
- $Where = "WHERE r.TorrentID = $ID";
|
|
106
|
+ $Where = "WHERE r.`TorrentID` = $ID";
|
97
|
107
|
break;
|
|
108
|
+
|
98
|
109
|
case 'report':
|
99
|
110
|
$Title = "Viewing resolution of report $ID";
|
100
|
|
- $Where = "WHERE r.ID = $ID";
|
|
111
|
+ $Where = "WHERE r.`ID` = $ID";
|
101
|
112
|
break;
|
|
113
|
+
|
102
|
114
|
case 'reporter':
|
103
|
115
|
$DB->query("
|
104
|
|
- SELECT Username
|
105
|
|
- FROM users_main
|
106
|
|
- WHERE ID = $ID");
|
|
116
|
+ SELECT `Username`
|
|
117
|
+ FROM `users_main`
|
|
118
|
+ WHERE `ID` = $ID");
|
107
|
119
|
list($Username) = $DB->next_record();
|
108
|
120
|
if ($Username) {
|
109
|
|
- $Title = "All torrents reported by $Username";
|
|
121
|
+ $Title = "All torrents reported by $Username";
|
110
|
122
|
} else {
|
111
|
|
- $Title = "All torrents reported by user $ID";
|
|
123
|
+ $Title = "All torrents reported by user $ID";
|
112
|
124
|
}
|
113
|
|
- $Where = "WHERE r.ReporterID = $ID";
|
114
|
|
- $Order = 'ORDER BY r.ReportedTime DESC';
|
|
125
|
+ $Where = "WHERE r.`ReporterID` = $ID";
|
|
126
|
+ $Order = 'ORDER BY r.`ReportedTime` DESC';
|
115
|
127
|
break;
|
|
128
|
+
|
116
|
129
|
case 'uploader':
|
117
|
130
|
$DB->query("
|
118
|
|
- SELECT Username
|
119
|
|
- FROM users_main
|
120
|
|
- WHERE ID = $ID");
|
|
131
|
+ SELECT `Username`
|
|
132
|
+ FROM `users_main`
|
|
133
|
+ WHERE `ID` = $ID");
|
121
|
134
|
list($Username) = $DB->next_record();
|
122
|
135
|
if ($Username) {
|
123
|
|
- $Title = "All reports for torrents uploaded by $Username";
|
|
136
|
+ $Title = "All reports for torrents uploaded by $Username";
|
124
|
137
|
} else {
|
125
|
|
- $Title = "All reports for torrents uploaded by user $ID";
|
|
138
|
+ $Title = "All reports for torrents uploaded by user $ID";
|
126
|
139
|
}
|
127
|
140
|
$Where = "
|
128
|
|
- WHERE r.Status != 'Resolved'
|
129
|
|
- AND t.UserID = $ID";
|
|
141
|
+ WHERE r.`Status` != 'Resolved'
|
|
142
|
+ AND t.`UserID` = $ID";
|
130
|
143
|
break;
|
|
144
|
+
|
131
|
145
|
case 'type':
|
132
|
146
|
$Title = 'All new reports for the chosen type';
|
133
|
147
|
$Where = "
|
134
|
|
- WHERE r.Status = 'New'
|
135
|
|
- AND r.Type = '$ID'";
|
136
|
|
- break;
|
|
148
|
+ WHERE r.`Status` = 'New'
|
|
149
|
+ AND r.`Type` = '$ID'";
|
137
|
150
|
break;
|
|
151
|
+
|
138
|
152
|
default:
|
139
|
153
|
error(404);
|
140
|
154
|
break;
|
141
|
155
|
}
|
142
|
156
|
}
|
143
|
157
|
|
|
158
|
+/**
|
|
159
|
+ * The large query
|
|
160
|
+ */
|
144
|
161
|
$DB->query("
|
145
|
162
|
SELECT
|
146
|
163
|
SQL_CALC_FOUND_ROWS
|
147
|
|
- r.ID,
|
148
|
|
- r.ReporterID,
|
149
|
|
- reporter.Username,
|
150
|
|
- r.TorrentID,
|
151
|
|
- r.Type,
|
152
|
|
- r.UserComment,
|
153
|
|
- r.ResolverID,
|
154
|
|
- resolver.Username,
|
155
|
|
- r.Status,
|
156
|
|
- r.ReportedTime,
|
157
|
|
- r.LastChangeTime,
|
158
|
|
- r.ModComment,
|
159
|
|
- r.Track,
|
160
|
|
- r.Image,
|
161
|
|
- r.ExtraID,
|
162
|
|
- r.Link,
|
163
|
|
- r.LogMessage,
|
164
|
|
- COALESCE(NULLIF(tg.Name, ''), NULLIF(tg.Title2, ''), tg.NameJP) AS Name,
|
165
|
|
- tg.ID,
|
166
|
|
- CASE COUNT(ta.GroupID)
|
167
|
|
- WHEN 1 THEN ag.ArtistID
|
|
164
|
+ r.`ID`,
|
|
165
|
+ r.`ReporterID`,
|
|
166
|
+ reporter.`Username`,
|
|
167
|
+ r.`TorrentID`,
|
|
168
|
+ r.`Type`,
|
|
169
|
+ r.`UserComment`,
|
|
170
|
+ r.`ResolverID`,
|
|
171
|
+ resolver.`Username`,
|
|
172
|
+ r.`Status`,
|
|
173
|
+ r.`ReportedTime`,
|
|
174
|
+ r.`LastChangeTime`,
|
|
175
|
+ r.`ModComment`,
|
|
176
|
+ r.`Track`,
|
|
177
|
+ r.`Image`,
|
|
178
|
+ r.`ExtraID`,
|
|
179
|
+ r.`Link`,
|
|
180
|
+ r.`LogMessage`,
|
|
181
|
+ COALESCE(NULLIF(tg.`title`, ''), NULLIF(tg.`subject`, ''), tg.`object`) AS Name,
|
|
182
|
+ tg.`id`,
|
|
183
|
+ CASE COUNT(ta.`GroupID`)
|
|
184
|
+ WHEN 1 THEN ag.`ArtistID`
|
168
|
185
|
ELSE '0'
|
169
|
|
- END AS ArtistID,
|
170
|
|
- CASE COUNT(ta.GroupID)
|
171
|
|
- WHEN 1 THEN ag.Name
|
|
186
|
+ END AS `ArtistID`,
|
|
187
|
+ CASE COUNT(ta.`GroupID`)
|
|
188
|
+ WHEN 1 THEN ag.`Name`
|
172
|
189
|
WHEN 0 THEN ''
|
173
|
190
|
ELSE 'Various Artists'
|
174
|
191
|
END AS ArtistName,
|
175
|
|
- tg.Year,
|
176
|
|
- tg.CategoryID,
|
177
|
|
- t.Time,
|
178
|
|
- t.Media,
|
179
|
|
- t.Size,
|
180
|
|
- t.UserID AS UploaderID,
|
181
|
|
- uploader.Username
|
182
|
|
- FROM reportsv2 AS r
|
183
|
|
- LEFT JOIN torrents AS t ON t.ID = r.TorrentID
|
184
|
|
- LEFT JOIN torrents_group AS tg ON tg.ID = t.GroupID
|
185
|
|
- LEFT JOIN torrents_artists AS ta ON ta.GroupID = tg.ID
|
186
|
|
- LEFT JOIN artists_group AS ag ON ag.ArtistID = ta.ArtistID
|
187
|
|
- LEFT JOIN users_main AS resolver ON resolver.ID = r.ResolverID
|
188
|
|
- LEFT JOIN users_main AS reporter ON reporter.ID = r.ReporterID
|
189
|
|
- LEFT JOIN users_main AS uploader ON uploader.ID = t.UserID
|
|
192
|
+ tg.`year`,
|
|
193
|
+ tg.`category_id`,
|
|
194
|
+ t.`Time`,
|
|
195
|
+ t.`Media`,
|
|
196
|
+ t.`Size`,
|
|
197
|
+ t.`UserID` AS UploaderID,
|
|
198
|
+ uploader.`Username`
|
|
199
|
+ FROM `reportsv2` AS r
|
|
200
|
+ LEFT JOIN `torrents` AS t ON t.`ID` = r.`TorrentID`
|
|
201
|
+ LEFT JOIN `torrents_group` AS tg ON tg.`id` = t.`GroupID`
|
|
202
|
+ LEFT JOIN `torrents_artists` AS ta ON ta.`GroupID` = tg.`id`
|
|
203
|
+ LEFT JOIN `artists_group` AS ag ON ag.`ArtistID` = ta.`ArtistID`
|
|
204
|
+ LEFT JOIN `users_main` AS resolver ON resolver.`ID` = r.`ResolverID`
|
|
205
|
+ LEFT JOIN `users_main` AS reporter ON reporter.`ID` = r.`ReporterID`
|
|
206
|
+ LEFT JOIN `users_main` AS uploader ON uploader.`ID` = t.`UserID`
|
190
|
207
|
$Where
|
191
|
|
- GROUP BY r.ID
|
|
208
|
+ GROUP BY r.`ID`
|
192
|
209
|
$Order
|
193
|
210
|
LIMIT $Limit");
|
194
|
211
|
|
|
@@ -219,78 +236,75 @@ View::show_header('Reports V2!', 'reportsv2,bbcode');
|
219
|
236
|
</div>
|
220
|
237
|
<?php } ?>
|
221
|
238
|
<div id="all_reports" style="width: 80%; margin-left: auto; margin-right: auto;">
|
222
|
|
-<?
|
|
239
|
+<?php
|
223
|
240
|
if (count($Reports) === 0) {
|
224
|
|
-?>
|
|
241
|
+ ?>
|
225
|
242
|
<div class="box pad center">
|
226
|
243
|
<strong>No new reports</strong>
|
227
|
244
|
</div>
|
228
|
|
-<?
|
229
|
|
-} else {
|
230
|
|
- foreach ($Reports as $Report) {
|
231
|
|
-
|
232
|
|
- list($ReportID, $ReporterID, $ReporterName, $TorrentID, $Type, $UserComment,
|
|
245
|
+<?php
|
|
246
|
+ } else {
|
|
247
|
+ foreach ($Reports as $Report) {
|
|
248
|
+ list($ReportID, $ReporterID, $ReporterName, $TorrentID, $Type, $UserComment,
|
233
|
249
|
$ResolverID, $ResolverName, $Status, $ReportedTime, $LastChangeTime, $ModComment,
|
234
|
250
|
$Tracks, $Images, $ExtraIDs, $Links, $LogMessage, $GroupName, $GroupID, $ArtistID,
|
235
|
251
|
$ArtistName, $Year, $CategoryID, $Time, $Media, $Size, $UploaderID,
|
236
|
252
|
$UploaderName) = Misc::display_array($Report, array('ModComment'));
|
237
|
253
|
|
238
|
|
- if (!$GroupID && $Status != 'Resolved') {
|
239
|
|
- //Torrent already deleted
|
240
|
|
- $DB->query("
|
241
|
|
- UPDATE reportsv2
|
|
254
|
+ if (!$GroupID && $Status != 'Resolved') {
|
|
255
|
+ //Torrent already deleted
|
|
256
|
+ $DB->query("
|
|
257
|
+ UPDATE `reportsv2`
|
242
|
258
|
SET
|
243
|
|
- Status = 'Resolved',
|
244
|
|
- LastChangeTime = NOW(),
|
245
|
|
- ModComment = 'Report already dealt with (torrent deleted)'
|
246
|
|
- WHERE ID = $ReportID");
|
247
|
|
- $Cache->decrement('num_torrent_reportsv2');
|
248
|
|
-?>
|
|
259
|
+ `Status` = 'Resolved',
|
|
260
|
+ `LastChangeTime` = NOW(),
|
|
261
|
+ `ModComment` = 'Report already dealt with (torrent deleted)'
|
|
262
|
+ WHERE `ID` = $ReportID");
|
|
263
|
+ $Cache->decrement('num_torrent_reportsv2'); ?>
|
249
|
264
|
<div id="report<?=$ReportID?>" class="report box pad center" data-load-report="<?=$ReportID?>">
|
250
|
265
|
<a href="reportsv2.php?view=report&id=<?=$ReportID?>">Report <?=$ReportID?></a> for torrent <?=$TorrentID?> (deleted) has been automatically resolved. <input type="button" value="Hide" onclick="ClearReport(<?=$ReportID?>);" />
|
251
|
266
|
</div>
|
252
|
|
-<?
|
253
|
|
- } else {
|
254
|
|
- if (!$CategoryID && false) {
|
255
|
|
- //Torrent was deleted
|
256
|
|
- } else {
|
|
267
|
+<?php
|
|
268
|
+ } else {
|
|
269
|
+ if (!$CategoryID && false) {
|
|
270
|
+ //Torrent was deleted
|
|
271
|
+ } else {
|
257
|
272
|
// if (array_key_exists($Type, $Types[$CategoryID])) {
|
258
|
273
|
// $ReportType = $Types[$CategoryID][$Type];
|
259
|
|
-/* } else*/if (array_key_exists($Type, $Types['master'])) {
|
260
|
|
- $ReportType = $Types['master'][$Type];
|
261
|
|
- } else {
|
262
|
|
- //There was a type but it wasn't an option!
|
263
|
|
- $Type = 'other';
|
264
|
|
- $ReportType = $Types['master']['other'];
|
265
|
|
- }
|
266
|
|
- }
|
|
274
|
+ /* } else*/if (array_key_exists($Type, $Types['master'])) {
|
|
275
|
+ $ReportType = $Types['master'][$Type];
|
|
276
|
+ } else {
|
|
277
|
+ //There was a type but it wasn't an option!
|
|
278
|
+ $Type = 'other';
|
|
279
|
+ $ReportType = $Types['master']['other'];
|
|
280
|
+ }
|
|
281
|
+ }
|
267
|
282
|
// $RemasterDisplayString = Reports::format_reports_remaster_info($Remastered, $RemasterTitle, $RemasterYear);
|
268
|
283
|
|
269
|
|
-/*
|
270
|
|
- if ($ArtistID == 0 && empty($ArtistName)) {
|
271
|
|
- $RawName = $GroupName.($Year ? " ($Year)" : '').($Format || $Encoding || $Media ? " [$Format/$Encoding/$Media]" : '') . $RemasterDisplayString . ($HasCue ? ' (Cue)' : '').($HasLog ? " (Log: {$LogScore}%)" : '').' ('.number_format($Size / (1024 * 1024), 2).' MB)';
|
|
284
|
+ /*
|
|
285
|
+ if ($ArtistID == 0 && empty($ArtistName)) {
|
|
286
|
+ $RawName = $GroupName.($Year ? " ($Year)" : '').($Format || $Encoding || $Media ? " [$Format/$Encoding/$Media]" : '') . $RemasterDisplayString . ($HasCue ? ' (Cue)' : '').($HasLog ? " (Log: {$LogScore}%)" : '').' ('.number_format($Size / (1024 * 1024), 2).' MB)';
|
272
|
287
|
|
273
|
|
- $LinkName = "<a href=\"torrents.php?id=$GroupID\">$GroupName".($Year ? " ($Year)" : '')."</a> <a href=\"torrents.php?torrentid=$TorrentID\">".($Format || $Encoding || $Media ? " [$Format/$Encoding/$Media]" : '') . $RemasterDisplayString . '</a> '.($HasCue ? ' (Cue)' : '').($HasLog ? " <a href=\"torrents.php?action=viewlog&torrentid=$TorrentID&groupid=$GroupID\">(Log: {$LogScore}%)</a>" : '').' ('.number_format($Size / (1024 * 1024), 2)." MB)";
|
|
288
|
+ $LinkName = "<a href=\"torrents.php?id=$GroupID\">$GroupName".($Year ? " ($Year)" : '')."</a> <a href=\"torrents.php?torrentid=$TorrentID\">".($Format || $Encoding || $Media ? " [$Format/$Encoding/$Media]" : '') . $RemasterDisplayString . '</a> '.($HasCue ? ' (Cue)' : '').($HasLog ? " <a href=\"torrents.php?action=viewlog&torrentid=$TorrentID&groupid=$GroupID\">(Log: {$LogScore}%)</a>" : '').' ('.number_format($Size / (1024 * 1024), 2)." MB)";
|
274
|
289
|
|
275
|
|
- $BBName = "[url=torrents.php?id=$GroupID]$GroupName".($Year ? " ($Year)" : '')."[/url] [url=torrents.php?torrentid=$TorrentID][$Format/$Encoding/$Media]{$RemasterDisplayString}[/url] ".($HasCue ? ' (Cue)' : '').($HasLog ? " [url=torrents.php?action=viewlog&torrentid=$TorrentID&groupid=$GroupID](Log: {$LogScore}%)[/url]" : '').' ('.number_format($Size / (1024 * 1024), 2).' MB)';
|
276
|
|
- } elseif ($ArtistID == 0 && $ArtistName == 'Various Artists') {
|
277
|
|
- $RawName = "Various Artists - $GroupName".($Year ? " ($Year)" : '')." [$Format/$Encoding/$Media]{$RemasterDisplayString}" . ($HasCue ? ' (Cue)' : '').($HasLog ? " (Log: {$LogScore}%)" : '').' ('.number_format($Size / (1024 * 1024), 2).' MB)';
|
|
290
|
+ $BBName = "[url=torrents.php?id=$GroupID]$GroupName".($Year ? " ($Year)" : '')."[/url] [url=torrents.php?torrentid=$TorrentID][$Format/$Encoding/$Media]{$RemasterDisplayString}[/url] ".($HasCue ? ' (Cue)' : '').($HasLog ? " [url=torrents.php?action=viewlog&torrentid=$TorrentID&groupid=$GroupID](Log: {$LogScore}%)[/url]" : '').' ('.number_format($Size / (1024 * 1024), 2).' MB)';
|
|
291
|
+ } elseif ($ArtistID == 0 && $ArtistName == 'Various Artists') {
|
|
292
|
+ $RawName = "Various Artists - $GroupName".($Year ? " ($Year)" : '')." [$Format/$Encoding/$Media]{$RemasterDisplayString}" . ($HasCue ? ' (Cue)' : '').($HasLog ? " (Log: {$LogScore}%)" : '').' ('.number_format($Size / (1024 * 1024), 2).' MB)';
|
278
|
293
|
|
279
|
|
- $LinkName = "Various Artists - <a href=\"torrents.php?id=$GroupID\">$GroupName".($Year ? " ($Year)" : '')."</a> <a href=\"torrents.php?torrentid=$TorrentID\"> [$Format/$Encoding/$Media]$RemasterDisplayString</a> ".($HasCue ? ' (Cue)' : '').($HasLog ? " <a href=\"torrents.php?action=viewlog&torrentid=$TorrentID&groupid=$GroupID\">(Log: {$LogScore}%)</a>" : '').' ('.number_format($Size / (1024 * 1024), 2).' MB)';
|
|
294
|
+ $LinkName = "Various Artists - <a href=\"torrents.php?id=$GroupID\">$GroupName".($Year ? " ($Year)" : '')."</a> <a href=\"torrents.php?torrentid=$TorrentID\"> [$Format/$Encoding/$Media]$RemasterDisplayString</a> ".($HasCue ? ' (Cue)' : '').($HasLog ? " <a href=\"torrents.php?action=viewlog&torrentid=$TorrentID&groupid=$GroupID\">(Log: {$LogScore}%)</a>" : '').' ('.number_format($Size / (1024 * 1024), 2).' MB)';
|
280
|
295
|
|
281
|
|
- $BBName = "Various Artists - [url=torrents.php?id=$GroupID]$GroupName".($Year ? " ($Year)" : '')."[/url] [url=torrents.php?torrentid=$TorrentID][$Format/$Encoding/$Media]{$RemasterDisplayString}[/url] ".($HasCue ? ' (Cue)' : '').($HasLog ? " [url=torrents.php?action=viewlog&torrentid=$TorrentID&groupid=$GroupID](Log: {$LogScore}%)[/url]" : '').' ('.number_format($Size / (1024 * 1024), 2).' MB)';
|
282
|
|
- } else {
|
283
|
|
-*/
|
284
|
|
- $RawName = "$ArtistName - $GroupName".($Year ? " ($Year)" : '')." [$Media] (".number_format($Size / (1024 * 1024), 2).' MB)';
|
|
296
|
+ $BBName = "Various Artists - [url=torrents.php?id=$GroupID]$GroupName".($Year ? " ($Year)" : '')."[/url] [url=torrents.php?torrentid=$TorrentID][$Format/$Encoding/$Media]{$RemasterDisplayString}[/url] ".($HasCue ? ' (Cue)' : '').($HasLog ? " [url=torrents.php?action=viewlog&torrentid=$TorrentID&groupid=$GroupID](Log: {$LogScore}%)[/url]" : '').' ('.number_format($Size / (1024 * 1024), 2).' MB)';
|
|
297
|
+ } else {
|
|
298
|
+ */
|
|
299
|
+ $RawName = "$ArtistName - $GroupName".($Year ? " ($Year)" : '')." [$Media] (".number_format($Size / (1024 * 1024), 2).' MB)';
|
285
|
300
|
|
286
|
|
- $LinkName = "<a href=\"artist.php?id=$ArtistID\">$ArtistName</a> - <a href=\"torrents.php?id=$GroupID\">$GroupName".($Year ? " ($Year)" : '')."</a> <a href=\"torrents.php?torrentid=$TorrentID\"> [$Media]</a> (".number_format($Size / (1024 * 1024), 2).' MB)';
|
|
301
|
+ $LinkName = "<a href=\"artist.php?id=$ArtistID\">$ArtistName</a> - <a href=\"torrents.php?id=$GroupID\">$GroupName".($Year ? " ($Year)" : '')."</a> <a href=\"torrents.php?torrentid=$TorrentID\"> [$Media]</a> (".number_format($Size / (1024 * 1024), 2).' MB)';
|
287
|
302
|
|
288
|
|
- $BBName = "[url=artist.php?id=$ArtistID]".$ArtistName."[/url] - [url=torrents.php?id=$GroupID]$GroupName".($Year ? " ($Year)" : '')."[/url] [url=torrents.php?torrentid=$TorrentID][$Media][/url] ".' ('.number_format($Size / (1024 * 1024), 2).' MB)';
|
289
|
|
-// }
|
290
|
|
-?>
|
|
303
|
+ $BBName = "[url=artist.php?id=$ArtistID]".$ArtistName."[/url] - [url=torrents.php?id=$GroupID]$GroupName".($Year ? " ($Year)" : '')."[/url] [url=torrents.php?torrentid=$TorrentID][$Media][/url] ".' ('.number_format($Size / (1024 * 1024), 2).' MB)';
|
|
304
|
+// }?>
|
291
|
305
|
<div id="report<?=$ReportID?>" data-load-report="<?=$ReportID?>">
|
292
|
306
|
<form class="manage_form" name="report" id="reportform_<?=$ReportID?>" action="reports.php" method="post">
|
293
|
|
-<?
|
|
307
|
+<?php
|
294
|
308
|
/*
|
295
|
309
|
* Some of these are for takeresolve, namely the ones that aren't inputs, some for the JavaScript.
|
296
|
310
|
*/
|
|
@@ -320,63 +334,62 @@ if (count($Reports) === 0) {
|
320
|
334
|
uploaded by <a href="user.php?id=<?=$UploaderID?>"><?=$UploaderName?></a> <?=time_diff($Time)?>
|
321
|
335
|
<br />
|
322
|
336
|
<?php if ($ReporterName == '') {
|
323
|
|
- $ReporterName = 'System';
|
324
|
|
- } ?>
|
|
337
|
+ $ReporterName = 'System';
|
|
338
|
+} ?>
|
325
|
339
|
<div style="text-align: right;">was reported by <a href="user.php?id=<?=$ReporterID?>"><?=$ReporterName?></a> <?=time_diff($ReportedTime)?> for the reason: <strong><?=$ReportType['title']?></strong></div>
|
326
|
340
|
<?php if ($Status != 'Resolved') {
|
327
|
|
-
|
328
|
|
- $DB->query("
|
329
|
|
- SELECT r.ID
|
330
|
|
- FROM reportsv2 AS r
|
331
|
|
- LEFT JOIN torrents AS t ON t.ID = r.TorrentID
|
332
|
|
- WHERE r.Status != 'Resolved'
|
333
|
|
- AND t.GroupID = $GroupID");
|
334
|
|
- $GroupOthers = ($DB->record_count() - 1);
|
335
|
|
-
|
336
|
|
- if ($GroupOthers > 0) { ?>
|
|
341
|
+ $DB->query("
|
|
342
|
+ SELECT r.`ID`
|
|
343
|
+ FROM `reportsv2` AS r
|
|
344
|
+ LEFT JOIN `torrents` AS t ON t.`ID` = r.`TorrentID`
|
|
345
|
+ WHERE r.`Status` != 'Resolved'
|
|
346
|
+ AND t.`GroupID` = $GroupID");
|
|
347
|
+ $GroupOthers = ($DB->record_count() - 1);
|
|
348
|
+
|
|
349
|
+ if ($GroupOthers > 0) { ?>
|
337
|
350
|
<div style="text-align: right;">
|
338
|
351
|
<a href="reportsv2.php?view=group&id=<?=$GroupID?>">There <?=(($GroupOthers > 1) ? "are $GroupOthers other reports" : "is 1 other report")?> for torrent(s) in this group</a>
|
339
|
352
|
</div>
|
340
|
353
|
<?php }
|
341
|
354
|
|
342
|
|
- $DB->query("
|
343
|
|
- SELECT t.UserID
|
344
|
|
- FROM reportsv2 AS r
|
345
|
|
- JOIN torrents AS t ON t.ID = r.TorrentID
|
346
|
|
- WHERE r.Status != 'Resolved'
|
347
|
|
- AND t.UserID = $UploaderID");
|
348
|
|
- $UploaderOthers = ($DB->record_count() - 1);
|
|
355
|
+ $DB->query("
|
|
356
|
+ SELECT t.`UserID`
|
|
357
|
+ FROM `reportsv2` AS r
|
|
358
|
+ JOIN `torrents` AS t ON t.`ID` = r.`TorrentID`
|
|
359
|
+ WHERE r.`Status` != 'Resolved'
|
|
360
|
+ AND t.`UserID` = $UploaderID");
|
|
361
|
+ $UploaderOthers = ($DB->record_count() - 1);
|
349
|
362
|
|
350
|
|
- if ($UploaderOthers > 0) { ?>
|
|
363
|
+ if ($UploaderOthers > 0) { ?>
|
351
|
364
|
<div style="text-align: right;">
|
352
|
365
|
<a href="reportsv2.php?view=uploader&id=<?=$UploaderID?>">There <?=(($UploaderOthers > 1) ? "are $UploaderOthers other reports" : "is 1 other report")?> for torrent(s) uploaded by this user</a>
|
353
|
366
|
</div>
|
354
|
367
|
<?php }
|
355
|
368
|
|
356
|
|
- $DB->query("
|
357
|
|
- SELECT DISTINCT req.ID,
|
358
|
|
- req.FillerID,
|
359
|
|
- um.Username,
|
360
|
|
- req.TimeFilled
|
361
|
|
- FROM requests AS req
|
362
|
|
- LEFT JOIN torrents AS t ON t.ID = req.TorrentID
|
363
|
|
- LEFT JOIN reportsv2 AS rep ON rep.TorrentID = t.ID
|
364
|
|
- JOIN users_main AS um ON um.ID = req.FillerID
|
365
|
|
- WHERE rep.Status != 'Resolved'
|
366
|
|
- AND req.TimeFilled > '2010-03-04 02:31:49'
|
367
|
|
- AND req.TorrentID = $TorrentID");
|
368
|
|
- $Requests = ($DB->has_results());
|
369
|
|
- if ($Requests > 0) {
|
370
|
|
- while (list($RequestID, $FillerID, $FillerName, $FilledTime) = $DB->next_record()) {
|
371
|
|
-?>
|
|
369
|
+ $DB->query("
|
|
370
|
+ SELECT DISTINCT req.`ID`,
|
|
371
|
+ req.`FillerID`,
|
|
372
|
+ um.`Username`,
|
|
373
|
+ req.`TimeFilled`
|
|
374
|
+ FROM `requests` AS req
|
|
375
|
+ LEFT JOIN `torrents` AS t ON t.`ID` = req.`TorrentID`
|
|
376
|
+ LEFT JOIN `reportsv2` AS rep ON rep.`TorrentID` = t.`ID`
|
|
377
|
+ JOIN `users_main` AS um ON um.`ID` = req.`FillerID`
|
|
378
|
+ WHERE rep.`Status` != 'Resolved'
|
|
379
|
+ AND req.`TimeFilled` > '2010-03-04 02:31:49'
|
|
380
|
+ AND req.`TorrentID` = $TorrentID");
|
|
381
|
+ $Requests = ($DB->has_results());
|
|
382
|
+ if ($Requests > 0) {
|
|
383
|
+ while (list($RequestID, $FillerID, $FillerName, $FilledTime) = $DB->next_record()) {
|
|
384
|
+ ?>
|
372
|
385
|
<div style="text-align: right;">
|
373
|
386
|
<strong class="important_text"><a href="user.php?id=<?=$FillerID?>"><?=$FillerName?></a> used this torrent to fill <a href="requests.php?action=view&id=<?=$RequestID?>">this request</a> <?=time_diff($FilledTime)?></strong>
|
374
|
387
|
</div>
|
375
|
|
-<?php }
|
376
|
|
- }
|
|
388
|
+<?php
|
377
|
389
|
}
|
378
|
|
- }
|
379
|
|
-?>
|
|
390
|
+ }
|
|
391
|
+}
|
|
392
|
+ } ?>
|
380
|
393
|
</td>
|
381
|
394
|
</tr>
|
382
|
395
|
<?php if ($Tracks) { ?>
|
|
@@ -386,101 +399,99 @@ if (count($Reports) === 0) {
|
386
|
399
|
<?=str_replace(' ', ', ', $Tracks)?>
|
387
|
400
|
</td>
|
388
|
401
|
</tr>
|
389
|
|
-<?
|
|
402
|
+<?php
|
390
|
403
|
}
|
391
|
404
|
|
392
|
|
- if ($Links) { ?>
|
|
405
|
+ if ($Links) { ?>
|
393
|
406
|
<tr>
|
394
|
407
|
<td class="label">Relevant links:</td>
|
395
|
408
|
<td colspan="3">
|
396
|
|
-<?
|
|
409
|
+<?php
|
397
|
410
|
$Links = explode(' ', $Links);
|
398
|
411
|
foreach ($Links as $Link) {
|
399
|
|
-
|
400
|
|
- if ($local_url = Text::local_url($Link)) {
|
401
|
|
- $Link = $local_url;
|
402
|
|
- }
|
403
|
|
-?>
|
|
412
|
+ if ($local_url = Text::local_url($Link)) {
|
|
413
|
+ $Link = $local_url;
|
|
414
|
+ } ?>
|
404
|
415
|
<a href="<?=$Link?>"><?=$Link?></a>
|
405
|
|
-<?php } ?>
|
|
416
|
+<?php
|
|
417
|
+ } ?>
|
406
|
418
|
</td>
|
407
|
419
|
</tr>
|
408
|
|
-<?
|
|
420
|
+<?php
|
409
|
421
|
}
|
410
|
422
|
|
411
|
|
- if ($ExtraIDs) { ?>
|
|
423
|
+ if ($ExtraIDs) { ?>
|
412
|
424
|
<tr>
|
413
|
425
|
<td class="label">Relevant other torrents:</td>
|
414
|
426
|
<td colspan="3">
|
415
|
|
-<?
|
|
427
|
+<?php
|
416
|
428
|
$First = true;
|
417
|
429
|
$Extras = explode(' ', $ExtraIDs);
|
418
|
430
|
foreach ($Extras as $ExtraID) {
|
419
|
|
- $DB->query("
|
|
431
|
+ $DB->query("
|
420
|
432
|
SELECT
|
421
|
|
- COALESCE(NULLIF(tg.Name, ''), NULLIF(tg.Title2, ''), tg.NameJP) AS Name,
|
422
|
|
- tg.ID,
|
423
|
|
- ta.ArtistID,
|
424
|
|
- CASE COUNT(ta.GroupID)
|
425
|
|
- WHEN 1 THEN ag.Name
|
|
433
|
+ COALESCE(NULLIF(tg.`title`, ''), NULLIF(tg.`subject`, ''), tg.`object`) AS Name,
|
|
434
|
+ tg.`id`,
|
|
435
|
+ ta.`ArtistID`,
|
|
436
|
+ CASE COUNT(ta.`GroupID`)
|
|
437
|
+ WHEN 1 THEN ag.`Name`
|
426
|
438
|
WHEN 0 THEN ''
|
427
|
439
|
ELSE 'Various Artists'
|
428
|
440
|
END AS ArtistName,
|
429
|
|
- tg.Year,
|
430
|
|
- t.Time,
|
431
|
|
- t.Media,
|
432
|
|
- t.Size,
|
433
|
|
- t.UserID AS UploaderID,
|
434
|
|
- uploader.Username
|
435
|
|
- FROM torrents AS t
|
436
|
|
- LEFT JOIN torrents_group AS tg ON tg.ID = t.GroupID
|
437
|
|
- LEFT JOIN torrents_artists AS ta ON ta.GroupID = tg.ID
|
438
|
|
- LEFT JOIN artists_group AS ag ON ag.ArtistID = ta.ArtistID
|
439
|
|
- LEFT JOIN users_main AS uploader ON uploader.ID = t.UserID
|
440
|
|
- WHERE t.ID = ?
|
441
|
|
- GROUP BY tg.ID", $ExtraID);
|
442
|
|
-
|
443
|
|
- list($ExtraGroupName, $ExtraGroupID, $ExtraArtistID, $ExtraArtistName, $ExtraYear, $ExtraTime,
|
|
441
|
+ tg.`year`,
|
|
442
|
+ t.`Time`,
|
|
443
|
+ t.`Media`,
|
|
444
|
+ t.`Size`,
|
|
445
|
+ t.`UserID` AS UploaderID,
|
|
446
|
+ uploader.`Username`
|
|
447
|
+ FROM `torrents` AS t
|
|
448
|
+ LEFT JOIN `torrents_group` AS tg ON tg.`id` = t.`GroupID`
|
|
449
|
+ LEFT JOIN `torrents_artists` AS ta ON ta.`GroupID` = tg.`id`
|
|
450
|
+ LEFT JOIN `artists_group` AS ag ON ag.`ArtistID` = ta.`ArtistID`
|
|
451
|
+ LEFT JOIN `users_main` AS uploader ON uploader.`ID` = t.`UserID`
|
|
452
|
+ WHERE t.`ID` = ?
|
|
453
|
+ GROUP BY tg.`id`", $ExtraID);
|
|
454
|
+
|
|
455
|
+ list($ExtraGroupName, $ExtraGroupID, $ExtraArtistID, $ExtraArtistName, $ExtraYear, $ExtraTime,
|
444
|
456
|
$ExtraMedia, $ExtraSize, $ExtraUploaderID, $ExtraUploaderName) = Misc::display_array($DB->next_record());
|
445
|
|
- if ($ExtraGroupName) {
|
446
|
|
-
|
447
|
|
- if ($ArtistID == 0 && empty($ArtistName)) {
|
448
|
|
- $ExtraLinkName = "<a href=\"torrents.php?id=$ExtraGroupID\">$ExtraGroupName".($ExtraYear ? " ($ExtraYear)" : '')."</a> <a href=\"torrents.php?torrentid=$ExtraID\"> [$ExtraFormat/$ExtraEncoding/$ExtraMedia]</a> ".' ('.number_format($ExtraSize / (1024 * 1024), 2).' MB)';
|
449
|
|
- } elseif ($ArtistID == 0 && $ArtistName == 'Various Artists') {
|
450
|
|
- $ExtraLinkName = "Various Artists - <a href=\"torrents.php?id=$ExtraGroupID\">$ExtraGroupName".($ExtraYear ? " ($ExtraYear)" : '')."</a> <a href=\"torrents.php?torrentid=$ExtraID\"> [$ExtraFormat/$ExtraEncoding/$ExtraMedia]</a> (".number_format($ExtraSize / (1024 * 1024), 2).' MB)';
|
451
|
|
- } else {
|
452
|
|
- $ExtraLinkName = "<a href=\"artist.php?id=$ExtraArtistID\">$ExtraArtistName</a> - <a href=\"torrents.php?id=$ExtraGroupID\">$ExtraGroupName".($ExtraYear ? " ($ExtraYear)" : '')."</a> <a href=\"torrents.php?torrentid=$ExtraID\"> [//$ExtraMedia]</a> (".number_format($ExtraSize / (1024 * 1024), 2).' MB)';
|
453
|
|
- }
|
454
|
|
-?>
|
|
457
|
+ if ($ExtraGroupName) {
|
|
458
|
+ if ($ArtistID == 0 && empty($ArtistName)) {
|
|
459
|
+ $ExtraLinkName = "<a href=\"torrents.php?id=$ExtraGroupID\">$ExtraGroupName".($ExtraYear ? " ($ExtraYear)" : '')."</a> <a href=\"torrents.php?torrentid=$ExtraID\"> [$ExtraFormat/$ExtraEncoding/$ExtraMedia]</a> ".' ('.number_format($ExtraSize / (1024 * 1024), 2).' MB)';
|
|
460
|
+ } elseif ($ArtistID == 0 && $ArtistName == 'Various Artists') {
|
|
461
|
+ $ExtraLinkName = "Various Artists - <a href=\"torrents.php?id=$ExtraGroupID\">$ExtraGroupName".($ExtraYear ? " ($ExtraYear)" : '')."</a> <a href=\"torrents.php?torrentid=$ExtraID\"> [$ExtraFormat/$ExtraEncoding/$ExtraMedia]</a> (".number_format($ExtraSize / (1024 * 1024), 2).' MB)';
|
|
462
|
+ } else {
|
|
463
|
+ $ExtraLinkName = "<a href=\"artist.php?id=$ExtraArtistID\">$ExtraArtistName</a> - <a href=\"torrents.php?id=$ExtraGroupID\">$ExtraGroupName".($ExtraYear ? " ($ExtraYear)" : '')."</a> <a href=\"torrents.php?torrentid=$ExtraID\"> [//$ExtraMedia]</a> (".number_format($ExtraSize / (1024 * 1024), 2).' MB)';
|
|
464
|
+ } ?>
|
455
|
465
|
<?=($First ? '' : '<br />')?>
|
456
|
466
|
<?=$ExtraLinkName?>
|
457
|
467
|
<a href="torrents.php?action=download&id=<?=$ExtraID?>&authkey=<?=$LoggedUser['AuthKey']?>&torrent_pass=<?=$LoggedUser['torrent_pass']?>" title="Download" class="brackets tooltip">DL</a>
|
458
|
468
|
uploaded by <a href="user.php?id=<?=$ExtraUploaderID?>"><?=$ExtraUploaderName?></a> <?=time_diff($ExtraTime)?> <a href="#" onclick="Switch(<?=$ReportID?>, <?=$TorrentID?>, <?=$ExtraID?>); return false;" class="brackets">Switch</a>
|
459
|
|
-<?
|
|
469
|
+<?php
|
460
|
470
|
$First = false;
|
461
|
|
- }
|
|
471
|
+ }
|
462
|
472
|
}
|
463
|
473
|
?>
|
464
|
474
|
</td>
|
465
|
475
|
</tr>
|
466
|
|
-<?
|
|
476
|
+<?php
|
467
|
477
|
}
|
468
|
478
|
|
469
|
|
- if ($Images) {
|
470
|
|
-?>
|
|
479
|
+ if ($Images) {
|
|
480
|
+ ?>
|
471
|
481
|
<tr>
|
472
|
482
|
<td class="label">Relevant images:</td>
|
473
|
483
|
<td colspan="3">
|
474
|
|
-<?
|
|
484
|
+<?php
|
475
|
485
|
$Images = explode(' ', $Images);
|
476
|
|
- foreach ($Images as $Image) {
|
477
|
|
-?>
|
|
486
|
+ foreach ($Images as $Image) {
|
|
487
|
+ ?>
|
478
|
488
|
<img style="max-width: 200px;" class="lightbox-init" src="<?=ImageTools::process($Image)?>" alt="Relevant image" />
|
479
|
|
-<?php } ?>
|
|
489
|
+<?php
|
|
490
|
+ } ?>
|
480
|
491
|
</td>
|
481
|
492
|
</tr>
|
482
|
|
-<?
|
483
|
|
- } ?>
|
|
493
|
+<?php
|
|
494
|
+ } ?>
|
484
|
495
|
<tr>
|
485
|
496
|
<td class="label">User comment:</td>
|
486
|
497
|
<td colspan="3" class="wrap_overflow"><?=Text::full_format($UserComment)?></td>
|
|
@@ -494,7 +505,7 @@ if (count($Reports) === 0) {
|
494
|
505
|
</td>
|
495
|
506
|
</tr>
|
496
|
507
|
<?php }
|
497
|
|
- if ($Status != 'Resolved') { ?>
|
|
508
|
+ if ($Status != 'Resolved') { ?>
|
498
|
509
|
<tr>
|
499
|
510
|
<td class="label">Report comment:</td>
|
500
|
511
|
<td colspan="3">
|
|
@@ -508,11 +519,11 @@ if (count($Reports) === 0) {
|
508
|
519
|
</td>
|
509
|
520
|
<td colspan="3">
|
510
|
521
|
<select name="resolve_type" id="resolve_type<?=$ReportID?>" onchange="ChangeResolve(<?=$ReportID?>);">
|
511
|
|
-<?
|
|
522
|
+<?php
|
512
|
523
|
$TypeList = $Types['master'] /* + $Types[$CategoryID] */ ;
|
513
|
524
|
$Priorities = [];
|
514
|
525
|
foreach ($TypeList as $Key => $Value) {
|
515
|
|
- $Priorities[$Key] = $Value['priority'];
|
|
526
|
+ $Priorities[$Key] = $Value['priority'];
|
516
|
527
|
}
|
517
|
528
|
array_multisort($Priorities, SORT_ASC, $TypeList);
|
518
|
529
|
|
|
@@ -562,14 +573,14 @@ if (count($Reports) === 0) {
|
562
|
573
|
<tr>
|
563
|
574
|
<td class="label"><strong>Extra</strong> log message:</td>
|
564
|
575
|
<td>
|
565
|
|
- <input type="text" name="log_message" id="log_message<?=$ReportID?>" size="40"<?
|
|
576
|
+ <input type="text" name="log_message" id="log_message<?=$ReportID?>" size="40"<?php
|
566
|
577
|
if ($ExtraIDs) {
|
567
|
|
- $Extras = explode(' ', $ExtraIDs);
|
568
|
|
- $Value = '';
|
569
|
|
- foreach ($Extras as $ExtraID) {
|
570
|
|
- $Value .= site_url()."torrents.php?torrentid=$ExtraID ";
|
571
|
|
- }
|
572
|
|
- echo ' value="'.trim($Value).'"';
|
|
578
|
+ $Extras = explode(' ', $ExtraIDs);
|
|
579
|
+ $Value = '';
|
|
580
|
+ foreach ($Extras as $ExtraID) {
|
|
581
|
+ $Value .= site_url()."torrents.php?torrentid=$ExtraID ";
|
|
582
|
+ }
|
|
583
|
+ echo ' value="'.trim($Value).'"';
|
573
|
584
|
} ?>
|
574
|
585
|
/>
|
575
|
586
|
</td>
|
|
@@ -628,13 +639,13 @@ if (count($Reports) === 0) {
|
628
|
639
|
</div>
|
629
|
640
|
</form>
|
630
|
641
|
</div>
|
631
|
|
-<?
|
632
|
|
- }
|
|
642
|
+<?php
|
|
643
|
+ }
|
|
644
|
+ }
|
633
|
645
|
}
|
634
|
|
-}
|
635
|
646
|
?>
|
636
|
647
|
</div>
|
637
|
|
-<? if ($PageLinks) { ?>
|
|
648
|
+<?php if ($PageLinks) { ?>
|
638
|
649
|
<div class="linkbox pager"><?=$PageLinks?></div>
|
639
|
|
-<? } ?>
|
640
|
|
-<? View::show_footer(); ?>
|
|
650
|
+<?php } ?>
|
|
651
|
+<?php View::show_footer(); ?>
|