Browse Source

Delete some cruft

pjc 5 years ago
parent
commit
938ed5ba65

+ 0
- 3
classes/artist.class.php View File

1
-<?
2
-// Placeholder for if we ever decide to actaully have a model for an artist.
3
-?>

+ 1
- 1
sections/bookmarks/torrents.php View File

197
 <div class='collage_image image_group_<?=$GroupID?>'>
197
 <div class='collage_image image_group_<?=$GroupID?>'>
198
       <a href="torrents.php?id=<?=$GroupID?>" class="bookmark_<?=$GroupID?>">
198
       <a href="torrents.php?id=<?=$GroupID?>" class="bookmark_<?=$GroupID?>">
199
 <?  if (!$WikiImage) {
199
 <?  if (!$WikiImage) {
200
-      $WikiImage = STATIC_SERVER.'common/noartwork/nocover.jpg';
200
+      $WikiImage = STATIC_SERVER.'common/noartwork/music.png';
201
 } ?>
201
 } ?>
202
         <img class="tooltip_interactive" src="<?=ImageTools::process($WikiImage, 'thumb')?>" alt="<?=$DisplayName?>" title="<?=$DisplayName?> <br /> <?=$Tags?>" data-title-plain="<?="$DisplayName ($PlainTags)"?>" width="100%" />
202
         <img class="tooltip_interactive" src="<?=ImageTools::process($WikiImage, 'thumb')?>" alt="<?=$DisplayName?>" title="<?=$DisplayName?> <br /> <?=$Tags?>" data-title-plain="<?="$DisplayName ($PlainTags)"?>" width="100%" />
203
       </a>
203
       </a>

+ 1
- 1
sections/collages/torrent_collage.php View File

207
         <div class="collage_image image_group_<?=$GroupID?>">
207
         <div class="collage_image image_group_<?=$GroupID?>">
208
           <a href="torrents.php?id=<?=$GroupID?>">
208
           <a href="torrents.php?id=<?=$GroupID?>">
209
 <?  if (!$WikiImage) {
209
 <?  if (!$WikiImage) {
210
-      $WikiImage = STATIC_SERVER.'common/noartwork/nocover.jpg';
210
+      $WikiImage = STATIC_SERVER.'common/noartwork/music.png';
211
     } ?>
211
     } ?>
212
             <img class="tooltip_interactive" src="<?=ImageTools::process($WikiImage, 'thumb')?>" alt="<?=$DisplayName?>" title="<?=$DisplayName?> <br /> <div class='tags'><?=$Tags?></div>" data-title-plain="<?="$DisplayName ($PlainTags)"?>" width="100%" />
212
             <img class="tooltip_interactive" src="<?=ImageTools::process($WikiImage, 'thumb')?>" alt="<?=$DisplayName?>" title="<?=$DisplayName?> <br /> <div class='tags'><?=$Tags?></div>" data-title-plain="<?="$DisplayName ($PlainTags)"?>" width="100%" />
213
           </a>
213
           </a>

+ 1
- 1
sections/torrents/details.php View File

188
 <?  if ($WikiImage != '') { ?>
188
 <?  if ($WikiImage != '') { ?>
189
       <div><img width="100%" class="lightbox-init" src="<?=ImageTools::process($WikiImage, 'thumb')?>" lightbox-img="<?=ImageTools::process($WikiImage)?>" alt="<?=$AltName?>" /></div>
189
       <div><img width="100%" class="lightbox-init" src="<?=ImageTools::process($WikiImage, 'thumb')?>" lightbox-img="<?=ImageTools::process($WikiImage)?>" alt="<?=$AltName?>" /></div>
190
 <?  } else { ?>
190
 <?  } else { ?>
191
-      <div><img width="100%" src="<?=STATIC_SERVER?>common/noartwork/nocover.jpg" alt="<?=$Categories[$GroupCategoryID - 1]?>" class="brackets tooltip" title="<?=$Categories[$GroupCategoryID - 1]?>" /></div>
191
+      <div><img width="100%" src="<?=STATIC_SERVER?>common/noartwork/music.png" alt="<?=$Categories[$GroupCategoryID - 1]?>" class="brackets tooltip" title="<?=$Categories[$GroupCategoryID - 1]?>" /></div>
192
 <?
192
 <?
193
   }
193
   }
194
 $Index++;
194
 $Index++;

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

815
       extract(Torrents::array_group($Group[$C['GroupID']]));
815
       extract(Torrents::array_group($Group[$C['GroupID']]));
816
 
816
 
817
       if (!$C['WikiImage']) {
817
       if (!$C['WikiImage']) {
818
-        $C['WikiImage'] = STATIC_SERVER.'common/noartwork/nocover.jpg';
818
+        $C['WikiImage'] = STATIC_SERVER.'common/noartwork/music.png';
819
       }
819
       }
820
 
820
 
821
       $Name = '';
821
       $Name = '';

BIN
static/common/noartwork/nocover.jpg View File


BIN
static/common/noartwork/nocover.png View File


+ 1
- 1
static/functions/global.js View File

309
   if ($('#coverCont img').length == 0) {
309
   if ($('#coverCont img').length == 0) {
310
     coverCont.appendChild(document.createElement('img'))
310
     coverCont.appendChild(document.createElement('img'))
311
   }
311
   }
312
-  $('#coverCont img')[0].src = image?image:'/static/common/noartwork/nocover.jpg'
312
+  $('#coverCont img')[0].src = image?image:'/static/common/noartwork/music.png'
313
   coverCont.style.display = 'block'
313
   coverCont.style.display = 'block'
314
   coverListener = mevent => {
314
   coverListener = mevent => {
315
     let wh = window.innerHeight, ch = coverCont.clientHeight, ph = mevent.clientY
315
     let wh = window.innerHeight, ch = coverCont.clientHeight, ph = mevent.clientY

+ 0
- 39
static/functions/validate_upload.js View File

1
-$(() => {
2
-  /*
3
-  $("#post").click(e => {
4
-    let hard_error = m => {
5
-      if (e.isDefaultPrevented()) return
6
-      alert(m)
7
-      e.preventDefault()
8
-    }
9
-    let soft_error = m => {
10
-      if (e.isDefaultPrevented()) return
11
-      if (!confirm(`${m}\n\nPress OK to upload anyway`)) {
12
-        e.preventDefault()
13
-      }
14
-    }
15
-
16
-    if (!$('#file').raw().value) {
17
-      hard_error('No torrent file is selected')
18
-    }
19
-    if ($('#album_desc').raw().value.length < 10) {
20
-      hard_error('The group description is too short')
21
-    }
22
-
23
-    if ($('#file').raw().value.slice(-8).toLowerCase() != '.torrent') {
24
-      soft_error('The file selected does not appear to be a .torrent file')
25
-    }
26
-    let mi = $('#mediainfo').raw().value
27
-    if (mi && (!mi.includes('General') || (!mi.includes('Video') && !mi.includes('Audio')))) {
28
-      soft_error('Your MediaInfo does not appear to be from a valid MediaInfo utility')
29
-    }
30
-    if (!$('#image').raw().value) {
31
-      soft_error('You did not include a cover image, which is mandatory if one exists')
32
-    }
33
-    if ($('#media_tr select').raw().value == 'DVD' && (['720p','1080i','1080p','4K'].includes($('#ressel').raw().value) || +$('#resolution').raw().value.split('x')[1] > 576)) {
34
-      soft_error('Your selected resolution is too high to be a DVD. Are you sure the media type should be DVD and not WEB?')
35
-    }
36
-  })
37
-  $('#tags').on('blur', e => $('#tags').raw().value = $('#tags').raw().value.split(',').map(t=>t.trim()).filter(t=>t).join(', '))
38
-  */
39
-})

Loading…
Cancel
Save