1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <?php
-
- # Line 44
- # todo: Associate containers with categories beforehand
- # It may have to happen structurally in config.php, e.g.,
- # $Categories = [
- # 'GazelleName' => [$Name, $Icon, $Description, $Containers],
- # ...
- # ];
- $Properties['FileTypes'] = [
- 'DNA' => $Containers,
- 'RNA' => $Containers,
- 'Proteins' => $ContainersProt,
- 'Imaging' => $ContainersGames,
- 'Extras' => $ContainersExtra
- ];
- $Properties['ArchiveTypes'] = [
- 'DNA' => $Archives,
- 'RNA' => $Archives,
- 'Proteins' => $Archives,
- 'Imaging' => $Archives,
- 'Extras' => $Archives
- ];
- # Line 63
-
- # Line 427
- //******************************************************************************//
- //--------------- Autofill format and archive ----------------------------------//
-
- if ($T['Container'] === 'Autofill') {
- # torrents.Container
- $T['Container'] = $Validate->ParseExtensions(
-
- # $FileList
- $Tor->file_list(),
-
- # $Category
- $T['CategoryName'],
-
- # $FileTypes
- $T['FileTypes'],
- );
- }
-
- if ($T['Archive'] === 'Autofill') {
- # torrents.Archive
- $T['Archive'] = $Validate->ParseExtensions(
-
- # $FileList
- $Tor->file_list(),
-
- # $Category
- $T['CategoryName'],
-
- # $FileTypes
- $T['ArchiveTypes'],
- );
- }
- # Line 458
|