50 Commits

Author SHA1 Message Date
Le Philousophe e2f72c8d8b WEB: Modify all extra attributes at once
This makes PHPStan happy (because the array type is expected to be
either empty or full).
2025-08-24 12:32:47 +02:00
Le Philousophe cc9fa80181 WEB: Add typing 2025-08-24 12:32:47 +02:00
Le Philousophe d7c3bd0528 WEB: Various small fixes
These are either cosmetic or spotted by PHPStan
2025-08-24 12:32:47 +02:00
Le Philousophe 1c9380ef3e JANITORIAL: Fix code style
This should not have any behavioral changes
2025-08-24 12:32:46 +02:00
Le Philousophe 641ff7939d WEB: Remove useless baseUrl argument 2024-09-14 13:14:49 +02:00
Le Philousophe 7cd3ff2331 WEB: Various PHPStan fixes
These fixes are only for correctness.
2024-09-14 13:14:49 +02:00
Thunderforge 7c2680462a WEB: Replace dynamic variables with instance variables
This feature is deprecated in PHP 8.2.
2022-12-20 20:07:25 -06:00
Thunderforge 9950eaa063 WEB: Fixing typo in field name autoId -> auto_id 2022-04-07 18:52:39 -05:00
Thunderforge 285c759717 WEB: Adding null check before string replacement (#209)
Fixes errors such as

```
PHP Deprecated:  strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /Users/Will/OpenSource/scummvm-web/include/Objects/File.php on line 26
```
2022-02-23 20:27:44 -06:00
Thunderforge bead8af168 DATA: Sorting by autoId after sorting by version 2022-01-28 18:08:03 -06:00
Thunderforge e0c85807b6 DATA: Restoring extra info on downloads page
This involved renaming the spreadsheet column from "Description" to "Notes"
2022-01-17 20:55:39 +01:00
Thunderforge dab6d24666 WEB: Moving daily download file path
I have proposed moving daily downloads of ScummVM and ScummVM Tools from `frs/daily/` to `frs/scummvm/daily/` and `frs/scummvm-tools/daily` respectively. This PR contains simplifications to the code that would result from this.
2022-01-14 13:43:13 +01:00
Thunderforge 7cb0158ed1 WEB: Daily URL should be regardless of category 2022-01-11 22:22:50 -06:00
Thunderforge 1fdd6fd18f WEB: Changing category from "tools" to "scummvm-tools"
This allows for simpler URL generation
2022-01-11 22:11:30 -06:00
Thunderforge d1ae44ec9d WEB: Restoring the daily URL. It's in a different location than the others 2022-01-11 21:39:31 -06:00
Thunderforge 5e82b7570c WEB: Simplifying how source URLs are constructed 2022-01-11 21:32:35 -06:00
Thunderforge 0b2f1d9adf WEB: Removing the need for DOWNLOADS_DAILY_URL
Also rearranging how the file name is calculated and fixing the Tools extra info not working
2022-01-11 21:20:05 -06:00
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