Commit graph

87 commits

Author SHA1 Message Date
Pierre Rudloff
bc14b6e45c Don't redirect to REQUEST_URI when browsing to index.php
Instead, we can make sure everything works correctly on index.php
2022-02-20 13:28:57 +01:00
Pierre Rudloff
7ad0040f60 Move container creation to a new App class 2020-10-22 23:11:29 +02:00
Pierre Rudloff
342b8c4a42 Use secure session cookies (fixes #321) 2020-10-21 23:04:29 +02:00
Pierre Rudloff
de8c5e5dc7 Convert SessionManager to a factory class 2020-10-21 22:48:05 +02:00
Pierre Rudloff
21964f84ba Fix middleware order
So the base path is changed before other middlewares use it
2020-10-20 23:49:23 +02:00
Pierre Rudloff
0a220d4d8e Move factory classes to a subfolder 2020-10-20 23:29:50 +02:00
Pierre Rudloff
123a6c5ad9 Move middleware to a subfolder 2020-10-20 23:17:22 +02:00
Pierre Rudloff
496ac212e2 Set Link header in PHP so it can work in a subfolder 2020-10-20 23:10:33 +02:00
Pierre Rudloff
561b6c8370 Make the CSP compatible with debug tools 2020-10-19 23:59:23 +02:00
Pierre Rudloff
e2560cd9cb Code cleanup 2020-10-19 22:29:30 +02:00
bellington3
c5298dd24b
Provide basePath support (#309)
* Provide basePath support

To be able to serve the application via a reverse proxy in a subfolder
smarty needs to be aware of the basepath if any.

* Provide basepath support via X-Forwarded headers

* Fix warnings

* Review adjustments

* Provide support X-Forwarded-Host header

* Use $uri in view factory directly

* Use middleware to set basepath from X-Forwarded-Path header

* Fix invalid type hint in RouterPathMiddleware

* Add "X-Forwarded-Host" to README
2020-10-19 22:18:03 +02:00
Pierre Rudloff
07f19a80f4 Improve fallback error handling 2020-10-18 13:20:06 +02:00
Pierre Rudloff
9becaeaabe Fix uglyUrls 2020-10-18 00:59:19 +02:00
Pierre Rudloff
b6b4dad2ec Custom 404 and 405 error pages 2020-07-15 23:17:23 +02:00
Pierre Rudloff
280618bb6b Use a factory to Config and LocaleManager (see #298) 2020-07-15 23:05:41 +02:00
Pierre Rudloff
96a75cbf14 Log youtube-dl and ffmpeg commands (fixes #297) 2020-07-15 22:52:38 +02:00
Pierre Rudloff
72e5e68274 Remove obsolete routes 2020-06-22 22:25:32 +02:00
Pierre Rudloff
4ef7a93dce Escape error message
Because of the "Maybe you have characters before an opening <?php tag?" error
2020-06-08 23:49:59 +02:00
Pierre Rudloff
6a19a1ddc1 Use the new Symfony error handler 2020-05-13 22:57:25 +02:00
Pierre Rudloff
b670b16ca2 Catch various exceptions on the index 2020-05-13 22:37:26 +02:00
Pierre Rudloff
6adc1df213 phpstan update
Better typying
2020-05-13 22:28:05 +02:00
Pierre Rudloff
ef493074d4 Refactor error controller 2019-12-02 22:04:14 +01:00
Pierre Rudloff
6fb1cbaa6c Add comments to index.php to make it easier to read 2019-11-28 01:04:07 +01:00
Pierre Rudloff
aabcee25f0 Custom fatal error handler 2019-11-27 23:49:01 +01:00
Pierre Rudloff
a5bd827d21 Switch to symfony/translation for translations (#250) 2019-11-27 23:15:49 +01:00
Pierre Rudloff
0b1ce90f47 New debug option 2019-11-27 21:41:15 +01:00
Pierre Rudloff
3e9a934f87 fix: fix /watch route 2019-10-19 22:06:30 +02:00
Pierre Rudloff
44bf858c35 style(phpcs): Switch to PSR-12
https://www.php-fig.org/psr/psr-12/
2019-10-03 21:24:12 +02:00
Pierre Rudloff
8f46166a9d fix: Wrong controller 2019-04-26 20:34:34 +02:00
Pierre Rudloff
bba2087a55 style(styleci): Lint 2019-04-22 17:04:59 +02:00
Pierre Rudloff
1387d836dc refactor: New Session class
So that session is shared between classes and does not get overwritten
2019-04-22 17:03:54 +02:00
Pierre Rudloff
25f33bba56 refactor: Split FrontController into multiple classes
Closes #177
2019-04-22 16:51:48 +02:00
Pierre Rudloff
1df06f7c22 refactor: Use route names that make more sense 2019-04-22 15:31:51 +02:00
Pierre Rudloff
4c9af8ad1d refactor: New Video class
The news class provides a cleaner object-oriented logic

BREAKING CHANGE: The VideoDownload class has been removed and the Config constructor is now private
2019-04-21 18:30:02 +02:00
Pierre Rudloff
586f20adb4 style(styleci): Lint 2019-04-21 00:58:04 +02:00
Pierre Rudloff
f9bf3b8d47 refactor: Use a StreamInterface for PlaylistArchiveStream
It is much cleaner
2019-04-21 00:35:43 +02:00
Pierre Rudloff
b8b6180609 feat: Allow Youtube-like URLs
Fixes #184
2018-08-04 15:47:22 +02:00
Pierre Rudloff
74505cea57 feat: JSON API 2018-03-20 12:02:21 +01:00
Pierre Rudloff
04fe43a1ca style: Declare imported classes at the top of the file 2018-02-05 17:16:41 +01:00
Pierre Rudloff
2cfe90bd2d Display error when Smarty throws an exception (fixes #130) 2017-10-02 21:08:37 +02:00
Pierre Rudloff
3e13be702e Display an error if php-intl is not installed (fixes #120) 2017-10-02 20:53:12 +02:00
Pierre Rudloff
b4dd0aeb29 Basic locale switcher 2017-05-30 22:21:27 +02:00
Pierre Rudloff
68b2cca899 Detect user locale 2017-05-29 21:11:59 +02:00
Pierre Rudloff
de8c4525d9 New fr_FR locale 2017-05-29 19:28:42 +02:00
Pierre Rudloff
3fff849ea8 Merge branch 'master' of https://github.com/tony199555/alltube into feature/gettext
Conflicts:
	composer.json
	composer.lock
	templates/index.tpl
	templates/video.tpl
2017-05-29 19:01:20 +02:00
Unknown
e8d989a9f2 Fix syntax by styleci 2017-05-26 15:04:33 -07:00
Unknown
508c32e797 Use correct local code 2017-05-26 14:59:30 -07:00
Unknown
404935be05 Possible fix recommend by Rudloff 2017-05-26 11:38:34 -07:00
Pierre Rudloff
d7927fc442 Download Tar archives from playlists 2017-05-04 23:52:30 +02:00
Pierre Rudloff
0e7aaea9fc Move Smarty view creation to ViewFactory class 2017-04-26 00:50:19 +02:00