[ticket/12138] Add methods for attachment manage functionality.

PHPBB3-12138
[ticket/12138] Replace old code and generate pagination using filetime limit.

PHPBB3-12138
Merge pull request #2035 from prototech/ticket/12138

[ticket/12138] Include file time limit when generating attachment management pagination and stats.