Commit graph

6 commits

Author SHA1 Message Date
6fdc5447f1 Some improvments from recent works on apps based on its "framework"
* Code cleaning and fix some small errors using Phpstan
* Configure pre-commit to run Phpstan before each commit
* Some little improvments and logging, mail, smarty & URL libs
* Add Sentry integration
* Add Webstat JS code inclusion
* Install Smarty dependency using composer

Breaking changes:
* Rename Event class as HookEvent to avoid conflict with PECL event
* URL with refresh GET parameter now automatically trigger redirection without it
 after page loading to avoid to keep it in URL
2023-01-29 11:51:41 +01:00
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
dba4c6fa9e Make logging & message handling functions accept extra parameters to format messages using sprintf 2022-04-24 18:29:21 +02:00
Benjamin Renard
efc7352404 Code cleaning 2022-04-24 17:43:44 +02:00
Benjamin Renard
a80208adc0 logging: Add TRACE log level 2020-11-30 10:46:52 +01:00
699b7c4d1f Initial version 2020-04-18 00:51:33 +02:00