Commit Graph

49 Commits

Author SHA1 Message Date
Laurent Destailleur
5d4cf586d6 Fix duplicate call 2021-11-07 17:51:30 +01:00
Laurent Destailleur
3fadd5cda5 NEW Add $dolibarr_main_db_readonly in conf.php for readonly access. 2021-07-09 19:37:12 +02:00
Frédéric FRANCE
63dad7f25c add new rule 2021-03-01 00:22:36 +01:00
Laurent Destailleur
32ff76178e FIX #15168 2020-10-27 01:44:00 +01: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
Alexandre SPANGARO
02dbc11f98 Move Gnu.org to https 2019-09-23 21:55:30 +02:00
Laurent Destailleur
a9b3748006 __DIR__ was not replaced into scripts dir 2019-05-15 13:20:02 +02:00
Frédéric FRANCE
7ee086b402 PSR2 space after comma in function call 2019-01-27 11:55:16 +01:00
Frédéric FRANCE
a0a5d33641 test include 2018-07-26 17:30:53 +02:00
Raphaël Doursenaud
bbe7498de6 Better Travis CI
NEW:
Cleaned up routines for better readability of both declaration and results.
PHP versions now really covered.
    The old code forced install of PHP and didn't use Travis provided versions.
    This resulted in the process not being executed with the declared PHP version.
Dropped MySQL in favor of MariaDB.
    This is now the FLOSS community standard.
    This should help avoid problems with buggy MySQL releases.
Fast finish enabled to show results faster.
Optimized tools installation with composer.
    The right version of the tool is installed for the PHP version under test.
New PHP linter to check for syntax errors.
    Parallelized for better speed.
Apache + PHP FPM for testing webservices.
    The previous mod_php configuration was not supported on Travis.
New global DEBUG environment variable to show verbose output with configuration files content.
IRC notification on #dolibarr@freenode for community awareness.

FIXES:
Bug in scripts preventing execution with environmentalized PHP.
Wrong detection of MAIN_URL_ROOT under specific circumstances.
    $_SERVER["DOCUMENT_ROOT"] empty and $_SERVER["SCRIPT_NAME"] populated.
Relative ignore directive in coding style ruleset to avoid bypassing test.
Unit test errors without an exit status.
    This prevented the CI from properly detecting and reporting the error.

TODOS:
PostgreSQL support.
    This one is tricky since we only have a MySQL dump and the syntax is not directly compatible.
SQLite support.
    Disabled in core at the moment.
Nginx + PHP FPM support.
    Test webservices on the second most popular webserver.
Run dev/* checks.
    We have a nice collection of scripts we could leverage.
Check Javascript.
Check CSS.
Check SQL.
2015-12-13 21:34:36 +01:00
Laurent Destailleur
6318b12aeb Fix confirmation of scripts make scripts not working with cron 2015-09-11 20:36:45 +02:00
Laurent Destailleur
212e9825a3 Qual: Function getmypid were renamed into dol_getmypid. 2014-07-31 17:35:58 +02:00
Raphaël Doursenaud
f8f502d013 Removed closing php tag
http://php.net/manual/en/language.basic-syntax.phptags.php
2014-05-03 18:18:44 +02:00
Laurent Destailleur
fbd3f6e67f Fix: Maxi debug of scripts 2013-07-31 12:33:18 +02:00
Laurent Destailleur
3a9ffb19c3 fix: eol 2013-07-13 21:14:05 +02:00
Laurent Destailleur
7481aa121e Qual: All script files must add a line into log when launched. 2013-07-13 19:20:01 +02:00
Laurent Destailleur
89ee79f5cf New: Implement same rule for return value of all command line scripts (0
when success, <>0 if error).
2013-06-09 14:40:33 +02:00
Laurent Destailleur
e9df560b74 New: Show process id in all command line scripts 2013-05-22 12:23:42 +02:00
Laurent Destailleur
64ff559a80 Qual: Uniformize script headers 2013-05-15 11:24:18 +02:00
Laurent Destailleur
8d206fdfb0 Prepare move to other licence. For the moment all answers for licence
upgrade were not yet received. So we prepare for GPL by uniformizing
licence text keys to GPL-3+. Will move later to AGPL if all answers are
positive.
2013-01-16 15:36:08 +01:00
Marcos García
9d57ea7cd0 Fixed typo in console message 2013-01-10 16:24:07 +01:00
Regis Houssin
2b8332eb2d Move ldap.class.php to core/class 2011-10-24 08:53:26 +02:00
Laurent Destailleur
2a6f5fb5ad Doxygen 2011-08-31 10:20:39 +00:00
Regis Houssin
03711cf6f2 Fix: remove obsolete tags 2011-08-27 19:15:14 +00:00
Regis Houssin
726d9581dd Fix: remove obsolete tags (in progress) 2011-08-27 14:24:16 +00:00
Laurent Destailleur
e2c007305c Fix: Avoid errors into rpm packages 2011-07-31 22:21:57 +00:00
Laurent Destailleur
e0ba0f835f Qual: A lot of fixes to enhance package quality 2011-07-09 14:11:40 +00:00
Laurent Destailleur
3bd3436073 Remove codesniffer errors 2010-11-20 16:25:23 +00:00
Philippe Grand
ed9144957a according to new tree directory 2010-04-29 15:23:21 +00:00
Philippe Grand
388470d146 according to new tree directory 2010-04-28 07:55:43 +00:00
Philippe Grand
a56832d521 move contact class file to contact directory 2010-03-25 13:51:24 +00:00
Philippe Grand
ff5d7ee824 move file class user to user directory 2010-03-23 21:17:18 +00:00
Laurent Destailleur
9f722f671e Fix: Code simpler and works even if script file has no path when called by php interpreter 2010-03-16 18:46:28 +00:00
Laurent Destailleur
f3a1978b9a Fix: Use preg functions 2009-10-22 01:04:23 +00:00
Regis Houssin
a62ef03fa9 Fix: functions "ereg", "ereg_replace", "eregi", "eregi_replace" is deprecated since php 5.3.0 2009-10-21 17:42:31 +00:00
Laurent Destailleur
5238fe29ec Add confirmation on sync scripts 2009-08-12 01:20:24 +00:00
Laurent Destailleur
51cc44ba2e Fix: A lot of fix on LDAP synchro. 2009-08-11 20:16:58 +00:00
Laurent Destailleur
9ad62d0f66 New: Enhance log reports
New: Add a warning if email syntaxt is not valid
Fix: Synchro of contact to a LDAP
2009-08-11 17:58:25 +00:00
Laurent Destailleur
9735c0c770 Fix: Data are always encoded in UTF8 in Dolibarr memory, so we must not use ut8_encode on this->property variables or we encode it twice (remove of utf8_encode call was forgotten in 2.6 for contacts). 2009-08-11 12:51:33 +00:00
Laurent Destailleur
0823322ba1 Qual: All call to dolibarr_ functions are made on dol_ functions. 2009-02-20 22:53:15 +00:00
Laurent Destailleur
0e0e82a3e3 Supression des fullname de contact au profit de getFullName() 2007-10-21 17:53:45 +00:00
Regis Houssin
59a3a32f78 Fix: changement de idp en rowid pour llx_societe et llx_socpeople afin d'unifier le code. 2007-06-11 22:51:47 +00:00
Laurent Destailleur
a845921850 Suite gestion des avoirs. 2007-03-25 03:07:46 +00:00
Laurent Destailleur
64472b3810 Ajout des numros de tlphone sur la fiche adhrent
Fix: Correction sauvegarde date naissance fiche adhrent.
Ajout script exemple synchor ldap2dolibarr
2006-11-26 02:59:09 +00:00
Laurent Destailleur
c161905bcd Fix: Toutes les synchro Dolibarr vers LDAP sont dans le trigger LDAP. 2006-11-23 23:47:54 +00:00
Laurent Destailleur
29e737e567 New: Ajout script synchro utilisateurs de dolibarr vers LDAP 2006-11-19 15:24:22 +00:00
Laurent Destailleur
f58cabb566 Mise en facteur de nombreux code et uniformisation codage sur le LDAP 2006-11-19 04:59:45 +00:00
Laurent Destailleur
7338936d4d Mise en facteur de nombreux code et uniformisation codage sur le LDAP 2006-11-19 01:46:32 +00:00
Laurent Destailleur
e69b80ac52 Amlioration gestion erreur synchro LDAP 2006-11-18 21:59:10 +00:00