Commit graph

6 commits

Author SHA1 Message Date
Benjamin Renard
01759fb4c2 Fix handling authentication
- URL routes now defaulty required authentication if
  force_authentication special function is defined.
- handle_request() now trigger a fatal error if user try to access to
  a required route and if force_authentication function is not defined.
- logging() now retreive username from $auth_user['username'].
2022-04-25 18:42:18 +02:00
Benjamin Renard
3a61299005 Add handler for common HTTP errors 2022-04-24 19:11:37 +02:00
Benjamin Renard
efc7352404 Code cleaning 2022-04-24 17:43:44 +02:00
Benjamin Renard
6d8abbf391 Always detect requested URL from REQUEST_URI
It's permit to access raw URL parameter values without automatic 
urldecode when access using $_GET or $_REQUEST. Also add 
UrlRequest::get_param() method that allow to access raw parameters 
values (without any decoding).
2021-07-28 18:18:36 +02:00
Benjamin Renard
e936064b78 Add translation system and improve URL routing system 2021-07-28 17:13:10 +02:00
699b7c4d1f Initial version 2020-04-18 00:51:33 +02:00