|
@@ -55,8 +55,8 @@ $Properties['Subber']= $_POST['subber'];
|
55
|
55
|
$Properties['Censored'] = (isset($_POST['censored'])) ? '1' : '0';
|
56
|
56
|
$Properties['Anonymous'] = (isset($_POST['anonymous'])) ? '1' : '0';
|
57
|
57
|
|
58
|
|
-$Properties['Container'] = (isset($_POST['container']) && $_POST['container'] !== '---') ? $_POST['container'] : '';
|
59
|
|
-$Properties['Archive'] = (isset($_POST['archive']) && $_POST['archive'] !== '---') ? $_POST['archive'] : '';
|
|
58
|
+$Properties['Container'] = (isset($_POST['container']) && $_POST['container'] !== 'Autofill') ? $_POST['container'] : '';
|
|
59
|
+$Properties['Archive'] = (isset($_POST['archive']) && $_POST['archive'] !== 'Autofill') ? $_POST['archive'] : '';
|
60
|
60
|
|
61
|
61
|
if ($_POST['album_desc']) {
|
62
|
62
|
$Properties['GroupDescription'] = $_POST['album_desc'];
|
|
@@ -183,6 +183,7 @@ switch ($Type) {
|
183
|
183
|
'Remaster catalogue number must be between 2 and 80 characters',
|
184
|
184
|
array('maxlength' => 80, 'minlength' => 2)
|
185
|
185
|
);
|
|
186
|
+ */
|
186
|
187
|
|
187
|
188
|
$Validate->SetFields(
|
188
|
189
|
'format',
|
|
@@ -192,6 +193,7 @@ switch ($Type) {
|
192
|
193
|
array('inarray' => $Formats)
|
193
|
194
|
);
|
194
|
195
|
|
|
196
|
+ /*
|
195
|
197
|
$Validate->SetFields(
|
196
|
198
|
'bitrate',
|
197
|
199
|
'1',
|
|
@@ -227,6 +229,7 @@ switch ($Type) {
|
227
|
229
|
array('inarray' => $Bitrates)
|
228
|
230
|
);
|
229
|
231
|
}
|
|
232
|
+ */
|
230
|
233
|
|
231
|
234
|
$Validate->SetFields(
|
232
|
235
|
'media',
|
|
@@ -236,6 +239,7 @@ switch ($Type) {
|
236
|
239
|
array('inarray' => $Media)
|
237
|
240
|
);
|
238
|
241
|
|
|
242
|
+ /*
|
239
|
243
|
$Validate->SetFields(
|
240
|
244
|
'release_desc',
|
241
|
245
|
'0',
|
|
@@ -252,6 +256,7 @@ switch ($Type) {
|
252
|
256
|
|
253
|
257
|
$Err = $Validate->ValidateForm($_POST); // Validate the form
|
254
|
258
|
|
|
259
|
+/*
|
255
|
260
|
if ($Properties['Remastered'] && !$Properties['RemasterYear']) {
|
256
|
261
|
// Unknown Edit!
|
257
|
262
|
if ($LoggedUser['ID'] === $UserID || check_perms('edit_unknowns')) {
|
|
@@ -260,6 +265,7 @@ if ($Properties['Remastered'] && !$Properties['RemasterYear']) {
|
260
|
265
|
$Err = "You may not edit someone else's upload to unknown release";
|
261
|
266
|
}
|
262
|
267
|
}
|
|
268
|
+*/
|
263
|
269
|
|
264
|
270
|
// Strip out Amazon's padding
|
265
|
271
|
$AmazonReg = '/(http:\/\/ecx.images-amazon.com\/images\/.+)(\._.*_\.jpg)/i';
|
|
@@ -322,22 +328,20 @@ $DBTorVals = $DBTorVals[0];
|
322
|
328
|
$LogDetails = '';
|
323
|
329
|
foreach ($DBTorVals as $Key => $Value) {
|
324
|
330
|
$Value = "'$Value'";
|
325
|
|
- if ($Value != $T[$Key]) {
|
|
331
|
+ if ($Value !== $T[$Key]) {
|
326
|
332
|
if (!isset($T[$Key])) {
|
327
|
333
|
continue;
|
328
|
334
|
}
|
329
|
|
- if ((empty($Value) && empty($T[$Key])) || ($Value == "'0'" && $T[$Key] == "''")) {
|
|
335
|
+ if ((empty($Value) && empty($T[$Key])) || ($Value === "'0'" && $T[$Key] === "''")) {
|
330
|
336
|
continue;
|
331
|
337
|
}
|
332
|
|
- if ($LogDetails == '') {
|
|
338
|
+ if ($LogDetails === '') {
|
333
|
339
|
$LogDetails = "$Key: $Value -> ".$T[$Key];
|
334
|
340
|
} else {
|
335
|
341
|
$LogDetails = "$LogDetails, $Key: $Value -> ".$T[$Key];
|
336
|
342
|
}
|
337
|
343
|
}
|
338
|
344
|
}
|
339
|
|
-$T['Censored'] = $Properties['Censored'];
|
340
|
|
-$T['Anonymous'] = $Properties['Anonymous'];
|
341
|
345
|
|
342
|
346
|
// Update info for the torrent
|
343
|
347
|
/*
|
|
@@ -359,14 +363,14 @@ $SQL = "
|
359
|
363
|
UPDATE torrents
|
360
|
364
|
SET
|
361
|
365
|
Media = $T[Media],
|
362
|
|
- Container = $T[Container],
|
|
366
|
+ Container = '$T[Container]',
|
363
|
367
|
Codec = $T[Codec],
|
364
|
368
|
Resolution = $T[Resolution],
|
365
|
369
|
AudioFormat = $T[AudioFormat],
|
366
|
370
|
Subbing = $T[Subbing],
|
367
|
371
|
Language = $T[Language],
|
368
|
372
|
Subber = $T[Subber],
|
369
|
|
- Archive = $T[Archive],
|
|
373
|
+ Archive = '$T[Archive]',
|
370
|
374
|
MediaInfo = $T[MediaInfo],
|
371
|
375
|
Censored = $T[Censored],
|
372
|
376
|
Anonymous = $T[Anonymous],";
|