Browse Source

Put magnet links behind a user setting

spaghetti 8 years ago
parent
commit
785d4c17f6

+ 13
- 5
sections/artist/artist.php View File

279
 
279
 
280
       $SnatchedTorrentClass = $Torrent['IsSnatched'] ? ' snatched_torrent' : '';
280
       $SnatchedTorrentClass = $Torrent['IsSnatched'] ? ' snatched_torrent' : '';
281
       $TorrentDL = "torrents.php?action=download&id=".$TorrentID."&authkey=".$LoggedUser['AuthKey']."&torrent_pass=".$LoggedUser['torrent_pass'];
281
       $TorrentDL = "torrents.php?action=download&id=".$TorrentID."&authkey=".$LoggedUser['AuthKey']."&torrent_pass=".$LoggedUser['torrent_pass'];
282
-      $TorrentMG = "magnet:?xt=urn:btih:".$Torrent['info_hash']."&as=https://".SITE_DOMAIN."/".str_replace('&','%26',$TorrentDL)."&tr=".implode("/".$LoggedUser['torrent_pass']."/announce&tr=",ANNOUNCE_URLS[0])."/".$LoggedUser['torrent_pass']."/announce&xl=".$Torrent['Size'];
282
+      if (!empty(G::$LoggedUser) && (G::$LoggedUser['ShowMagnets'] ?? false)) {
283
+        $TorrentMG = "magnet:?xt=urn:btih:".$Torrent['info_hash']."&as=https://".SITE_DOMAIN."/".str_replace('&','%26',$TorrentDL)."&tr=".implode("/".$LoggedUser['torrent_pass']."/announce&tr=",ANNOUNCE_URLS[0])."/".$LoggedUser['torrent_pass']."/announce&xl=".$Torrent['Size'];
284
+      }
283
 ?>
285
 ?>
284
     <tr class="torrent_row groupid_<?=$GroupID?> group_torrent discog<?=$SnatchedTorrentClass . $SnatchedGroupClass . $HideTorrents?>">
286
     <tr class="torrent_row groupid_<?=$GroupID?> group_torrent discog<?=$SnatchedTorrentClass . $SnatchedGroupClass . $HideTorrents?>">
285
       <td colspan="2">
287
       <td colspan="2">
286
           <span>
288
           <span>
287
           [ <a href="<?=$TorrentDL?>" class="tooltip" title="Download">DL</a>
289
           [ <a href="<?=$TorrentDL?>" class="tooltip" title="Download">DL</a>
290
+<?  if (isset($TorrentMG)) { ?>
288
           | <a href="<?=$TorrentMG?>" class="tooltip" title="Magnet Link">MG</a>
291
           | <a href="<?=$TorrentMG?>" class="tooltip" title="Magnet Link">MG</a>
289
-<? if (Torrents::can_use_token($Torrent)) { ?>
292
+<?  }
293
+    if (Torrents::can_use_token($Torrent)) { ?>
290
           | <a href="torrents.php?action=download&amp;id=<?=$TorrentID?>&amp;authkey=<?=$LoggedUser['AuthKey']?>&amp;torrent_pass=<?=$LoggedUser['torrent_pass']?>&amp;usetoken=1" class="tooltip" title="Use a FL Token" onclick="return confirm('Are you sure you want to use a freeleech token here?');">FL</a>
294
           | <a href="torrents.php?action=download&amp;id=<?=$TorrentID?>&amp;authkey=<?=$LoggedUser['AuthKey']?>&amp;torrent_pass=<?=$LoggedUser['torrent_pass']?>&amp;usetoken=1" class="tooltip" title="Use a FL Token" onclick="return confirm('Are you sure you want to use a freeleech token here?');">FL</a>
291
-<?    } ?>
295
+<?  } ?>
292
           | <a href="reportsv2.php?action=report&amp;id=<?=$TorrentID?>" class="tooltip" title="Report">RP</a> ]
296
           | <a href="reportsv2.php?action=report&amp;id=<?=$TorrentID?>" class="tooltip" title="Report">RP</a> ]
293
         </span>
297
         </span>
294
         &nbsp;&nbsp;&raquo;&nbsp; <a href="torrents.php?id=<?=$GroupID?>&amp;torrentid=<?=$TorrentID?>"><?=Torrents::torrent_info($Torrent)?></a>
298
         &nbsp;&nbsp;&raquo;&nbsp; <a href="torrents.php?id=<?=$GroupID?>&amp;torrentid=<?=$TorrentID?>"><?=Torrents::torrent_info($Torrent)?></a>
349
     $SnatchedTorrentClass = $Torrent['IsSnatched'] ? ' snatched_torrent' : '';
353
     $SnatchedTorrentClass = $Torrent['IsSnatched'] ? ' snatched_torrent' : '';
350
 
354
 
351
     $TorrentDL = "torrents.php?action=download&amp;id=".$TorrentID."&amp;authkey=".$LoggedUser['AuthKey']."&amp;torrent_pass=".$LoggedUser['torrent_pass'];
355
     $TorrentDL = "torrents.php?action=download&amp;id=".$TorrentID."&amp;authkey=".$LoggedUser['AuthKey']."&amp;torrent_pass=".$LoggedUser['torrent_pass'];
352
-    $TorrentMG = "magnet:?xt=urn:btih:".$Torrent['info_hash']."&as=https://".SITE_DOMAIN."/".str_replace('&amp;','%26',$TorrentDL)."&tr=".implode("/".$LoggedUser['torrent_pass']."/announce&tr=",ANNOUNCE_URLS[0])."/".$LoggedUser['torrent_pass']."/announce&xl=".$Torrent['Size'];
356
+    if (!empty(G::$LoggedUser) && (G::$LoggedUser['ShowMagnets'] ?? false)) {
357
+      $TorrentMG = "magnet:?xt=urn:btih:".$Torrent['info_hash']."&as=https://".SITE_DOMAIN."/".str_replace('&amp;','%26',$TorrentDL)."&tr=".implode("/".$LoggedUser['torrent_pass']."/announce&tr=",ANNOUNCE_URLS[0])."/".$LoggedUser['torrent_pass']."/announce&xl=".$Torrent['Size'];
358
+    }
353
 
359
 
354
 ?>
360
 ?>
355
     <tr class="torrent<?=$SnatchedTorrentClass . $SnatchedGroupClass?>">
361
     <tr class="torrent<?=$SnatchedTorrentClass . $SnatchedGroupClass?>">
360
           <div class="float_right">
366
           <div class="float_right">
361
             <span>
367
             <span>
362
             [ <a href="<?=$TorrentDL?>" class="tooltip" title="Download">DL</a>
368
             [ <a href="<?=$TorrentDL?>" class="tooltip" title="Download">DL</a>
369
+<?  if (isset($TorrentMG)) { ?>
363
             | <a href="<?=$TorrentMG?>" class="tooltip" title="Magnet Link">MG</a>
370
             | <a href="<?=$TorrentMG?>" class="tooltip" title="Magnet Link">MG</a>
364
-<? if (Torrents::can_use_token($Torrent)) { ?>
371
+<?  }
372
+    if (Torrents::can_use_token($Torrent)) { ?>
365
             | <a href="torrents.php?action=download&amp;id=<?=$TorrentID?>&amp;authkey=<?=$LoggedUser['AuthKey']?>&amp;torrent_pass=<?=$LoggedUser['torrent_pass']?>&amp;usetoken=1" class="tooltip" title="Use a FL Token" onclick="return confirm('Are you sure you want to use a freeleech token here?');">FL</a>
373
             | <a href="torrents.php?action=download&amp;id=<?=$TorrentID?>&amp;authkey=<?=$LoggedUser['AuthKey']?>&amp;torrent_pass=<?=$LoggedUser['torrent_pass']?>&amp;usetoken=1" class="tooltip" title="Use a FL Token" onclick="return confirm('Are you sure you want to use a freeleech token here?');">FL</a>
366
 <?    } ?>
374
 <?    } ?>
367
             | <a href="reportsv2.php?action=report&amp;id=<?=$TorrentID?>" class="tooltip" title="Report">RP</a> ]
375
             | <a href="reportsv2.php?action=report&amp;id=<?=$TorrentID?>" class="tooltip" title="Report">RP</a> ]

+ 24
- 14
sections/torrents/browse.php View File

596
 
596
 
597
       $SnatchedTorrentClass = $Data['IsSnatched'] ? ' snatched_torrent' : '';
597
       $SnatchedTorrentClass = $Data['IsSnatched'] ? ' snatched_torrent' : '';
598
       $TorrentDL = "torrents.php?action=download&amp;id=".$TorrentID."&amp;authkey=".$LoggedUser['AuthKey']."&amp;torrent_pass=".$LoggedUser['torrent_pass'];
598
       $TorrentDL = "torrents.php?action=download&amp;id=".$TorrentID."&amp;authkey=".$LoggedUser['AuthKey']."&amp;torrent_pass=".$LoggedUser['torrent_pass'];
599
-      if (!($TorrentFileName = $Cache->get_value('torrent_file_name_'.$TorrentID))) {
600
-        $TorrentFile = file_get_contents(TORRENT_STORE.$TorrentID.'.torrent');
601
-        $Tor = new BencodeTorrent($TorrentFile);
602
-        $TorrentFileName = $Tor->Dec['info']['name'];
603
-        $Cache->cache_value('torrent_file_name_'.$TorrentID, $TorrentFileName);
599
+
600
+      if (!empty(G::$LoggedUser) && (G::$LoggedUser['ShowMagnets'] ?? false)) {
601
+        if (!($TorrentFileName = $Cache->get_value('torrent_file_name_'.$TorrentID))) {
602
+          $TorrentFile = file_get_contents(TORRENT_STORE.$TorrentID.'.torrent');
603
+          $Tor = new BencodeTorrent($TorrentFile);
604
+          $TorrentFileName = $Tor->Dec['info']['name'];
605
+          $Cache->cache_value('torrent_file_name_'.$TorrentID, $TorrentFileName);
606
+        }
607
+        $TorrentMG = "magnet:?dn=".rawurlencode($TorrentFileName)."&xt=urn:btih:".$Data['info_hash']."&as=https://".SITE_DOMAIN."/".str_replace('&amp;','%26',$TorrentDL)."&tr=".implode("/".$LoggedUser['torrent_pass']."/announce&tr=",ANNOUNCE_URLS[0])."/".$LoggedUser['torrent_pass']."/announce&xl=".$Data['Size'];
604
       }
608
       }
605
-      $TorrentMG = "magnet:?dn=".rawurlencode($TorrentFileName)."&xt=urn:btih:".$Data['info_hash']."&as=https://".SITE_DOMAIN."/".str_replace('&amp;','%26',$TorrentDL)."&tr=".implode("/".$LoggedUser['torrent_pass']."/announce&tr=",ANNOUNCE_URLS[0])."/".$LoggedUser['torrent_pass']."/announce&xl=".$Data['Size'];
606
 
609
 
607
 ?>
610
 ?>
608
   <tr class="group_torrent groupid_<?=$GroupID?> <?=$SnatchedTorrentClass . $SnatchedGroupClass . (!empty($LoggedUser['TorrentGrouping']) && $LoggedUser['TorrentGrouping'] == 1 ? ' hidden' : '')?>">
611
   <tr class="group_torrent groupid_<?=$GroupID?> <?=$SnatchedTorrentClass . $SnatchedGroupClass . (!empty($LoggedUser['TorrentGrouping']) && $LoggedUser['TorrentGrouping'] == 1 ? ' hidden' : '')?>">
609
     <td colspan="3">
612
     <td colspan="3">
610
       <span>
613
       <span>
611
         [ <a href="<?=$TorrentDL?>" class="tooltip" title="Download"><?=$Data['HasFile'] ? 'DL' : 'Missing'?></a>
614
         [ <a href="<?=$TorrentDL?>" class="tooltip" title="Download"><?=$Data['HasFile'] ? 'DL' : 'Missing'?></a>
615
+<?      if (isset($TorrentMG)) { ?>
612
         | <a href="<?=$TorrentMG?>" class="tooltip" title="Magnet Link">MG</a>
616
         | <a href="<?=$TorrentMG?>" class="tooltip" title="Magnet Link">MG</a>
613
-<?      if (Torrents::can_use_token($Data)) { ?>
617
+<?      }
618
+        if (Torrents::can_use_token($Data)) { ?>
614
         | <a href="torrents.php?action=download&amp;id=<?=$TorrentID?>&amp;authkey=<?=$LoggedUser['AuthKey']?>&amp;torrent_pass=<?=$LoggedUser['torrent_pass']?>&amp;usetoken=1" class="tooltip" title="Use a FL Token" onclick="return confirm('Are you sure you want to use a freeleech token here?');">FL</a>
619
         | <a href="torrents.php?action=download&amp;id=<?=$TorrentID?>&amp;authkey=<?=$LoggedUser['AuthKey']?>&amp;torrent_pass=<?=$LoggedUser['torrent_pass']?>&amp;usetoken=1" class="tooltip" title="Use a FL Token" onclick="return confirm('Are you sure you want to use a freeleech token here?');">FL</a>
615
 <?      } ?>
620
 <?      } ?>
616
         | <a href="reportsv2.php?action=report&amp;id=<?=$TorrentID?>" class="tooltip" title="Report">RP</a> ]
621
         | <a href="reportsv2.php?action=report&amp;id=<?=$TorrentID?>" class="tooltip" title="Report">RP</a> ]
668
     }
673
     }
669
     $SnatchedTorrentClass = $Data['IsSnatched'] ? ' snatched_torrent' : '';
674
     $SnatchedTorrentClass = $Data['IsSnatched'] ? ' snatched_torrent' : '';
670
     $TorrentDL = "torrents.php?action=download&amp;id=".$TorrentID."&amp;authkey=".$LoggedUser['AuthKey']."&amp;torrent_pass=".$LoggedUser['torrent_pass'];
675
     $TorrentDL = "torrents.php?action=download&amp;id=".$TorrentID."&amp;authkey=".$LoggedUser['AuthKey']."&amp;torrent_pass=".$LoggedUser['torrent_pass'];
671
-    if (!($TorrentFileName = $Cache->get_value('torrent_file_name_'.$TorrentID))) {
672
-      $TorrentFile = file_get_contents(TORRENT_STORE.$TorrentID.'.torrent');
673
-      $Tor = new BencodeTorrent($TorrentFile);
674
-      $TorrentFileName = $Tor->Dec['info']['name'];
675
-      $Cache->cache_value('torrent_file_name_'.$TorrentID, $TorrentFileName);
676
+
677
+    if (!empty(G::$LoggedUser) && (G::$LoggedUser['ShowMagnets'] ?? false)) {
678
+      if (!($TorrentFileName = $Cache->get_value('torrent_file_name_'.$TorrentID))) {
679
+        $TorrentFile = file_get_contents(TORRENT_STORE.$TorrentID.'.torrent');
680
+        $Tor = new BencodeTorrent($TorrentFile);
681
+        $TorrentFileName = $Tor->Dec['info']['name'];
682
+        $Cache->cache_value('torrent_file_name_'.$TorrentID, $TorrentFileName);
683
+      }
684
+      $TorrentMG = "magnet:?dn=".rawurlencode($TorrentFileName)."&xt=urn:btih:".$Data['info_hash']."&as=https://".SITE_DOMAIN."/".str_replace('&amp;','%26',$TorrentDL)."&tr=".implode("/".$LoggedUser['torrent_pass']."/announce&tr=",ANNOUNCE_URLS[0])."/".$LoggedUser['torrent_pass']."/announce&xl=".$Data['Size'];
676
     }
685
     }
677
-    $TorrentMG = "magnet:?dn=".rawurlencode($TorrentFileName)."&xt=urn:btih:".$Data['info_hash']."&as=https://".SITE_DOMAIN."/".str_replace('&amp;','%26',$TorrentDL)."&tr=".implode("/".$LoggedUser['torrent_pass']."/announce&tr=",ANNOUNCE_URLS[0])."/".$LoggedUser['torrent_pass']."/announce&xl=".$Data['Size'];
678
 ?>
686
 ?>
679
   <tr class="torrent<?=$SnatchedTorrentClass . $SnatchedGroupClass?>">
687
   <tr class="torrent<?=$SnatchedTorrentClass . $SnatchedGroupClass?>">
680
 <?    if ($GroupResults) { ?>
688
 <?    if ($GroupResults) { ?>
688
         <div class="float_right">
696
         <div class="float_right">
689
           <span>
697
           <span>
690
           [ <a href="<?=$TorrentDL?>" class="tooltip" title="Download">DL</a>
698
           [ <a href="<?=$TorrentDL?>" class="tooltip" title="Download">DL</a>
699
+<?    if (isset($TorrentMG)) { ?>
691
           | <a href="<?=$TorrentMG?>" class="tooltip" title="Magnet Link">MG</a>
700
           | <a href="<?=$TorrentMG?>" class="tooltip" title="Magnet Link">MG</a>
692
-<?    if (Torrents::can_use_token($Data)) { ?>
701
+<?    }
702
+      if (Torrents::can_use_token($Data)) { ?>
693
           | <a href="torrents.php?action=download&amp;id=<?=$TorrentID?>&amp;authkey=<?=$LoggedUser['AuthKey']?>&amp;torrent_pass=<?=$LoggedUser['torrent_pass']?>&amp;usetoken=1" class="tooltip" title="Use a FL Token" onclick="return confirm('Are you sure you want to use a freeleech token here?');">FL</a>
703
           | <a href="torrents.php?action=download&amp;id=<?=$TorrentID?>&amp;authkey=<?=$LoggedUser['AuthKey']?>&amp;torrent_pass=<?=$LoggedUser['torrent_pass']?>&amp;usetoken=1" class="tooltip" title="Use a FL Token" onclick="return confirm('Are you sure you want to use a freeleech token here?');">FL</a>
694
 <?    } ?>
704
 <?    } ?>
695
           | <a href="reportsv2.php?action=report&amp;id=<?=$TorrentID?>" class="tooltip" title="Report">RP</a> ]
705
           | <a href="reportsv2.php?action=report&amp;id=<?=$TorrentID?>" class="tooltip" title="Report">RP</a> ]

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

532
   if (!empty($BadFiles)) { $ExtraInfo.=$AddExtra. Format::torrent_label('Bad File Names'); $AddExtra=' / '; }
532
   if (!empty($BadFiles)) { $ExtraInfo.=$AddExtra. Format::torrent_label('Bad File Names'); $AddExtra=' / '; }
533
 
533
 
534
   $TorrentDL = "torrents.php?action=download&amp;id=".$TorrentID."&amp;authkey=".$LoggedUser['AuthKey']."&amp;torrent_pass=".$LoggedUser['torrent_pass'];
534
   $TorrentDL = "torrents.php?action=download&amp;id=".$TorrentID."&amp;authkey=".$LoggedUser['AuthKey']."&amp;torrent_pass=".$LoggedUser['torrent_pass'];
535
-  if (!($TorrentFileName = $Cache->get_value('torrent_file_name_'.$TorrentID))) {
536
-    $TorrentFile = file_get_contents(TORRENT_STORE.$TorrentID.'.torrent');
537
-    $Tor = new BencodeTorrent($TorrentFile);
538
-    $TorrentFileName = $Tor->Dec['info']['name'];
539
-    $Cache->cache_value('torrent_file_name_'.$TorrentID, $TorrentFileName);
535
+  if (!empty(G::$LoggedUser) && (G::$LoggedUser['ShowMagnets'] ?? false)) {
536
+    if (!($TorrentFileName = $Cache->get_value('torrent_file_name_'.$TorrentID))) {
537
+      $TorrentFile = file_get_contents(TORRENT_STORE.$TorrentID.'.torrent');
538
+      $Tor = new BencodeTorrent($TorrentFile);
539
+      $TorrentFileName = $Tor->Dec['info']['name'];
540
+      $Cache->cache_value('torrent_file_name_'.$TorrentID, $TorrentFileName);
541
+    }
542
+    $TorrentMG = "magnet:?dn=".rawurlencode($TorrentFileName)."&xt=urn:btih:".$InfoHash."&as=https://".SITE_DOMAIN."/".str_replace('&amp;','%26',$TorrentDL)."&tr=".implode("/".$LoggedUser['torrent_pass']."/announce&tr=",ANNOUNCE_URLS[0])."/".$LoggedUser['torrent_pass']."/announce&xl=".$Size;
540
   }
543
   }
541
-  $TorrentMG = "magnet:?dn=".rawurlencode($TorrentFileName)."&xt=urn:btih:".$InfoHash."&as=https://".SITE_DOMAIN."/".str_replace('&amp;','%26',$TorrentDL)."&tr=".implode("/".$LoggedUser['torrent_pass']."/announce&tr=",ANNOUNCE_URLS[0])."/".$LoggedUser['torrent_pass']."/announce&xl=".$Size;
542
 ?>
544
 ?>
543
 
545
 
544
       <tr class="torrent_row groupid_<?=$GroupID?> group_torrent<?=($IsSnatched ? ' snatched_torrent' : '')?>" style="font-weight: normal;" id="torrent<?=$TorrentID?>">
546
       <tr class="torrent_row groupid_<?=$GroupID?> group_torrent<?=($IsSnatched ? ' snatched_torrent' : '')?>" style="font-weight: normal;" id="torrent<?=$TorrentID?>">
545
         <td>
547
         <td>
546
           <span>[ <a href="<?=$TorrentDL?>" class="tooltip" title="Download"><?=($HasFile ? 'DL' : 'Missing')?></a>
548
           <span>[ <a href="<?=$TorrentDL?>" class="tooltip" title="Download"><?=($HasFile ? 'DL' : 'Missing')?></a>
549
+<?  if (isset($TorrentMG)) { ?>
547
             | <a href="<?=$TorrentMG?>" class="tooltip" title="Magnet Link">MG</a>
550
             | <a href="<?=$TorrentMG?>" class="tooltip" title="Magnet Link">MG</a>
548
-<?  if (Torrents::can_use_token($Torrent)) { ?>
551
+<?  }
552
+    if (Torrents::can_use_token($Torrent)) { ?>
549
             | <a href="torrents.php?action=download&amp;id=<?=$TorrentID ?>&amp;authkey=<?=$LoggedUser['AuthKey']?>&amp;torrent_pass=<?=$LoggedUser['torrent_pass']?>&amp;usetoken=1" class="tooltip" title="Use a FL Token" onclick="return confirm('Are you sure you want to use a freeleech token here?');">FL</a>
553
             | <a href="torrents.php?action=download&amp;id=<?=$TorrentID ?>&amp;authkey=<?=$LoggedUser['AuthKey']?>&amp;torrent_pass=<?=$LoggedUser['torrent_pass']?>&amp;usetoken=1" class="tooltip" title="Use a FL Token" onclick="return confirm('Are you sure you want to use a freeleech token here?');">FL</a>
550
 <?  } ?>
554
 <?  } ?>
551
             | <a href="reportsv2.php?action=report&amp;id=<?=$TorrentID?>" class="tooltip" title="Report">RP</a>
555
             | <a href="reportsv2.php?action=report&amp;id=<?=$TorrentID?>" class="tooltip" title="Report">RP</a>

+ 7
- 0
sections/user/edit.php View File

250
           <label for="showsnatched">Enable snatched torrents indicator</label>
250
           <label for="showsnatched">Enable snatched torrents indicator</label>
251
         </td>
251
         </td>
252
       </tr>
252
       </tr>
253
+      <tr id="tor_magnet_tr">
254
+        <td class="label tooltip" title="Magnet links should only be used on clients with DHT disabled globally"><strong>Magnet links</strong></td>
255
+        <td>
256
+          <input type="checkbox" name="showmagnets" id="showmagnets"<?=!empty($SiteOptions['ShowMagnets']) ? ' checked="checked"' : '' ?> />
257
+          <label for="showmagnets">Show magnet links</label>
258
+        </td>
259
+      </tr>
253
 <? /* ?>
260
 <? /* ?>
254
       <tr>
261
       <tr>
255
         <td class="label"><strong>Collage album art view</strong></td>
262
         <td class="label"><strong>Collage album art view</strong></td>

+ 1
- 0
sections/user/take_edit.php View File

271
 $Options['NotifyOnQuote']       = (!empty($_POST['notifications_Quotes_popup']) ? 1 : 0);
271
 $Options['NotifyOnQuote']       = (!empty($_POST['notifications_Quotes_popup']) ? 1 : 0);
272
 $Options['ListUnreadPMsFirst']  = (!empty($_POST['list_unread_pms_first']) ? 1 : 0);
272
 $Options['ListUnreadPMsFirst']  = (!empty($_POST['list_unread_pms_first']) ? 1 : 0);
273
 $Options['ShowSnatched']        = (!empty($_POST['showsnatched']) ? 1 : 0);
273
 $Options['ShowSnatched']        = (!empty($_POST['showsnatched']) ? 1 : 0);
274
+$Options['ShowMagnets']         = (!empty($_POST['showmagnets']) ? 1 : 0);
274
 $Options['DisableAutoSave']     = (!empty($_POST['disableautosave']) ? 1 : 0);
275
 $Options['DisableAutoSave']     = (!empty($_POST['disableautosave']) ? 1 : 0);
275
 $Options['NoVoteLinks']         = (!empty($_POST['novotelinks']) ? 1 : 0);
276
 $Options['NoVoteLinks']         = (!empty($_POST['novotelinks']) ? 1 : 0);
276
 $Options['CoverArt']            = (int)!empty($_POST['coverart']);
277
 $Options['CoverArt']            = (int)!empty($_POST['coverart']);

Loading…
Cancel
Save