Le Philousophe
2eb466013d
WEB: Update PHP and JS packages
2026-05-08 22:24:12 +02:00
Le Philousophe
93d3aa56a1
WEB: Handle null cases
...
Sometimes variables may be null. Handle the cases when passing to
functions expecting something non-null.
2025-08-24 12:32:47 +02:00
Le Philousophe
710b95a5f4
WEB: Better error handling
...
When PHP functions fail they often return false instead of the expected
object type.
CHeck for this value and fail properly.
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
649ade2977
WEB: Make index a void function
...
It's used with Smarty::display which is void so there is never anything
to return and the return value was never checked.
Propagate this change everywhere.
2025-08-24 12:32:46 +02:00
Le Philousophe
82e06a50a6
WEB: Fix relative path
...
Current working directory must not be relied on.
2025-08-12 11:53:51 +02:00
Le Philousophe
047655fd69
WEB: Set the page description to the game support level
2024-09-14 13:27:42 +02:00
Le Philousophe
14a84a1bf6
WEB: Create a dedicated string from home and news archive pages
2024-09-14 13:27:42 +02:00
Le Philousophe
832f769fe3
WEB: Add a description and a descriptive title for OpenGraph
2024-09-14 13:27:42 +02:00
Le Philousophe
7cd3ff2331
WEB: Various PHPStan fixes
...
These fixes are only for correctness.
2024-09-14 13:14:49 +02:00
Le Philousophe
7a6a3e7edd
WEB: Upgrade for recent PHP and future Smarty v5
2024-09-14 13:14:49 +02:00
Thunderforge
f25dbcc8fa
WEB: Removing unused imports
2023-05-24 18:42:56 -05:00
Thunderforge
ccbdca28fa
WEB: Redirecting to compatibility page when no game id exists ( #287 )
...
Part of the migration to using full game ids
2023-04-24 16:05:52 -05:00
Thunderforge
0ddd37e5f7
WEB: Fixing lint errors
...
Ran `composer lint` and accepted its auto-fixes
2021-11-10 18:22:34 +01:00
mataniko
5810703f63
WEB: Add support for static pages in the router
2021-08-24 22:01:34 -04:00
mataniko
43e117fdf2
WEB: Add Director demos page, model and template
2021-08-23 22:17:58 -04:00
Mataniko
ef20da2ede
WEB: Fix PHP array key warnings
2021-04-02 22:01:06 -04:00
Thierry Crozat
b81751b385
WEB: Sort versions on compatibility page from newer to oldest
...
This fixes bug #12054
2021-01-18 21:25:08 +00:00
Mataniko
b20d4c5fb1
WEB: Fix compat version queries
2021-01-09 13:15:55 -05:00
Mataniko
c8323037e9
WEB: Remove FAQ and Documentation pages
2021-01-05 16:19:26 -05:00
Mataniko
f27fe3d0fd
WEB: Rewrite the Screenshot model to use the database
2020-12-31 04:49:44 -05:00
Mataniko
8f961660d8
WEB: Move compatibility to the ORM model
2020-12-31 04:49:44 -05:00
Mataniko
f1a969bdbd
WEB: Use ORM objects for Screenshots
2020-12-31 04:49:44 -05:00
Mataniko
8780993416
WEB: Convert most most pages to use the ORM objects
2020-12-31 04:49:44 -05:00
Mataniko
2140190f1b
WEB: Update games page to use the new data model
2020-11-24 14:51:10 -05:00
Mataniko
8b036bed3f
WEB: Update downloads page to use the new data model
2020-11-24 14:51:10 -05:00
Mataniko
fdc6d5ff6e
WEB: Fix loading localized data for news and articles
2020-10-10 01:34:06 -04:00
Mataniko
0a394a6260
WEB: Adjust references to non-localized data
2020-10-10 01:34:06 -04:00
Mataniko
9cf9a19588
WEB: Support arbitary article pages
2020-10-08 23:08:51 -04:00
Mataniko
f43eca2c2b
WEB: Move ExceptionPage to a SimplePage
2020-10-08 23:08:51 -04:00
Mataniko
e12a47d710
WEB: Create SimplePage class for pages that don't require customization
...
Some of our pages are basic enough that they can just be generated automatically.
This commit extracts 5 such pages to reduce code and complexity
2020-10-08 23:08:51 -04:00
Mataniko
4013dd2502
WEB: Simplify credits data
2020-10-03 09:10:00 -04:00
Mataniko
6c973b34b7
WEB: Move Subprojects to Downloads page
2020-10-01 00:48:59 -04:00
Mataniko
db6cb726e8
WEB: Add a new SimpleModel class
...
The SimpleModel is used to to read simple data models from YAML that require no further processing
This allows us to delete several models that re-use the same code.
2020-09-27 22:08:07 -04:00
Mataniko
08ea2cfcde
WEB: Lint and static analysis cleanup
2020-09-27 22:08:07 -04:00
Mataniko
4471b291a1
WEB: Convert all models to not be static objects
...
This is a first step towards moving to a dependency injection model.
2020-09-27 22:08:07 -04:00
Mataniko
f8ca4c046a
WEB: Update screenshots data & model
2020-09-27 22:08:07 -04:00
Mataniko
3525617bbe
WEB: Update Compatibility pages to drop the Legacy model
2020-09-27 22:08:07 -04:00
Mataniko
4d78399ea2
WEB: Add error handling about missing required fields
...
In the new data model, some field operate as keys for other parts of the model.
This now performs some validations and will throw an error if fields are missing.
For example: a Game must have an Engine, but does not require datafiles
2020-09-27 22:08:07 -04:00
Mataniko
5b3c0e82d5
WEB: Refactor the compatibility model and pages
...
Update the compatibility page to use the new data models.
- Notes are now generated based on game ids, platforms and support level
- We no longer need multiple compatibilty files, only the deltas in one file
- Support level text is now localizable
- Keep support for the old model for versions < 2.0.0
2020-09-27 22:08:07 -04:00
Mataniko
7f9ae97e6c
DATA: Rename GamesModel to GameDownloadsModel
2020-09-27 22:08:07 -04:00
mataniko
4e4ab142dd
WEB: Add Sponsors template, data and images
2020-08-04 07:35:46 -04:00
Matan Bareket
a5722c8ca0
WEB: Move the Recommended Download logic to the DownloadsModel
2019-05-09 00:28:27 -04:00
Matan Bareket
2015d340b3
WEB: Add new recommended download UAs
2019-05-08 23:52:36 -04:00
Matan Bareket
f48d95e174
WEB: Lint PHP files
2019-05-08 23:28:05 -04:00
Matan Bareket
6769084e98
WEB: Move recommended download detection to PHP
2019-05-08 23:26:05 -04:00
Lothar Serra Mari
5f09bdb0c0
WEB: Rename release variable in DownloadsPage.php
2019-04-28 09:49:06 +02:00
Matan Bareket
95aaec5f3e
WEB: Use AltoRouter instead of apache rewrites
...
This makes debugging and using other web servers much easier, and scales better when adding functionality and pages
2019-04-24 20:57:03 -04:00
Matan Bareket
b17e27cc80
WEB: Additional static analysis fixes on pages
2019-01-22 19:49:58 -05:00