BioTorrents.de’s version of Gazelle
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

takeedit.php 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. # Line 28
  3. # todo: Associate containers with categories beforehand
  4. # It may have to happen structurally in config.php, e.g.,
  5. # $Categories = [
  6. # 'GazelleName' => [$Name, $Icon, $Description, $Containers],
  7. # ...
  8. # ];
  9. $Properties['CategoryID'] = $TypeID;
  10. $Properties['CategoryName'] = $Type;
  11. $Properties['FileTypes'] = [
  12. 'DNA' => $Containers,
  13. 'RNA' => $Containers,
  14. 'Proteins' => $ContainersProt,
  15. 'Imaging' => $ContainersGames,
  16. 'Extras' => $ContainersExtra
  17. ];
  18. $Properties['ArchiveTypes'] = [
  19. 'DNA' => $Archives,
  20. 'RNA' => $Archives,
  21. 'Proteins' => $Archives,
  22. 'Imaging' => $Archives,
  23. 'Extras' => $Archives
  24. ];
  25. # Line 49
  26. # Line 313
  27. $T['FileTypes'] = $Properties['FileTypes'];
  28. $T['ArchiveTypes'] = $Properties['FileTypes'];
  29. //******************************************************************************//
  30. //--------------- Autofill format and archive ----------------------------------//
  31. if ($T['Container'] === 'Autofill') {
  32. # torrents.Container
  33. $T['Container'] = $Validate->ParseExtensions(
  34. # $FileList
  35. $Tor->file_list(),
  36. # $Category
  37. $T['CategoryName'],
  38. # $FileTypes
  39. $T['FileTypes'],
  40. );
  41. }
  42. if ($T['Archive'] === 'Autofill') {
  43. # torrents.Archive
  44. $T['Archive'] = $Validate->ParseExtensions(
  45. # $FileList
  46. $Tor->file_list(),
  47. # $Category
  48. $T['CategoryName'],
  49. # $FileTypes
  50. $T['ArchiveTypes'],
  51. );
  52. }
  53. # Line 347