Commit graph

163 commits

Author SHA1 Message Date
Benjamin Renard
abbfd70319
Tpl: add display_ajax_error() helper method 2023-11-20 19:42:47 +01:00
Benjamin Renard
174ff2bb36
Db: add count() helper method 2023-11-20 19:42:46 +01:00
Benjamin Renard
fbd24ff1b9
Auth CAS: keep URL parameters in CAS callback URL 2023-11-20 16:40:11 +01:00
Benjamin Renard
c71109124c
Add Casuser auth backend 2023-11-17 12:57:38 +01:00
Benjamin Renard
c7f8c7c500
I18n: add init_locale CLI command 2023-11-17 09:52:28 +01:00
Benjamin Renard
6c9a2d1d3e
I18n: use xgettext & msgcat --force-po argument to be sure POT files will be created even if no message is found 2023-11-17 08:37:09 +01:00
Benjamin Renard
f4c75bc513
I18n: use xgettext --force-po argument to be sure POT file will be created even if no message is found 2023-11-17 08:31:27 +01:00
Benjamin Renard
d8240ca782
Allow to define default logo and favicon URL from config/core defaults 2023-11-16 18:25:05 +01:00
Benjamin Renard
ea66e9d217
DB: add support of joins in get_many() / get_one() helper methods 2023-08-21 15:28:19 +02:00
Benjamin Renard
28e6397f58
DB: fix handling failed query in debug_query method 2023-08-21 15:27:15 +02:00
Benjamin Renard
d9451fd66a
Cli::serve: fix/improve handling listen address and add -p/--public-url parameter 2023-07-28 10:46:31 +02:00
Benjamin Renard
8321c1cdd2
Fix some PHPstan warnings for PHP 8 support 2023-07-26 17:08:21 +02:00
Benjamin Renard
8c108d0ebb
Properly declare & handle functions/methods that never return (exit/die inside) and add Cli::fatal_error() helper method 2023-07-26 17:02:28 +02:00
Benjamin Renard
248ea089fa
UrlRequest: add current_url_starts_with, current_url_ends_with and current_url_match helper methods 2023-07-24 19:22:58 +02:00
Benjamin Renard
15c1daabb5
Add implode_with_keys function 2023-07-10 17:58:56 +02:00
Benjamin Renard
43a467b15a
Login form: add remember username feature 2023-04-22 18:56:13 +02:00
Benjamin Renard
8d0907b1ba
CLI serve command: add parameters to start Xdebug profiler 2023-03-22 19:18:23 +01:00
Benjamin Renard
a274f04a1a
Add simple time tracking system to permit to display page computing time 2023-03-22 18:27:07 +01:00
Benjamin Renard
32e27b931e
I18n: Move ___() function in functions.php 2023-03-22 18:19:08 +01:00
Benjamin Renard
85f631a911
I18n: remove useless (and potentially problematic) locales alias links 2023-03-09 18:16:09 +01:00
Benjamin Renard
dc7655bceb
Add TplCore Smarty templates ressource to make core templates easily overloadable 2023-03-08 13:14:52 +01:00
5ab7b35cc3 Auth\Db: add warning message with cause on initialization failure 2023-03-07 18:47:50 +01:00
fe19313c2f Session: add directory_path config parameter 2023-03-07 18:29:34 +01:00
fe75984bc7 Auth\Form: add include_navbar parameter 2023-03-07 18:28:42 +01:00
3bf65aea4d CLI compile_messages: include core translated messages in JSON catalog 2023-03-07 17:50:17 +01:00
Benjamin Renard
cc7004f032
UrlRequest: add current_full_url property 2023-03-05 17:55:02 +01:00
Benjamin Renard
fc29012dce
Fix bin/manage rights on new project 2023-03-05 00:45:18 +01:00
Benjamin Renard
2229ba1a4f
Cli: add -l/--log-file & -C/--console parameters 2023-03-03 10:44:13 +01:00
Benjamin Renard
6faff353d3
Log: try to properly handle log message before initialization 2023-03-03 10:37:56 +01:00
Benjamin Renard
e27c009be8
Log: fix typo when getting CLI log file path 2023-03-03 10:36:43 +01:00
Benjamin Renard
455ec45c3b
App: fix handling app's options when substituting variable reference in option value 2023-03-03 10:36:08 +01:00
Benjamin Renard
97f91156de
Config::set(): fix setting value in inexisting section 2023-03-03 10:34:17 +01:00
Benjamin Renard
8e5b0b0b2c
Config: add backtrace when trying to access configuration value before initialization 2023-03-03 10:32:01 +01:00
Benjamin Renard
9f213f8065
Tpl: add static_root_url() method 2023-03-02 19:57:06 +01:00
Benjamin Renard
5c8e39a6b2
Mail: fix importing PEAR libs 2023-03-02 19:23:27 +01:00
Benjamin Renard
2584a59123
Db: add helpers for simple query 2023-03-02 19:16:54 +01:00
Benjamin Renard
80f41c5327
Tpl: add register_class method and make App class available in templates 2023-03-02 15:02:59 +01:00
Benjamin Renard
5ca3208c91
Set upload_tmp_directory & upload_max_filesize INI parameters after log initialized 2023-03-02 10:53:22 +01:00
Benjamin Renard
7166e63032
Config: add traces in ini_set() 2023-03-01 19:07:50 +01:00
Benjamin Renard
77deb947db
Db: add set_autocommit() method 2023-03-01 19:07:19 +01:00
Benjamin Renard
83f1445799
Make core libs set their default config values in App
This permit to homogenize the method to store it and permit an access to 
all config default values.
Futhermore, core libs init() methods now does not handle parameters: all 
are taken from config.
2023-03-01 16:22:11 +01:00
Benjamin Renard
1e59f1b815
Config: add ini_set() helper method 2023-03-01 14:17:15 +01:00
Benjamin Renard
41fe069fe9
Config: fix set() method 2023-03-01 12:30:59 +01:00
Benjamin Renard
21b425e32b
Log: when PHP cli-server is running, log on console 2023-03-01 11:55:46 +01:00
Benjamin Renard
b679783fb8
Add App::keys() method 2023-03-01 11:23:48 +01:00
Benjamin Renard
df4df3f746
Some adjustments to make App properly initializable in phpstan context 2023-03-01 11:06:22 +01:00
Benjamin Renard
508dda6562
Url::add_url_parameter() & Url::add_url_parameters(): $url parameter is now not a reference 2023-03-01 10:40:00 +01:00
Benjamin Renard
7f2644b46a
Url: add before_handling_request & after_handling_request hooks 2023-02-28 19:44:01 +01:00
Benjamin Renard
f16f433326
Url::add_url_handler(): accept null as $pattern to match the root on the application 2023-02-28 19:07:58 +01:00
Benjamin Renard
4ff9aa71ad
Auth::set_user(): make method optional. If not provided, do not change session and do not trigger the hook 2023-02-28 16:51:32 +01:00
Benjamin Renard
37eab5d49f
Auth\User: add __set() method 2023-02-28 15:55:49 +01:00
Benjamin Renard
b9a5a60dc9
Auth\Ldap: Improve attribute mapping 2023-02-28 15:34:35 +01:00
Benjamin Renard
87e9236af1
Cli::handle_args(): Make $core_mode default value as false
To avoid to have to have to explicitly set in non core mode.
2023-02-28 14:57:02 +01:00
d546bebe49 Cli: add prompt_for_password() helper method 2023-02-28 01:47:12 +01:00
f79be675fb Cli: add serve command 2023-02-28 01:36:54 +01:00
c626bc177a I18n CLI commands: replace --core parameter by Cli::core_mode() 2023-02-28 01:14:37 +01:00
f499087241 Cli: add core_mode() method, set it in handle_args() and add an hook 2023-02-28 01:13:43 +01:00
6aa4113310 Log: fix logging the right IP address when install behind a reverse proxy 2023-02-27 23:51:12 +01:00
bb62e5b53b Log: log an error when fail to open log file and add error_log() fallback 2023-02-27 23:51:12 +01:00
Benjamin Renard
c55e29d1fa
Url: add add_url_parameters() method 2023-02-27 19:32:12 +01:00
Benjamin Renard
24e3101dd0
Tpl: add fetch() method 2023-02-27 18:58:31 +01:00
Benjamin Renard
3742ce7448
Tpl::display(): add success event info on success hook and fix triggering it (and sentry span finish) on error 2023-02-27 18:53:40 +01:00
Benjamin Renard
de0763c5f6
Log: add filepath() method 2023-02-27 18:09:15 +01:00
Benjamin Renard
4f46c38643
Add possibility to define config parameters default value in app's options 2023-02-27 17:52:51 +01:00
Benjamin Renard
7e8b6ee5f2
App::isset(): remove unused parameter $config 2023-02-27 17:44:19 +01:00
Benjamin Renard
eea359056b
Tpl: defaulty define upload_max_filesize variable from config 2023-02-27 16:58:28 +01:00
Benjamin Renard
765844bee9
Move handling webstats_js_code parameter in core code 2023-02-27 16:35:35 +01:00
Benjamin Renard
c346252f55
App: add upload_max_filesize config parameter to set upload_max_filesize & upload_max_filesize 2023-02-27 16:15:47 +01:00
Benjamin Renard
d461b28b7d
App & Config: add isset() and set() methods 2023-02-27 16:15:30 +01:00
9798fab49d Auth: add logged_in_from_session hook 2023-02-27 13:22:53 +01:00
40fc2f8c75 Auth\Cas: fix handling fake_authenticated_user 2023-02-27 13:06:34 +01:00
02b0bbcfad Add CLI command to initialize a new project 2023-02-26 23:53:16 +01:00
4fae41d1ea Url::remove_trailing_slash(): improve method 2023-02-26 23:41:55 +01:00
460d6f788a Add Auth Db backend 2023-02-26 13:15:31 +01:00
895d27c21b Db: fix debugging query 2023-02-26 13:14:42 +01:00
6a810bf75a I18n: fix handling core mode in po2json() 2023-02-25 17:19:17 +01:00
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
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
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
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
0eb2c543f1 Remove useless "use" statments in EesyPHP namespace 2023-01-31 01:00:56 +01:00