|
@@ -103,7 +103,7 @@ Source: <input type="text" value="<?=Users::get_upload_sources()[0]?>" size="20"
|
103
|
103
|
<input type="hidden" name="type" value="<?=display_str($this->Torrent['CategoryID']-1)?>" />
|
104
|
104
|
<?
|
105
|
105
|
}
|
106
|
|
- if ($this->Torrent && $this->Torrent['RequestID']) {
|
|
106
|
+ if ($this->Torrent && ($this->Torrent['RequestID'] ?? false)) {
|
107
|
107
|
?>
|
108
|
108
|
<input type="hidden" name="requestid" value="<?=display_str($this->Torrent['RequestID'])?>" />
|
109
|
109
|
<?
|
|
@@ -271,7 +271,7 @@ Source: <input type="text" value="<?=Users::get_upload_sources()[0]?>" size="20"
|
271
|
271
|
</tr>
|
272
|
272
|
<tr id="dlsite_tr">
|
273
|
273
|
<td class="label">DLsite ID</td>
|
274
|
|
- <td><input type="text" id="dlsiteid" name="dlsiteid" size="8" maxlength="8" value="<?=display_str($Torrent['DLsiteID'])?>" <?=$this->Disabled?>/></td>
|
|
274
|
+ <td><input type="text" id="dlsiteid" name="dlsiteid" size="8" maxlength="8" value="<?=display_str($Torrent['DLsiteID']??'')?>" <?=$this->Disabled?>/></td>
|
275
|
275
|
</tr>
|
276
|
276
|
<? } ?>
|
277
|
277
|
<tr id="media_tr">
|
|
@@ -282,7 +282,7 @@ Source: <input type="text" value="<?=Users::get_upload_sources()[0]?>" size="20"
|
282
|
282
|
<?
|
283
|
283
|
foreach($this->Media as $Media) {
|
284
|
284
|
echo "\t\t\t\t\t\t<option value=\"$Media\"";
|
285
|
|
- if ($Media == $Torrent['Media']) {
|
|
285
|
+ if ($Media == ($Torrent['Media'] ?? false)) {
|
286
|
286
|
echo " selected";
|
287
|
287
|
}
|
288
|
288
|
echo ">$Media</option>\n";
|
|
@@ -299,7 +299,7 @@ Source: <input type="text" value="<?=Users::get_upload_sources()[0]?>" size="20"
|
299
|
299
|
<?
|
300
|
300
|
foreach($this->MediaManga as $Media) {
|
301
|
301
|
echo "\t\t\t\t\t\t<option value=\"$Media\"";
|
302
|
|
- if ($Media == $Torrent['Media']) {
|
|
302
|
+ if ($Media == ($Torrent['Media'] ?? false)) {
|
303
|
303
|
echo " selected";
|
304
|
304
|
}
|
305
|
305
|
echo ">$Media</option>\n";
|
|
@@ -316,7 +316,7 @@ Source: <input type="text" value="<?=Users::get_upload_sources()[0]?>" size="20"
|
316
|
316
|
<?
|
317
|
317
|
foreach($this->Platform as $Platform) {
|
318
|
318
|
echo "\t\t\t\t\t\t<option value=\"$Platform\"";
|
319
|
|
- if ($Platform == $Torrent['Media']) {
|
|
319
|
+ if ($Platform == ($Torrent['Media'] ?? false)) {
|
320
|
320
|
echo " selected";
|
321
|
321
|
}
|
322
|
322
|
echo ">$Platform</option>\n";
|
|
@@ -333,7 +333,7 @@ Source: <input type="text" value="<?=Users::get_upload_sources()[0]?>" size="20"
|
333
|
333
|
<?
|
334
|
334
|
foreach($this->Archives as $Archive) {
|
335
|
335
|
echo "\t\t\t\t\t\t<option value=\"$Archive\"";
|
336
|
|
- if ($Archive == $Torrent['Archive']) {
|
|
336
|
+ if ($Archive == ($Torrent['Archive'] ?? false)) {
|
337
|
337
|
echo ' selected';
|
338
|
338
|
}
|
339
|
339
|
echo ">$Archive</option>\n";
|
|
@@ -350,7 +350,7 @@ Source: <input type="text" value="<?=Users::get_upload_sources()[0]?>" size="20"
|
350
|
350
|
<?
|
351
|
351
|
foreach(array_merge($this->Archives, $this->ArchivesManga) as $Archive) {
|
352
|
352
|
echo "\t\t\t\t\t\t<option value=\"$Archive\"";
|
353
|
|
- if ($Archive == $Torrent['Archive']) {
|
|
353
|
+ if ($Archive == ($Torrent['Archive'] ?? false)) {
|
354
|
354
|
echo ' selected';
|
355
|
355
|
}
|
356
|
356
|
echo ">$Archive</option>\n";
|
|
@@ -367,7 +367,7 @@ Source: <input type="text" value="<?=Users::get_upload_sources()[0]?>" size="20"
|
367
|
367
|
<?
|
368
|
368
|
foreach($this->Containers as $Cont) {
|
369
|
369
|
echo "\t\t\t\t\t\t<option value=\"$Cont\"";
|
370
|
|
- if ($Cont == $Torrent['Container']) {
|
|
370
|
+ if ($Cont == ($Torrent['Container'] ?? false)) {
|
371
|
371
|
echo " selected";
|
372
|
372
|
}
|
373
|
373
|
echo ">$Cont</option>\n";
|
|
@@ -384,7 +384,7 @@ Source: <input type="text" value="<?=Users::get_upload_sources()[0]?>" size="20"
|
384
|
384
|
<?
|
385
|
385
|
foreach($this->ContainersGames as $Container) {
|
386
|
386
|
echo "\t\t\t\t\t\t<option value=\"$Container\"";
|
387
|
|
- if ($Container == $Torrent['Container']) {
|
|
387
|
+ if ($Container == ($Torrent['Container'] ?? false)) {
|
388
|
388
|
echo " selected";
|
389
|
389
|
}
|
390
|
390
|
echo ">$Container</option>\n";
|
|
@@ -401,7 +401,7 @@ Source: <input type="text" value="<?=Users::get_upload_sources()[0]?>" size="20"
|
401
|
401
|
<?
|
402
|
402
|
foreach($this->Codecs as $Codec) {
|
403
|
403
|
echo "\t\t\t\t\t\t<option value=\"$Codec\"";
|
404
|
|
- if ($Codec == $Torrent['Codec']) {
|
|
404
|
+ if ($Codec == ($Torrent['Codec'] ?? false)) {
|
405
|
405
|
echo " selected";
|
406
|
406
|
}
|
407
|
407
|
echo ">$Codec</option>\n";
|
|
@@ -418,7 +418,7 @@ Source: <input type="text" value="<?=Users::get_upload_sources()[0]?>" size="20"
|
418
|
418
|
<?
|
419
|
419
|
foreach($this->Resolutions as $Res) {
|
420
|
420
|
echo "\t\t\t\t\t\t<option value=\"$Res\"";
|
421
|
|
- if ($Res == $Torrent['Resolution'] || (!isset($FoundRes) && ($Torrent['Resolution'] ?? false) && $Res == "Other")) {
|
|
421
|
+ if ($Res == ($Torrent['Resolution'] ?? false) || (!isset($FoundRes) && ($Torrent['Resolution'] ?? false) && $Res == "Other")) {
|
422
|
422
|
echo " selected";
|
423
|
423
|
$FoundRes = true;
|
424
|
424
|
}
|
|
@@ -426,7 +426,7 @@ Source: <input type="text" value="<?=Users::get_upload_sources()[0]?>" size="20"
|
426
|
426
|
}
|
427
|
427
|
?>
|
428
|
428
|
</select>
|
429
|
|
- <input type="text" id="resolution" name="resolution" size="10" class="hidden tooltip" pattern="[0-9]+x[0-9]+" title='Enter "Other" resolutions in the form ###x###' value="<?=$Torrent['Resolution']?>" readonly></input>
|
|
429
|
+ <input type="text" id="resolution" name="resolution" size="10" class="hidden tooltip" pattern="[0-9]+x[0-9]+" title='Enter "Other" resolutions in the form ###x###' value="<?=($Torrent['Resolution']??'')?>" readonly></input>
|
430
|
430
|
<script>
|
431
|
431
|
if ($('#ressel').raw().value == "Other") {
|
432
|
432
|
$('#resolution').raw().readOnly = false
|
|
@@ -443,7 +443,7 @@ Source: <input type="text" value="<?=Users::get_upload_sources()[0]?>" size="20"
|
443
|
443
|
<?
|
444
|
444
|
foreach($this->AudioFormats as $AudioFormat) {
|
445
|
445
|
echo "\t\t\t\t\t\t<option value=\"$AudioFormat\"";
|
446
|
|
- if ($AudioFormat == $Torrent['AudioFormat']) {
|
|
446
|
+ if ($AudioFormat == ($Torrent['AudioFormat'] ?? false)) {
|
447
|
447
|
echo " selected";
|
448
|
448
|
}
|
449
|
449
|
echo ">$AudioFormat</option>\n";
|
|
@@ -460,7 +460,7 @@ Source: <input type="text" value="<?=Users::get_upload_sources()[0]?>" size="20"
|
460
|
460
|
<?
|
461
|
461
|
foreach($this->Languages as $Language) {
|
462
|
462
|
echo "\t\t\t\t\t\t<option value=\"$Language\"";
|
463
|
|
- if ($Language == $Torrent['Language']) {
|
|
463
|
+ if ($Language == ($Torrent['Language'] ?? false)) {
|
464
|
464
|
echo " selected";
|
465
|
465
|
}
|
466
|
466
|
echo ">$Language</option>\n";
|
|
@@ -477,7 +477,7 @@ Source: <input type="text" value="<?=Users::get_upload_sources()[0]?>" size="20"
|
477
|
477
|
<?
|
478
|
478
|
foreach($this->Subbing as $Subbing) {
|
479
|
479
|
echo "\t\t\t\t\t\t<option value=\"$Subbing\"";
|
480
|
|
- if ($Subbing == $Torrent['Subbing']) {
|
|
480
|
+ if ($Subbing == ($Torrent['Subbing'] ?? false)) {
|
481
|
481
|
echo " selected";
|
482
|
482
|
}
|
483
|
483
|
echo ">$Subbing</option>\n";
|
|
@@ -488,7 +488,7 @@ Source: <input type="text" value="<?=Users::get_upload_sources()[0]?>" size="20"
|
488
|
488
|
</tr>
|
489
|
489
|
<tr id="trans_tr">
|
490
|
490
|
<td class="label">Translation Group (optional)</td>
|
491
|
|
- <td><input type="text" id="subber" name="subber" size="60" value="<?=display_str($Torrent['Subber']) ?>" /></td>
|
|
491
|
+ <td><input type="text" id="subber" name="subber" size="60" value="<?=display_str($Torrent['Subber']??'') ?>" /></td>
|
492
|
492
|
</tr>
|
493
|
493
|
<tr id="censored_tr">
|
494
|
494
|
<td class="label">Censored?</td>
|
|
@@ -499,7 +499,7 @@ Source: <input type="text" value="<?=Users::get_upload_sources()[0]?>" size="20"
|
499
|
499
|
<tr id="mediainfo_tr">
|
500
|
500
|
<td class="label">Media Info</td>
|
501
|
501
|
<td>
|
502
|
|
- <textarea name="mediainfo" id="mediainfo" onchange="MediaInfoExtract()" rows="8" cols="60"><?=display_str($Torrent['MediaInfo'])?></textarea>
|
|
502
|
+ <textarea name="mediainfo" id="mediainfo" onchange="MediaInfoExtract()" rows="8" cols="60"><?=display_str($Torrent['MediaInfo']??'')?></textarea>
|
503
|
503
|
</td>
|
504
|
504
|
</tr>
|
505
|
505
|
<? if ($this->NewTorrent) { ?>
|
|
@@ -553,7 +553,7 @@ Source: <input type="text" value="<?=Users::get_upload_sources()[0]?>" size="20"
|
553
|
553
|
<td class="label">Torrent Description (optional)</td>
|
554
|
554
|
<td>
|
555
|
555
|
<p class="min_padding notes"></p>
|
556
|
|
-<?php new TEXTAREA_PREVIEW('release_desc', 'release_desc', display_str($Torrent['TorrentDescription']), 60, 8); ?>
|
|
556
|
+<?php new TEXTAREA_PREVIEW('release_desc', 'release_desc', display_str($Torrent['TorrentDescription']??''), 60, 8); ?>
|
557
|
557
|
</td>
|
558
|
558
|
</tr>
|
559
|
559
|
<tr id="anon_tr">
|