Commit Graph

292 Commits

Author SHA1 Message Date
Laurent Destailleur
29b1e75826 WIP LNE 2025-11-14 12:02:16 +01:00
Laurent Destailleur
165242c0fb Move version info into a dedicated file 2025-10-22 12:16:09 +02:00
ldestailleur
8456749135 Clean code. Removed octicons directory. 2025-09-15 14:40:34 +02:00
Laurent Destailleur
b949cc3534 CSS 2025-05-14 22:03:39 +02:00
Laurent Destailleur
8616e23e31 Move the WAF code into a dedicated include file 2025-03-21 12:11:23 +01:00
MDW
891e11d692 Qual: Enable and fix phan notices for scripts
# Qual: Enable and fix phan notices for scripts

phpstan is already enable on scripts, so there is no reason to not
enable phan.
This enables phan and fixes the notices at the same time
2025-02-18 16:33:41 +01:00
MDW
97099b854f Qual: Fix phan notices (install) 2025-02-05 01:43:41 +01:00
Laurent Destailleur
ce0d9d82c2 Fix test on install process 2024-11-20 13:29:07 +01:00
Laurent Destailleur
1b16ae87e4 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-09-05 12:40:15 +02:00
Laurent Destailleur
3d3527d466 Fix repair to convert charset utf8 utf8mb4 2024-09-05 11:49:33 +02:00
Zephyriony
46435ceb44 QUAL Update inc.php (#29822)
Adaptation of detect_dolibarr_main_data_root to handle more cases, especially when servers don't have htdocs

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-07-02 01:59:20 +02:00
Alexandre SPANGARO
96afcaa476 Better comments (#30200)
* Fix language

* Fix language

* Fix language

* Fix language

* Fix language

* Fix language

* Fix language

* CI Missing language key

* Update eventorganization.lang

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-06-30 21:02:50 +02:00
Laurent Destailleur
9b50c4d2ef Debug v20 2024-06-19 17:58:15 +02:00
Laurent Destailleur
25e9d9b2ba Trans 2024-06-12 13:57:56 +02:00
Laurent Destailleur
0ceacfdc6a Clean code 2024-04-25 11:13:34 +02:00
Laurent Destailleur
ef9c6aa04c Try to FIX #28482 2024-03-24 15:34:19 +01:00
MDW
74ab4b5a54 Fix typo in typing
# Fix typo in typing

Fix typo in typing straing->string.
2024-03-15 10:08:35 +01:00
MDW
a408288ba1 Fix & enable PhanPluginUnknownClosureParamType
# Fix & enable PhanPluginUnknownClosureParamType

Typing of anonymous functions to fix this notice.
Optimised some minor things.
2024-03-14 22:42:26 +01:00
Frédéric FRANCE
0d5da78085 fix migration using utf8mb4 (#28124) 2024-02-12 02:05:52 +01:00
MDW
bd002480ce Qual: Spelling htdocs/[d-k]* (#27427)
Highlights:

- htdocs/install/doctemplates/websites/website_template-restaurant/containers/page249.tpl.php

  Potential functional change (fix) because toekn was changed to token:
   `<input type=hidden name=toekn`

- htdocs/install/upgrade2.php
  $filles changed to $children

- htdocs/intracommreport/class/intracommreport.class.php
  Local $enveloppe changed to $envelope.

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-01-13 19:48:41 +01:00
Laurent Destailleur
eebe4370fb Fix php-cs-fixer 2023-12-04 12:36:19 +01:00
Frédéric FRANCE
53c8a3acf8 clean phpdoc for phpstan (#26905) 2023-12-01 19:51:32 +01:00
Laurent Destailleur
9a4aa58ce9 Fix message to unlock upgrade 2023-11-28 14:00:15 +01:00
Laurent Destailleur
abfaadb7f8 Fix for backward compatibility 2023-10-25 16:41:46 +02:00
Frédéric FRANCE
fe6e31a81d fix install 2023-05-03 12:29:11 +02:00
Laurent Destailleur
cfff62c2fa Clean code 2023-04-29 15:46:44 +02:00
Alexandre Janniaux
9b2ffafd93 Fix install/inc: detect unknown options
Previous commit 3c883c4b31 added support
for parsing option -- in particular -c/--config -- and added some way of
detecting invalid arguments. But the detection was incorrect.

getopt will stop looking for arguments when it detects a non-argument
(dash-prefixed) which is not an option parameter, but checking that
options were all consumed should be done right after by comparing the
options up to this last non-argument and those that were detected.

This only displays the first unrecognized option, mimicking the
behaviour of most software.
2023-04-28 14:26:52 +02:00
Alexandre Janniaux
f19a36856b install/inc: add some usage documentation
Change the way the existing script syntax is documented and add the
syntax and options for the step2.php script.
2023-04-27 19:12:58 +02:00
Alexandre Janniaux
d7f715cc36 Fix: install/inc: remove optional argument check
htdocs/install/step2.php has two optional argv parameters: action and
selectlang.

It doesn't have any version indicator, and thus doesn't have any
constraint on the number of parameters, so remove it from inc.php.

The constraint can still be re-included in the other files including
inc.php, as well as the other script-specific options.
2023-04-27 19:00:58 +02:00
Laurent Destailleur
6b7de51d21 Work on PHP 8 compatibility 2023-04-15 01:52:35 +02:00
Laurent Destailleur
5d31949263 Merge pull request #23897 from alexandre-janniaux/getopt-config/1
NEW inc.php: handle parameters from argv
2023-03-12 17:17:46 +01:00
Alexandre Janniaux
3c883c4b31 NEW inc.php: handle parameters from argv
This commit adds support for --help and --config to provide a different
config file when running upgrade.php from commandline. The argv array
is patched afterwards as if the options were never given so that it
stays transparent for the code path that are not aware of those
arguments.

The intention behind is incrementally move the usage of argc/argv to
this location and force help/usage from there, in particular for
upgrading.

The rationale for the --config addition is to be able to provide a
different path for conf.php when multiple dolibarr instance are using
the same readonly htdocs folder, which is already possible by modifying
the `include_path` from PHP for the htdocs/ directory but not for the
htdocs/install directory since relative paths are used to fetch the
config file. Since the use-case is to upgrade/migrate a Dolibarr
instance from CLI, it makes sense to be able to select for which
instance (and database parameters) the upgrade should take place.
2023-02-26 19:32:20 +01:00
Laurent Destailleur
44da230012 Clean code 2023-02-21 12:57:36 +01:00
Laurent Destailleur
fc64d78247 NEW The upgrade process can be done by creating a file upgrade.unlock 2023-02-02 12:58:12 +01:00
Laurent Destailleur
ce494354e2 NEW Finish removal of code using adodbtime 2022-10-22 01:54:50 +02:00
Laurent Destailleur
8e61f77f4d Fix warnings 2022-09-21 03:16:18 +02:00
Laurent Destailleur
0016e7c5e8 Fix section with root pass restored when required if hidden 2022-09-11 23:47:32 +02:00
Laurent Destailleur
a55ab27c67 Fix http header 2022-07-14 15:01:16 +02:00
Laurent Destailleur
a26931594c FIX #yogosha11799 2022-07-14 11:53:31 +02:00
Laurent Destailleur
3f07317f30 FIx #yogosha5695 2021-03-22 19:19:18 +01:00
Laurent Destailleur
5c0ea476e1 Look and feel v14 2021-02-27 12:45:07 +01:00
Frédéric FRANCE
93aa12a573 remove space and code syntax 2021-02-22 14:41:20 +01:00
Laurent Destailleur
40d23c5082 Update inc.php 2021-02-22 14:15:06 +01:00
BENKE Charlene
8c95bc399a fix Notice error on install 2021-02-22 13:12:06 +01:00
Laurent Destailleur
00ad6df395 Fight against $_POST 2020-11-30 14:47:07 +01:00
Laurent Destailleur
e1a6e8f2fc CSS
Security: Add param to fight against Clickjacking attacks
2020-11-26 11:29:16 +01:00
Scrutinizer Auto-Fixer
7f52920716 Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2020-10-31 13:32:18 +00:00
Frédéric FRANCE
b41ac00b98 add new rule 2020-05-21 15:05:19 +02:00
Frédéric FRANCE
a636f81eac add new rule 2020-05-21 02:17:21 +02:00
Scrutinizer Auto-Fixer
444c293c01 Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2020-04-10 08:59:32 +00:00