Commit Graph
33 Commits
Author SHA1 Message Date
Thunderforge beeb7ce7a8 WEB: Removing /frs/extra/ from the url field of game downloads 2022-01-11 20:50:55 -06:00
Thunderforge a060430d43 WEB: Fixing extra info for tools 2022-01-11 20:04:40 -06:00
Thunderforge 453e74263b WEB: Adding file size and extension to recommended downloads (#191)
* WEB: Refactor reading files into FileUtils

Refactoring code in `include/Objects/File` into `FileUtils`. This not only makes the code much cleaner, but also allows it to be used in other places of the app, such as the `DownloadsModel`.

* WEB: Adding file size and extension to recommended downloads
2022-01-10 15:39:01 -06:00
Thunderforge 2d73bc74cc WEB: Use absolute file path if available
I suspect this will fix an issue with the hashes and such showing up locally, but not on the server.
2022-01-10 00:55:03 +01:00
Thunderforge bea0da3bc4 WEB: Change how file extra info is generated 2022-01-09 09:04:05 +01:00
Thunderforge 60e02dbf54 DATA: Changing downloads table to use version column (#174)
In order to simplify the process of updating version downloads, [downloads spreadsheet table](https://docs.google.com/spreadsheets/d/1QzwFleEKXOsE59cYMOcQB7C2f0Np48uAQOCG8kicX_s/edit#gid=1057392663) now includes a `version` column and the `url` field is much simpler. In order to update a new version, simply change the value in the `version` field.

Further improvements can be made, but for now this is an improvement that keeps parity with the previous code.
2021-11-18 16:04:20 -06:00
Thunderforge b9ce5baf45 WEB: Removing file.getType() and related dead code
It appears that at one point the data spreadsheet included a `type` field. This is no longer the case and so all of this is not used, providing unnecessary confusion and maintenance.
2021-11-01 06:52:39 +01:00
Mataniko ef20da2ede WEB: Fix PHP array key warnings 2021-04-02 22:01:06 -04:00
Mataniko e415dad73a WEB: Lint files 2020-12-31 04:49:44 -05:00
Mataniko fcb1d69f96 WEB: Replace relative FRS path to absolute path 2020-10-01 15:48:18 -04:00
Mataniko 08ea2cfcde WEB: Lint and static analysis cleanup 2020-09-27 22:08:07 -04:00
Matan Bareket f48d95e174 WEB: Lint PHP files 2019-05-08 23:28:05 -04:00
Matan Bareket 1cfa12d2cb WEB: Fix syntax error in File.php 2019-04-27 09:32:37 -04:00
Matan Bareket 299a7595e5 WEB: Move the daily folder to /frs 2019-04-27 09:27:02 -04:00
Matan Bareket e916b2b7e3 WEB: Fix download URLs 2019-01-23 05:18:28 -05:00
Matan Bareket 601465558f WEB: Resolve static analysis errors 2019-01-22 19:49:58 -05:00
Matan Bareket dcc281b2c2 WEB: Fix line endings 2019-01-22 19:49:58 -05:00
Matan Bareket 6652331db9 WEB: Move file download base URLs to Config.php 2019-01-22 19:49:58 -05:00
Matan Bareket 7afd0daf3f WEB: Use OO for objects 2019-01-22 19:49:58 -05:00
Matan Bareket 2eff11cbb3 WEB: Clean up most PSR2 style warnings 2019-01-22 19:49:58 -05:00
Matan Bareket 97262c4b2f WEB: Convert require statements to psr-4 style use statements 2019-01-22 19:49:58 -05:00
Matan Bareket 85328f2997 WEB: Use PSR-4 autoloading 2019-01-22 19:49:58 -05:00
Matan Bareket cfbeebb8dc WEB: Add namespaces to all PHP files 2019-01-22 19:49:58 -05:00
Matan Bareket 851bb41bb7 WEB: Auto-fix to PSR-2 standard 2019-01-22 19:49:58 -05:00
Matan Bareket 7304245d40 WEB: Calculate hash if the file is newer than the hash file
This allows us to update files and dailies and keep the hash current
2018-11-19 10:38:38 -05:00
Matan Bareket 290142bcd4 WEB: Add SHA256 to Downloads 2018-11-19 07:52:59 -05:00
Eugene Sandulenko 8e8ba5d3ec WEB: Show .tar.bz2 as extension, not .bz2 2016-03-05 23:00:23 +01:00
Eugene Sandulenko 6e7a374275 WEB: Remove now redundant file sizes for game downloads 2016-03-02 01:06:42 +01:00
Eugene Sandulenko e70a5966e0 WEB: Gracefully round file size, remove extra info 2016-03-02 00:30:18 +01:00
Eugene Sandulenko 1ca0707086 WEB: Fix retrieving local file info 2016-03-02 00:13:40 +01:00
Eugene Sandulenko 5e9471afc5 WEB: Overhaul of download urls.
Now by default we're looking into local FS.
There are 3 potential places for files: frs/scummvm/, frs/scummvm-tools/
and downloads/. They're now governed by 'type' attribute to url.
2016-03-02 00:03:47 +01:00
Filippos Karapetis 3bbb230b3d WEB: Generate the list of recommended downloads from the XML data
Add a new XML field, "user_agent", used to find the user agent string
where the download item in question will be suggested to the user. Only
items with the "user_agent" field can be provided as recommended
downloads
2013-11-08 02:49:25 +02:00
Eugene Sandulenko d429c48de0 Website rewrite from Fredrik Wendel
svn path=/web/trunk/; revision=40814
2009-05-23 18:45:30 +00:00