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.1KB

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