Commit graph

232 commits

Author SHA1 Message Date
ab19389d9a Auth: fix some translation errors 2023-02-25 17:18:51 +01:00
5b9d09b644 I18n: to not extract messages from vendor directories and Smarty cache templates files 2023-02-25 17:00:14 +01:00
1d7387fb18 Auth: add logout hook 2023-02-25 15:55:29 +01:00
9999f46c78 Auth: allow public access to set_user() method 2023-02-25 15:43:11 +01:00
a343cfa9c7 User: add access to raw info array 2023-02-25 14:59:43 +01:00
3d9decdafd Auth Ldap: Fix typo 2023-02-25 14:49:45 +01:00
33fcd6a92c User: add __toString() magic method 2023-02-25 14:49:39 +01:00
a4d2e3369c I18n: fix handling non-executable smarty-gettext/tsmarty2c.php script 2023-02-25 05:07:00 +01:00
3edf176dc2 Url: store current request in a public static class variable to allow access from everywhere 2023-02-25 05:03:19 +01:00
610cdb0f7c Add authentication support 2023-02-25 05:02:27 +01:00
Benjamin Renard
16659cdaf6
Upgrade smarty 2023-02-23 12:00:12 +01:00
Benjamin Renard
83e4c2266e
composer: add license 2023-02-23 11:59:40 +01:00
Benjamin Renard
f4d47b6ab6
Fix ext-json dependency declaration to work with all versions of Debian 2023-02-23 11:59:15 +01:00
Benjamin Renard
f13e364d06
Log: fix logging the right exception backtrace in all cases 2023-02-23 11:58:19 +01:00
8ff2fe663d Fix PHP 7.3 compatibility 2023-02-16 01:53:08 +01:00
66b94fb7d6 Url::add_url_handler(): clean code and return bool 2023-02-16 00:52:09 +01:00
5ce273cfad Add vim modeline in templates files 2023-02-15 23:55:36 +01:00
9cc0f8581a Tpl: add get_errors() / get_messages() & purge_errors() / purge_messages() methods 2023-02-15 23:51:11 +01:00
98f61c36eb Tpl: add var_dump function 2023-02-15 19:00:25 +01:00
d304d4741f Url: add optional additional info to Url handler 2023-02-15 18:58:17 +01:00
73dc860972 I18n: Split translated messages of core and app in discting gettext domains 2023-02-14 01:21:52 +01:00
9213ae076f I18n: fix CLI commands messages 2023-02-13 03:02:00 +01:00
5bd930c838 I18n: fix locles JS file path in compile_messages CLI command 2023-02-13 02:48:37 +01:00
799554951b Code cleaning in example app 2023-02-13 02:43:31 +01:00
5691494f12 I18n: fix extracting messages from all PHP, JS and templates files 2023-02-13 02:36:40 +01:00
317cb30cb3 Tpl: Add stuff to have multiple templates directories with priority 2023-02-13 00:42:37 +01:00
4f47dc056d Tpl: Add stuff to handle static files
* Move example application in example sub-directory
* Widely use App::get() instead of Config::get()
2023-02-12 00:30:36 +01:00
f2edf4910a Switch to YAML configuration file, add Config & App classes in EesyPHP namespace
App initialization is now handle by App::init() method and all 
configuration information is now retreive using Config::get() method.
2023-02-08 02:27:15 +01:00
5496ff55c0 Initialize Tpl lib in CLI mode to allow handling templates files messages translation 2023-01-31 01:06:41 +01:00
0eb2c543f1 Remove useless "use" statments in EesyPHP namespace 2023-01-31 01:00:56 +01:00
93c38689db Fix moving common helper functions to EesyPHP namespace 2023-01-31 00:58:26 +01:00
d30abeb008 Move date parse/format helpers in dedicated class in EesyPHP namespace 2023-01-31 00:56:44 +01:00
1fff8f0af4 Move templating stuff in EesyPHP namespace 2023-01-31 00:30:04 +01:00
Benjamin Renard
d422afa66e
smarty_table_ordered_th: fix computing URL 2023-01-30 11:24:13 +01:00
Benjamin Renard
541b447cbf
Move DB stuff in EesyPHP namespace 2023-01-30 11:23:35 +01:00
c8659ea46f Move CLI stuff in EesyPHP namespace 2023-01-30 00:11:26 +01:00
5e8a2b6d1c Move translation (i18n) stuff in EesyPHP namespace 2023-01-29 23:35:17 +01:00
15c2acee08 Move session stuff in EesyPHP namespace 2023-01-29 22:34:43 +01:00
cf6ea5480b Move hooks stuff in EesyPHP namespace 2023-01-29 19:57:26 +01:00
c10ed0ca20 Move email stuff in EesyPHP namespace 2023-01-29 19:56:33 +01:00
f8fa2f9204 Log :: exception(): clean extra args declaration 2023-01-29 19:18:52 +01:00
27af166466 Move Url stuff in EesyPHP namespace 2023-01-29 19:18:10 +01:00
a303f188f3 Move Sentry stuff in EesyPHP namespace 2023-01-29 18:17:50 +01:00
3b45768967 Move functions and logging stuff in EesyPHP namespace 2023-01-29 18:04:49 +01:00
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
e533ec9148 Remove unused $lang template variable 2022-04-24 20:19:28 +02:00
Benjamin Renard
0219714d4a Fix JS translations loading method to make translations available earlier 2022-04-24 20:17:48 +02:00
Benjamin Renard
3a61299005 Add handler for common HTTP errors 2022-04-24 19:11:37 +02:00
Benjamin Renard
e808e3bfb7 Remove unexisting translation template variables 2022-04-24 18:52:24 +02:00