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.

upload_handle.php 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. # Line 44
  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['FileTypes'] = [
  10. 'DNA' => $Containers,
  11. 'RNA' => $Containers,
  12. 'Proteins' => $ContainersProt,
  13. 'Imaging' => $ContainersGames,
  14. 'Extras' => $ContainersExtra
  15. ];
  16. $Properties['ArchiveTypes'] = [
  17. 'DNA' => $Archives,
  18. 'RNA' => $Archives,
  19. 'Proteins' => $Archives,
  20. 'Imaging' => $Archives,
  21. 'Extras' => $Archives
  22. ];
  23. # Line 63
  24. # Line 427
  25. //******************************************************************************//
  26. //--------------- Autofill format and archive ----------------------------------//
  27. if ($T['Container'] === 'Autofill') {
  28. # torrents.Container
  29. $T['Container'] = $Validate->ParseExtensions(
  30. # $FileList
  31. $Tor->file_list(),
  32. # $Category
  33. $T['CategoryName'],
  34. # $FileTypes
  35. $T['FileTypes'],
  36. );
  37. }
  38. if ($T['Archive'] === 'Autofill') {
  39. # torrents.Archive
  40. $T['Archive'] = $Validate->ParseExtensions(
  41. # $FileList
  42. $Tor->file_list(),
  43. # $Category
  44. $T['CategoryName'],
  45. # $FileTypes
  46. $T['ArchiveTypes'],
  47. );
  48. }
  49. # Line 458