Browse Source

Default avatar and upload handler

pjc 5 years ago
parent
commit
17536c5e9c
2 changed files with 1 additions and 4 deletions
  1. 1
    4
      sections/upload/upload_handle.php
  2. BIN
      static/common/avatars/default.png

+ 1
- 4
sections/upload/upload_handle.php View File

73
 }
73
 }
74
 
74
 
75
 $Properties['GroupDescription'] = trim($_POST['album_desc']);
75
 $Properties['GroupDescription'] = trim($_POST['album_desc']);
76
-#$Properties['TorrentDescription'] = $_POST['release_desc'];
76
+$Properties['TorrentDescription'] = $_POST['release_desc'];
77
 #$Properties['MediaInfo'] = $_POST['mediainfo'];
77
 #$Properties['MediaInfo'] = $_POST['mediainfo'];
78
 $Properties['Screenshots'] = isset($_POST['screenshots']) ? $_POST['screenshots'] : "";
78
 $Properties['Screenshots'] = isset($_POST['screenshots']) ? $_POST['screenshots'] : "";
79
 
79
 
514
 $DB->query("
514
 $DB->query("
515
   INSERT INTO torrents
515
   INSERT INTO torrents
516
     (GroupID, UserID, Media, Container, Codec, Resolution,
516
     (GroupID, UserID, Media, Container, Codec, Resolution,
517
-    AudioFormat, Subbing, Language, Subber, Censored,
518
     Anonymous, Archive, info_hash, FileCount, FileList, FilePath, Size, Time,
517
     Anonymous, Archive, info_hash, FileCount, FileList, FilePath, Size, Time,
519
     Description, FreeTorrent, FreeLeechType)
518
     Description, FreeTorrent, FreeLeechType)
520
   VALUES
519
   VALUES
521
     ( ?, ?, ?, ?, ?, ?,
520
     ( ?, ?, ?, ?, ?, ?,
522
-      ?, ?, ?, ?, ?,
523
       ?, ?, ?, ?, ?, ?, ?, NOW(),
521
       ?, ?, ?, ?, ?, ?, ?, NOW(),
524
       ?, ?, ? )",
522
       ?, ?, ? )",
525
   $GroupID, $LoggedUser['ID'], $T['Media'], $T['Container'], $T['Codec'], $T['Resolution'],
523
   $GroupID, $LoggedUser['ID'], $T['Media'], $T['Container'], $T['Codec'], $T['Resolution'],
526
-  $T['AudioFormat'], $T['Subbing'], $T['Language'], $T['Subber'], $T['Censored'],
527
   $T['Anonymous'], $T['Archive'], $InfoHash, $NumFiles, $FileString, $FilePath, $TotalSize,
524
   $T['Anonymous'], $T['Archive'], $InfoHash, $NumFiles, $FileString, $FilePath, $TotalSize,
528
   $T['TorrentDescription'], $T['FreeTorrent'], $T['FreeLeechType']);
525
   $T['TorrentDescription'], $T['FreeTorrent'], $T['FreeLeechType']);
529
 
526
 

BIN
static/common/avatars/default.png View File


Loading…
Cancel
Save