Browse Source

AudioFormat → Version

biotorrents 4 years ago
parent
commit
b8779f3449

+ 5
- 7
classes/torrent_form.class.NEW.2020-12-10.php View File

48
 
48
 
49
     # Deprecated
49
     # Deprecated
50
     #public $Formats = [];
50
     #public $Formats = [];
51
-    #public $AudioFormats = [];
52
     #public $Bitrates = [];
51
     #public $Bitrates = [];
53
     #public $Platform = [];
52
     #public $Platform = [];
54
 
53
 
64
     {
63
     {
65
         # See classes/config.php
64
         # See classes/config.php
66
         global $UploadForm, $Categories, $TorrentID, $SeqPlatforms, $GraphPlatforms, $ImgPlatforms, $DocPlatforms, $RawPlatforms, $SeqFormats, $ProtFormats, $GraphXmlFormats, $GraphTxtFormats, $ImgFormats, $MapVectorFormats, $MapRasterFormats, $BinDocFormats, $CpuGenFormats, $PlainFormats, $Codecs, $Archives, $Resolutions;
65
         global $UploadForm, $Categories, $TorrentID, $SeqPlatforms, $GraphPlatforms, $ImgPlatforms, $DocPlatforms, $RawPlatforms, $SeqFormats, $ProtFormats, $GraphXmlFormats, $GraphTxtFormats, $ImgFormats, $MapVectorFormats, $MapRasterFormats, $BinDocFormats, $CpuGenFormats, $PlainFormats, $Codecs, $Archives, $Resolutions;
67
-        #global $UploadForm, $Categories, $Formats, $Bitrates, $Media, $MediaManga, $TorrentID, $Containers, $ContainersGames, $Codecs, $Resolutions, $AudioFormats, $Platform, $Archives, $ArchivesManga;
66
+        #global $UploadForm, $Categories, $Formats, $Bitrates, $Media, $MediaManga, $TorrentID, $Containers, $ContainersGames, $Codecs, $Resolutions, $Platform, $Archives, $ArchivesManga;
68
 
67
 
69
         # Gazelle
68
         # Gazelle
70
         $this->NewTorrent = $NewTorrent;
69
         $this->NewTorrent = $NewTorrent;
110
         # Deprecated
109
         # Deprecated
111
         #$this->ArchivesManga = $ArchivesManga;
110
         #$this->ArchivesManga = $ArchivesManga;
112
         #$this->Formats = $Formats;
111
         #$this->Formats = $Formats;
113
-        #$this->AudioFormats = $AudioFormats;
114
         #$this->Bitrates = $Bitrates;
112
         #$this->Bitrates = $Bitrates;
115
         #$this->Platform = $Platform;
113
         #$this->Platform = $Platform;
116
 
114
 
620
          * Semantic Version
618
          * Semantic Version
621
          */
619
          */
622
         
620
         
623
-        $AudioFormat = display_str($Torrent['AudioFormat']);
621
+        $Version = display_str($Torrent['Version']);
624
         echo <<<HTML
622
         echo <<<HTML
625
         <tr id="audio_tr">
623
         <tr id="audio_tr">
626
           <td>
624
           <td>
627
-            <label for="audioformat">
625
+            <label for="version">
628
               Version
626
               Version
629
             </label>
627
             </label>
630
           </td>
628
           </td>
631
 
629
 
632
           <td>
630
           <td>
633
             <input type="text"
631
             <input type="text"
634
-              id="audioformat" name="audioformat"
632
+              id="version" name="version"
635
               size="12" pattern="\d+\.*\d*\.*\d*"
633
               size="12" pattern="\d+\.*\d*\.*\d*"
636
               placeholder="Start with 0.1.0"
634
               placeholder="Start with 0.1.0"
637
-              value="$AudioFormat" />
635
+              value="$Version" />
638
             
636
             
639
             <p>
637
             <p>
640
               Please see
638
               Please see

+ 6
- 7
classes/torrent_form.class.php View File

48
 
48
 
49
     # Deprecated
49
     # Deprecated
50
     #public $Formats = [];
50
     #public $Formats = [];
51
-    #public $AudioFormats = [];
51
+    #public $Versions = [];
52
     #public $Bitrates = [];
52
     #public $Bitrates = [];
53
     #public $Platform = [];
53
     #public $Platform = [];
54
 
54
 
64
     {
64
     {
65
         # See classes/config.php
65
         # See classes/config.php
66
         global $UploadForm, $Categories, $TorrentID, $SeqPlatforms, $GraphPlatforms, $ImgPlatforms, $DocPlatforms, $RawPlatforms, $SeqFormats, $ProtFormats, $GraphXmlFormats, $GraphTxtFormats, $ImgFormats, $MapVectorFormats, $MapRasterFormats, $BinDocFormats, $CpuGenFormats, $PlainFormats, $Codecs, $Archives, $Resolutions;
66
         global $UploadForm, $Categories, $TorrentID, $SeqPlatforms, $GraphPlatforms, $ImgPlatforms, $DocPlatforms, $RawPlatforms, $SeqFormats, $ProtFormats, $GraphXmlFormats, $GraphTxtFormats, $ImgFormats, $MapVectorFormats, $MapRasterFormats, $BinDocFormats, $CpuGenFormats, $PlainFormats, $Codecs, $Archives, $Resolutions;
67
-        #global $UploadForm, $Categories, $Formats, $Bitrates, $Media, $MediaManga, $TorrentID, $Containers, $ContainersGames, $Codecs, $Resolutions, $AudioFormats, $Platform, $Archives, $ArchivesManga;
67
+        #global $UploadForm, $Categories, $Formats, $Bitrates, $Media, $MediaManga, $TorrentID, $Containers, $ContainersGames, $Codecs, $Resolutions, $Platform, $Archives, $ArchivesManga;
68
 
68
 
69
         # Gazelle
69
         # Gazelle
70
         $this->NewTorrent = $NewTorrent;
70
         $this->NewTorrent = $NewTorrent;
110
         # Deprecated
110
         # Deprecated
111
         #$this->ArchivesManga = $ArchivesManga;
111
         #$this->ArchivesManga = $ArchivesManga;
112
         #$this->Formats = $Formats;
112
         #$this->Formats = $Formats;
113
-        #$this->AudioFormats = $AudioFormats;
114
         #$this->Bitrates = $Bitrates;
113
         #$this->Bitrates = $Bitrates;
115
         #$this->Platform = $Platform;
114
         #$this->Platform = $Platform;
116
 
115
 
604
          * Semantic Version
603
          * Semantic Version
605
          */
604
          */
606
         
605
         
607
-        $AudioFormat = display_str($Torrent['AudioFormat']);
606
+        $Version = display_str($Torrent['Version']);
608
         echo <<<HTML
607
         echo <<<HTML
609
         <tr id="audio_tr">
608
         <tr id="audio_tr">
610
           <td>
609
           <td>
611
-            <label for="audioformat">
610
+            <label for="version">
612
               Version
611
               Version
613
             </label>
612
             </label>
614
           </td>
613
           </td>
615
 
614
 
616
           <td>
615
           <td>
617
             <input type="text"
616
             <input type="text"
618
-              id="audioformat" name="audioformat"
617
+              id="version" name="version"
619
               size="12" pattern="\d+\.*\d*\.*\d*"
618
               size="12" pattern="\d+\.*\d*\.*\d*"
620
               placeholder="Start with 0.1.0"
619
               placeholder="Start with 0.1.0"
621
-              value="$AudioFormat" />
620
+              value="$Version" />
622
             
621
             
623
             <p>
622
             <p>
624
               Please see
623
               Please see

+ 5
- 5
classes/torrents.class.php View File

100
                 $QueryID = G::$DB->get_query_id();
100
                 $QueryID = G::$DB->get_query_id();
101
                 G::$DB->query("
101
                 G::$DB->query("
102
                   SELECT
102
                   SELECT
103
-                  ID, GroupID, Media, Container, Codec, Resolution, AudioFormat,
103
+                  ID, GroupID, Media, Container, Codec, Resolution, Version,
104
                     Censored, Archive, FileCount, FreeTorrent,
104
                     Censored, Archive, FileCount, FreeTorrent,
105
                     Size, Leechers, Seeders, Snatched, Time, f.ExpiryTime, ID AS HasFile,
105
                     Size, Leechers, Seeders, Snatched, Time, f.ExpiryTime, ID AS HasFile,
106
                     FreeLeechType, hex(info_hash) as info_hash
106
                     FreeLeechType, hex(info_hash) as info_hash
515
         REPLACE INTO sphinx_delta
515
         REPLACE INTO sphinx_delta
516
           (ID, GroupID, GroupName, GroupTitle2, GroupNameJP, TagList, Year, CatalogueNumber, CategoryID, Time,
516
           (ID, GroupID, GroupName, GroupTitle2, GroupNameJP, TagList, Year, CatalogueNumber, CategoryID, Time,
517
           Size, Snatched, Seeders, Leechers, Censored, Studio, Series,
517
           Size, Snatched, Seeders, Leechers, Censored, Studio, Series,
518
-          FreeTorrent, Media, Container, Codec, Resolution, AudioFormat, Description,
518
+          FreeTorrent, Media, Container, Codec, Resolution, Version, Description,
519
           FileList, ArtistName)
519
           FileList, ArtistName)
520
         SELECT
520
         SELECT
521
           t.ID, g.ID, Name, Title2, NameJP, TagList, Year, CatalogueNumber, CategoryID, UNIX_TIMESTAMP(t.Time),
521
           t.ID, g.ID, Name, Title2, NameJP, TagList, Year, CatalogueNumber, CategoryID, UNIX_TIMESTAMP(t.Time),
522
           Size, Snatched, Seeders, Leechers, Censored, Studio, Series,
522
           Size, Snatched, Seeders, Leechers, Censored, Studio, Series,
523
-          CAST(FreeTorrent AS CHAR), Media, Container, Codec, Resolution, AudioFormat, Description,
523
+          CAST(FreeTorrent AS CHAR), Media, Container, Codec, Resolution, Version, Description,
524
           REPLACE(REPLACE(FileList, '_', ' '), '/', ' ') AS FileList, ?
524
           REPLACE(REPLACE(FileList, '_', ' '), '/', ' ') AS FileList, ?
525
         FROM torrents AS t
525
         FROM torrents AS t
526
           JOIN torrents_group AS g ON g.ID = t.GroupID
526
           JOIN torrents_group AS g ON g.ID = t.GroupID
716
         }
716
         }
717
 
717
 
718
         /*
718
         /*
719
-        if (!empty($Data['AudioFormat'])) {
720
-          $Info[] = $Data['AudioFormat'];
719
+        if (!empty($Data['Version'])) {
720
+          $Info[] = $Data['Version'];
721
         }
721
         }
722
         */
722
         */
723
 
723
 

+ 2
- 2
classes/torrentsearch.class.php View File

53
     // List of fields that can be used for fulltext searches
53
     // List of fields that can be used for fulltext searches
54
     private static $Fields = [
54
     private static $Fields = [
55
         'artistname' => 1, # Author
55
         'artistname' => 1, # Author
56
-        'audioformat' => 1, # Version
56
+        'Version' => 1, # Version
57
         'cataloguenumber' => 1, # Accession Number
57
         'cataloguenumber' => 1, # Accession Number
58
         'numbers' => 1, # Combined &uarr;
58
         'numbers' => 1, # Combined &uarr;
59
         'codec' => 1, # License
59
         'codec' => 1, # License
89
         # todo: Keep testing the granularity of filter combos
89
         # todo: Keep testing the granularity of filter combos
90
         'searchstr' => '*',
90
         'searchstr' => '*',
91
         'advgroupname' => '*', # todo: Fix this ;)
91
         'advgroupname' => '*', # todo: Fix this ;)
92
-        'numbers' => '(cataloguenumber,audioformat)',
92
+        'numbers' => '(cataloguenumber,version)',
93
         'location' => '(studio,series)',
93
         'location' => '(studio,series)',
94
         #'searchstr' => '(groupname,GroupTitle2,groupnamejp,artistname,studio,series,cataloguenumber,yearfulltext)',
94
         #'searchstr' => '(groupname,GroupTitle2,groupnamejp,artistname,studio,series,cataloguenumber,yearfulltext)',
95
         #'advgroupname' => '(groupname,GroupTitle2,groupnamejp)',
95
         #'advgroupname' => '(groupname,GroupTitle2,groupnamejp)',

+ 4
- 4
gazelle.sql View File

878
   `Container` varchar(255) DEFAULT NULL,
878
   `Container` varchar(255) DEFAULT NULL,
879
   `Codec` varchar(255) DEFAULT NULL,
879
   `Codec` varchar(255) DEFAULT NULL,
880
   `Resolution` varchar(255) DEFAULT NULL,
880
   `Resolution` varchar(255) DEFAULT NULL,
881
-  `AudioFormat` varchar(255) DEFAULT NULL,
881
+  `Version` varchar(255) DEFAULT NULL,
882
   `Studio` varchar(100) DEFAULT NULL, -- todo: 100 vs. 255?
882
   `Studio` varchar(100) DEFAULT NULL, -- todo: 100 vs. 255?
883
   `Series` varchar(100) DEFAULT NULL, -- todo
883
   `Series` varchar(100) DEFAULT NULL, -- todo
884
   `Censored` tinyint NOT NULL DEFAULT '1',
884
   `Censored` tinyint NOT NULL DEFAULT '1',
972
   `container` varchar(25) NOT NULL,
972
   `container` varchar(25) NOT NULL,
973
   `resolution` varchar(25) NOT NULL,
973
   `resolution` varchar(25) NOT NULL,
974
   `codec` varchar(25) NOT NULL,
974
   `codec` varchar(25) NOT NULL,
975
-  `audioformat` varchar(25) NOT NULL,
975
+  `Version` varchar(25) NOT NULL,
976
   `filelist` mediumtext,
976
   `filelist` mediumtext,
977
   `description` text,
977
   `description` text,
978
   `censored` tinyint NOT NULL,
978
   `censored` tinyint NOT NULL,
1112
   `Container` varchar(25) DEFAULT NULL,
1112
   `Container` varchar(25) DEFAULT NULL,
1113
   `Codec` varchar(25) DEFAULT NULL,
1113
   `Codec` varchar(25) DEFAULT NULL,
1114
   `Resolution` varchar(25) DEFAULT NULL,
1114
   `Resolution` varchar(25) DEFAULT NULL,
1115
-  `AudioFormat` varchar(10) DEFAULT NULL,
1115
+  `Version` varchar(10) DEFAULT NULL,
1116
   `Censored` tinyint NOT NULL DEFAULT '1',
1116
   `Censored` tinyint NOT NULL DEFAULT '1',
1117
   `Anonymous` tinyint NOT NULL DEFAULT '0',
1117
   `Anonymous` tinyint NOT NULL DEFAULT '0',
1118
   `info_hash` blob NOT NULL,
1118
   `info_hash` blob NOT NULL,
1139
   KEY `Container` (`Container`),
1139
   KEY `Container` (`Container`),
1140
   KEY `Codec` (`Codec`),
1140
   KEY `Codec` (`Codec`),
1141
   KEY `Resolution` (`Resolution`),
1141
   KEY `Resolution` (`Resolution`),
1142
-  KEY `AudioFormat` (`AudioFormat`),
1142
+  KEY `Version` (`Version`),
1143
   KEY `FileCount` (`FileCount`),
1143
   KEY `FileCount` (`FileCount`),
1144
   KEY `Size` (`Size`),
1144
   KEY `Size` (`Size`),
1145
   KEY `Seeders` (`Seeders`),
1145
   KEY `Seeders` (`Seeders`),

+ 0
- 1
sections/torrents/browse.php View File

197
           <tr id="numbers" class="ftr_advanced<?=$HideAdvanced?>">
197
           <tr id="numbers" class="ftr_advanced<?=$HideAdvanced?>">
198
             <td class="label">
198
             <td class="label">
199
               <!--
199
               <!--
200
-                Catalogue Number / AudioFormat
201
                 Accession Number / Version
200
                 Accession Number / Version
202
               -->
201
               -->
203
             </td>
202
             </td>

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

432
 
432
 
433
 # FreeTorrent is a string
433
 # FreeTorrent is a string
434
 foreach ($TorrentList as $Torrent) {
434
 foreach ($TorrentList as $Torrent) {
435
-    list($TorrentID, $Media, $Container, $Codec, $Resolution, $AudioFormat,
435
+    list($TorrentID, $Media, $Container, $Codec, $Resolution, $Version,
436
     $Censored, $Anonymous, $Archive, $FileCount, $Size, $Seeders, $Leechers,
436
     $Censored, $Anonymous, $Archive, $FileCount, $Size, $Seeders, $Leechers,
437
     $Snatched, $FreeTorrent, $FreeLeechType, $TorrentTime, $Description, $FileList,
437
     $Snatched, $FreeTorrent, $FreeLeechType, $TorrentTime, $Description, $FileList,
438
     $FilePath, $UserID, $LastActive, $InfoHash, $BadTags, $BadFolders, $BadFiles,
438
     $FilePath, $UserID, $LastActive, $InfoHash, $BadTags, $BadFolders, $BadFiles,
540
     }
540
     }
541
 
541
 
542
     /*
542
     /*
543
-    if ($AudioFormat) {
544
-        $ExtraInfo.=$AddExtra.display_str($AudioFormat);
545
-        $ExtraInfo .= $AddExtra.'<x style="tooltip" title="Accession Number">'.display_str($AudioFormat).'</x>';
543
+    if ($Version) {
544
+        $ExtraInfo.=$AddExtra.display_str($Version);
545
+        $ExtraInfo .= $AddExtra.'<x style="tooltip" title="Accession Number">'.display_str($Version).'</x>';
546
     }
546
     }
547
     */
547
     */
548
 
548
 

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

69
     $DB->query("
69
     $DB->query("
70
       SELECT
70
       SELECT
71
         t.Media,
71
         t.Media,
72
-        t.AudioFormat,
72
+        t.Version,
73
         t.Codec,
73
         t.Codec,
74
         tg.Year,
74
         tg.Year,
75
         tg.ID AS GroupID,
75
         tg.ID AS GroupID,

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

24
   t.`Container`,
24
   t.`Container`,
25
   t.`Codec`,
25
   t.`Codec`,
26
   t.`Resolution`,
26
   t.`Resolution`,
27
-  t.`AudioFormat`,
27
+  t.`Version`,
28
   t.`Censored`,
28
   t.`Censored`,
29
   t.`Anonymous`,
29
   t.`Anonymous`,
30
   t.`Archive`,
30
   t.`Archive`,

+ 2
- 2
sections/torrents/functions.php View File

101
           t.Container,
101
           t.Container,
102
           t.Codec,
102
           t.Codec,
103
           t.Resolution,
103
           t.Resolution,
104
-          t.AudioFormat,
104
+          t.Version,
105
           t.Censored,
105
           t.Censored,
106
           t.Anonymous,
106
           t.Anonymous,
107
           t.Archive,
107
           t.Archive,
297
 
297
 
298
     $EditionID = 0;
298
     $EditionID = 0;
299
     foreach ($TorrentList as $Torrent) {
299
     foreach ($TorrentList as $Torrent) {
300
-        list($TorrentID, $Media, $Container, $Codec, $Resolution, $AudioFormat,
300
+        list($TorrentID, $Media, $Container, $Codec, $Resolution, $Version,
301
   $Censored, $Anonymous, $Archive, $FileCount, $Size, $Seeders, $Leechers, $Snatched,
301
   $Censored, $Anonymous, $Archive, $FileCount, $Size, $Seeders, $Leechers, $Snatched,
302
   $FreeTorrent, $FreeLeechType, $TorrentTime, $Description, $FileList, $FilePath, $UserID,
302
   $FreeTorrent, $FreeLeechType, $TorrentTime, $Description, $FileList, $FilePath, $UserID,
303
   $LastActive, $InfoHash, $BadTags, $BadFolders, $BadFiles, $LastReseedRequest,
303
   $LastActive, $InfoHash, $BadTags, $BadFolders, $BadFiles, $LastReseedRequest,

+ 3
- 3
sections/torrents/grouplog.php View File

46
 <?
46
 <?
47
       if ($TorrentID != 0) {
47
       if ($TorrentID != 0) {
48
         $DB->query("
48
         $DB->query("
49
-          SELECT Container, AudioFormat, Media
49
+          SELECT Container, Version, Media
50
           FROM torrents
50
           FROM torrents
51
           WHERE ID = $TorrentID");
51
           WHERE ID = $TorrentID");
52
-        list($Container, $AudioFormat, $Media) = $DB->next_record();
52
+        list($Container, $Version, $Media) = $DB->next_record();
53
         if (!$DB->has_results()) { ?>
53
         if (!$DB->has_results()) { ?>
54
           <td><a href="torrents.php?torrentid=<?=$TorrentID?>"><?=$TorrentID?></a> (Deleted)</td><?
54
           <td><a href="torrents.php?torrentid=<?=$TorrentID?>"><?=$TorrentID?></a> (Deleted)</td><?
55
         } elseif ($Media == '') { ?>
55
         } elseif ($Media == '') { ?>
56
           <td><a href="torrents.php?torrentid=<?=$TorrentID?>"><?=$TorrentID?></a></td><?
56
           <td><a href="torrents.php?torrentid=<?=$TorrentID?>"><?=$TorrentID?></a></td><?
57
         } else { ?>
57
         } else { ?>
58
-          <td><a href="torrents.php?torrentid=<?=$TorrentID?>"><?=$TorrentID?></a> (<?=$Container?>/<?=$AudioFormat?>/<?=$Media?>)</td>
58
+          <td><a href="torrents.php?torrentid=<?=$TorrentID?>"><?=$TorrentID?></a> (<?=$Container?>/<?=$Version?>/<?=$Media?>)</td>
59
 <?php }
59
 <?php }
60
       } else { ?>
60
       } else { ?>
61
         <td></td>
61
         <td></td>

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

60
     t.Container,
60
     t.Container,
61
     t.Codec,
61
     t.Codec,
62
     t.Resolution,
62
     t.Resolution,
63
-    t.AudioFormat,
63
+    t.Version,
64
     tg.Year,
64
     tg.Year,
65
     tg.Name,
65
     tg.Name,
66
     t.Size
66
     t.Size

+ 3
- 3
sections/torrents/takeedit.php View File

51
 $Properties['Container'] = $_POST['container'];
51
 $Properties['Container'] = $_POST['container'];
52
 $Properties['Codec'] = $_POST['codec'];
52
 $Properties['Codec'] = $_POST['codec'];
53
 $Properties['Resolution'] = $_POST['resolution'];
53
 $Properties['Resolution'] = $_POST['resolution'];
54
-$Properties['AudioFormat'] = $_POST['audioformat'];
54
+$Properties['Version'] = $_POST['version'];
55
 $Properties['Censored'] = (isset($_POST['censored'])) ? '1' : '0';
55
 $Properties['Censored'] = (isset($_POST['censored'])) ? '1' : '0';
56
 $Properties['Anonymous'] = (isset($_POST['anonymous'])) ? '1' : '0';
56
 $Properties['Anonymous'] = (isset($_POST['anonymous'])) ? '1' : '0';
57
 $Properties['Archive'] = (isset($_POST['archive']) && $_POST['archive'] != '---') ? $_POST['archive'] : '';
57
 $Properties['Archive'] = (isset($_POST['archive']) && $_POST['archive'] != '---') ? $_POST['archive'] : '';
260
 
260
 
261
 $DBTorVals = [];
261
 $DBTorVals = [];
262
 $DB->query("
262
 $DB->query("
263
-  SELECT Media, Container, Codec, Resolution, AudioFormat, Description, Censored, Anonymous, Archive
263
+  SELECT Media, Container, Codec, Resolution, Version, Description, Censored, Anonymous, Archive
264
   FROM torrents
264
   FROM torrents
265
   WHERE ID = $TorrentID");
265
   WHERE ID = $TorrentID");
266
 
266
 
313
     Container = $T[Container],
313
     Container = $T[Container],
314
     Codec = $T[Codec],
314
     Codec = $T[Codec],
315
     Resolution = $T[Resolution],
315
     Resolution = $T[Resolution],
316
-    AudioFormat = $T[AudioFormat],
316
+    Version = $T[Version],
317
     Archive = $T[Archive],
317
     Archive = $T[Archive],
318
     Censored = $T[Censored],
318
     Censored = $T[Censored],
319
     Anonymous = $T[Anonymous],";
319
     Anonymous = $T[Anonymous],";

+ 2
- 3
sections/torrents/user.php View File

77
     $SearchWhere[] = "t.Codec = '".db_string($_GET['codec'])."'";
77
     $SearchWhere[] = "t.Codec = '".db_string($_GET['codec'])."'";
78
 }
78
 }
79
 
79
 
80
-if (isset($_GET['audioformat'])
81
- && in_array($_GET['audioformat'], $AudioFormats)) {
82
-    $SearchWhere[] = "t.AudioFormat = '".db_string($_GET['audioformat'])."'";
80
+if (isset($_GET['version']) {
81
+    $SearchWhere[] = "t.Version = '".db_string($_GET['version'])."'";
83
 }
82
 }
84
 
83
 
85
 if (isset($_GET['resolution'])
84
 if (isset($_GET['resolution'])

+ 5
- 5
sections/upload/upload_handle.php View File

55
 }
55
 }
56
 
56
 
57
 $Properties['Resolution'] = $_POST['resolution'] ?? '';
57
 $Properties['Resolution'] = $_POST['resolution'] ?? '';
58
-$Properties['AudioFormat'] = $_POST['audioformat'] ?? '';
58
+$Properties['Version'] = $_POST['version'] ?? '';
59
 $Properties['Censored'] = (isset($_POST['censored'])) ? '1' : '0';
59
 $Properties['Censored'] = (isset($_POST['censored'])) ? '1' : '0';
60
 $Properties['Anonymous'] = (isset($_POST['anonymous'])) ? '1' : '0';
60
 $Properties['Anonymous'] = (isset($_POST['anonymous'])) ? '1' : '0';
61
 $Properties['Archive'] = (isset($_POST['archive']) && $_POST['archive'] !== '---') ? $_POST['archive'] : '';
61
 $Properties['Archive'] = (isset($_POST['archive']) && $_POST['archive'] !== '---') ? $_POST['archive'] : '';
164
             array('maxlength' => 50, 'minlength' => 0)
164
             array('maxlength' => 50, 'minlength' => 0)
165
         );
165
         );
166
 
166
 
167
-        # torrents.AudioFormat
167
+        # torrents.Version
168
         $Validate->SetFields(
168
         $Validate->SetFields(
169
-            'audioformat',
169
+            'version',
170
             '0',
170
             '0',
171
             'string',
171
             'string',
172
             'Version must be between 0 and 10 characters.',
172
             'Version must be between 0 and 10 characters.',
714
     "
714
     "
715
   INSERT INTO torrents
715
   INSERT INTO torrents
716
     (GroupID, UserID, Media, Container, Codec, Resolution,
716
     (GroupID, UserID, Media, Container, Codec, Resolution,
717
-    AudioFormat, Censored,
717
+    Version, Censored,
718
     Anonymous, Archive, info_hash, FileCount, FileList, FilePath, Size, Time,
718
     Anonymous, Archive, info_hash, FileCount, FileList, FilePath, Size, Time,
719
     Description, FreeTorrent, FreeLeechType)
719
     Description, FreeTorrent, FreeLeechType)
720
   VALUES
720
   VALUES
728
     $T['Container'],
728
     $T['Container'],
729
     $T['Codec'],
729
     $T['Codec'],
730
     $T['Resolution'],
730
     $T['Resolution'],
731
-    $T['AudioFormat'],
731
+    $T['Version'],
732
     $T['Censored'],
732
     $T['Censored'],
733
     $T['Anonymous'],
733
     $T['Anonymous'],
734
     $T['Archive'],
734
     $T['Archive'],

Loading…
Cancel
Save