diff --git a/htdocs/adherents/adherent.class.php b/htdocs/adherents/adherent.class.php index b4f0ef15c53..598020e8e6b 100644 --- a/htdocs/adherents/adherent.class.php +++ b/htdocs/adherents/adherent.class.php @@ -1420,7 +1420,7 @@ class Adherent } return 1; }else{ - $this->error="Constantes de connection non definies"; + $this->error="Constantes de connexion non definies"; return 0; } } @@ -1524,7 +1524,7 @@ class Adherent return 0; } }else{ - $this->error="Constantes de connection non definies"; + $this->error="Constantes de connexion non definies"; return 0; } } @@ -1581,7 +1581,7 @@ class Adherent return 0; } }else{ - $this->error="Constantes de connection non definies"; + $this->error="Constantes de connexion non definies"; return 0; } } @@ -1658,7 +1658,7 @@ class Adherent } else { - $this->error="Constantes de connection non definies"; + $this->error="Constantes de connexion non definies"; return -1; } } @@ -1726,7 +1726,7 @@ class Adherent } else { - $this->error="Constantes de connection non definies"; + $this->error="Constantes de connexion non definies"; return 0; } } diff --git a/htdocs/admin/boutique.php b/htdocs/admin/boutique.php index f6439660d5d..1883885f271 100644 --- a/htdocs/admin/boutique.php +++ b/htdocs/admin/boutique.php @@ -71,7 +71,7 @@ elseif ($_POST["test"]) //$resql=$db->query("select count(*) from llx_const"); //print "< ".$db." - ".$db->db." - ".$resql." - ".$db->error().">
\n"; - // Test de la connection a la database webcalendar + // Test de la connexion a la database webcalendar $conf->oscommerce->db->type=$dolibarr_main_db_type; $conf->oscommerce->db->host=$_POST["oscommerce_dbhost"]; $conf->oscommerce->db->name=$_POST["oscommerce_dbname"]; diff --git a/htdocs/admin/mantis.php b/htdocs/admin/mantis.php index b349684e50f..17c0bd29c41 100644 --- a/htdocs/admin/mantis.php +++ b/htdocs/admin/mantis.php @@ -75,7 +75,7 @@ elseif ($actiontest) //$resql=$db->query("select count(*) from llx_const"); //print "< ".$db." - ".$db->db." - ".$resql." - ".$db->error().">
\n"; - // Test de la connection a la database mantis + // Test de la connexion a la database mantis $conf->mantis->db->type=$dolibarr_main_db_type; $conf->mantis->db->host=$_POST["phpmantis_host"]; $conf->mantis->db->user=$_POST["phpmantis_user"]; diff --git a/htdocs/admin/webcalendar.php b/htdocs/admin/webcalendar.php index 0716e456e96..4a81ac8f5c9 100644 --- a/htdocs/admin/webcalendar.php +++ b/htdocs/admin/webcalendar.php @@ -82,7 +82,7 @@ elseif ($actiontest) //$resql=$db->query("select count(*) from llx_const"); //print "< ".$db." - ".$db->db." - ".$resql." - ".$db->error().">
\n"; - // Test de la connection a la database webcalendar + // Test de la connexion a la database webcalendar $conf->webcal->db->type=$dolibarr_main_db_type; $conf->webcal->db->host=$_POST["phpwebcalendar_host"]; $conf->webcal->db->user=$_POST["phpwebcalendar_user"]; diff --git a/htdocs/includes/modules/modAdherent.class.php b/htdocs/includes/modules/modAdherent.class.php index 98512683067..c59cf4c0081 100644 --- a/htdocs/includes/modules/modAdherent.class.php +++ b/htdocs/includes/modules/modAdherent.class.php @@ -96,8 +96,8 @@ class modAdherent extends DolibarrModules $this->const[14] = array("ADHERENT_GLASNOST_PASS","chaine","","password de l'administrateur"); $this->const[15] = array("ADHERENT_USE_GLASNOST_AUTO","yesno","","inscription automatique a glasnost ?"); $this->const[16] = array("ADHERENT_USE_SPIP_AUTO","yesno","","Utilisation de SPIP automatiquement"); - $this->const[17] = array("ADHERENT_SPIP_USER","chaine","","Utilisateur de connection a la base spip"); - $this->const[18] = array("ADHERENT_SPIP_PASS","chaine","","Mot de passe de connection a la base spip"); + $this->const[17] = array("ADHERENT_SPIP_USER","chaine","","Utilisateur de connexion a la base spip"); + $this->const[18] = array("ADHERENT_SPIP_PASS","chaine","","Mot de passe de connexion a la base spip"); $this->const[19] = array("ADHERENT_SPIP_SERVEUR","chaine","","serveur spip"); $this->const[20] = array("ADHERENT_SPIP_DB","chaine","","db spip"); $this->const[21] = array("ADHERENT_MAIL_FROM","chaine","","From des mails"); diff --git a/htdocs/install/etape0.php b/htdocs/install/etape0.php index 3c1a878fe77..6e0839450d4 100644 --- a/htdocs/install/etape0.php +++ b/htdocs/install/etape0.php @@ -22,7 +22,7 @@ /** \file htdocs/install/etape1.php - \brief Pemet d'afficher et de confirmer le charset par rapport aux informations précedntes -> sélection suite à connection' + \brief Permet d'afficher et de confirmer le charset par rapport aux informations précédentes -> sélection suite à connexion' \version $Revision$ */ diff --git a/htdocs/install/etape1.php b/htdocs/install/etape1.php index 4f333852b31..df24fc68729 100644 --- a/htdocs/install/etape1.php +++ b/htdocs/install/etape1.php @@ -452,7 +452,7 @@ if ($_POST["action"] == "set") } else { - dolibarr_install_syslog("etape1: la connection au serveur par le user ".$conf->db->user." est reussie"); + dolibarr_install_syslog("etape1: la connexion au serveur par le user ".$conf->db->user." est reussie"); print ""; print $langs->trans("ServerConnection")." : "; print $dolibarr_main_db_host; @@ -479,7 +479,7 @@ if ($_POST["action"] == "set") } else { - dolibarr_install_syslog("etape1: la connection au serveur par le user ".$conf->db->user." est rate"); + dolibarr_install_syslog("etape1: la connexion au serveur par le user ".$conf->db->user." est rate"); print ""; print $langs->trans("ServerConnection")." : "; print $dolibarr_main_db_host; diff --git a/htdocs/langs/fr_FR/install.lang b/htdocs/langs/fr_FR/install.lang index 8256318434d..63ee43ced6e 100644 --- a/htdocs/langs/fr_FR/install.lang +++ b/htdocs/langs/fr_FR/install.lang @@ -18,7 +18,7 @@ ErrorDirDoesNotExists=Le r ErrorGoBackAndCorrectParameters=Revenez en arrière et corrigez les paramètres invalides. ErrorWrongValueForParameter=Vous avez peut-être saisi une mauvaise valeur pour le paramètre '%s'. ErrorFailedToCreateDatabase=Echec de création de la base '%s'. -ErrorFailedToConnectToDatabase=Echec de connection à la base '%s'. +ErrorFailedToConnectToDatabase=Echec de connexion à la base '%s'. ErrorPHPVersionTooLow=Version de PHP trop ancienne. La version %s est requise. IfDatabaseExistsGoBackAndCheckCreate=Si la base existe déjà, revenez en arrière et désactiver l'option "Créer la base de donnée". PHPVersion=Version PHP diff --git a/htdocs/lib/databases/mssql.lib.php b/htdocs/lib/databases/mssql.lib.php index 40a15e9f2e2..180a468d108 100644 --- a/htdocs/lib/databases/mssql.lib.php +++ b/htdocs/lib/databases/mssql.lib.php @@ -102,7 +102,7 @@ class DoliDb /** - \brief Ouverture d'une connection vers le serveur et éventuellement une database. + \brief Ouverture d'une connexion vers le serveur et éventuellement une database. \param type Type de base de données (mysql ou pgsql) \param host Addresse de la base de données \param user Nom de l'utilisateur autorisé @@ -233,7 +233,7 @@ class DoliDb /** - \brief Fermeture d'une connection vers une database. + \brief Fermeture d'une connexion vers une database. \return resource \seealso connect */ @@ -545,7 +545,7 @@ class DoliDb function errno() { if (! $this->connected) { - // Si il y a eu echec de connection, $this->db n'est pas valide. + // Si il y a eu echec de connexion, $this->db n'est pas valide. return 'DB_ERROR_FAILED_TO_CONNECT'; } else { @@ -564,7 +564,7 @@ class DoliDb function error() { if (! $this->connected) { - // Si il y a eu echec de connection, $this->db n'est pas valide pour mssql_get_last_message. + // Si il y a eu echec de connexion, $this->db n'est pas valide pour mssql_get_last_message. return 'Not connected. Check setup parameters in conf/conf.php file and your mssql client and server versions'; } else { @@ -597,8 +597,8 @@ class DoliDb /** - \brief Renvoie l'id de la connection - \return string Id connection + \brief Renvoie l'id de la connexion + \return string Id connexion */ function getConnectId() { diff --git a/htdocs/lib/databases/mysql.lib.php b/htdocs/lib/databases/mysql.lib.php index 40359da87ec..e92ac859c9b 100644 --- a/htdocs/lib/databases/mysql.lib.php +++ b/htdocs/lib/databases/mysql.lib.php @@ -107,7 +107,7 @@ class DoliDb /** - \brief Ouverture d'une connection vers le serveur et éventuellement une database. + \brief Ouverture d'une connexion vers le serveur et éventuellement une database. \param type Type de base de données (mysql ou pgsql) \param host Addresse de la base de données \param user Nom de l'utilisateur autorisé @@ -281,7 +281,7 @@ class DoliDb /** - \brief Fermeture d'une connection vers une database. + \brief Fermeture d'une connexion vers une database. \return resource \seealso connect */ @@ -590,7 +590,7 @@ class DoliDb function errno() { if (! $this->connected) { - // Si il y a eu echec de connection, $this->db n'est pas valide. + // Si il y a eu echec de connexion, $this->db n'est pas valide. return 'DB_ERROR_FAILED_TO_CONNECT'; } else { @@ -609,7 +609,7 @@ class DoliDb function error() { if (! $this->connected) { - // Si il y a eu echec de connection, $this->db n'est pas valide pour mysql_error. + // Si il y a eu echec de connexion, $this->db n'est pas valide pour mysql_error. return 'Not connected. Check setup parameters in conf/conf.php file and your mysql client and server versions'; } else { @@ -635,8 +635,8 @@ class DoliDb /** - \brief Renvoie l'id de la connection - \return string Id connection + \brief Renvoie l'id de la connexion + \return string Id connexion */ function getConnectId() { diff --git a/htdocs/lib/databases/mysqli.lib.php b/htdocs/lib/databases/mysqli.lib.php index 18131f5020f..53af01195e2 100644 --- a/htdocs/lib/databases/mysqli.lib.php +++ b/htdocs/lib/databases/mysqli.lib.php @@ -106,7 +106,7 @@ class DoliDb /** - \brief Ouverture d'une connection vers le serveur et éventuellement une database. + \brief Ouverture d'une connexion vers le serveur et éventuellement une database. \param type Type de base de données (mysql ou pgsql) \param host Addresse de la base de données \param user Nom de l'utilisateur autorisé @@ -286,7 +286,7 @@ class DoliDb /** - \brief Fermeture d'une connection vers une database. + \brief Fermeture d'une connexion vers une database. \return resource \seealso connect */ @@ -602,7 +602,7 @@ class DoliDb function errno() { if (! $this->connected) { - // Si il y a eu echec de connection, $this->db n'est pas valide. + // Si il y a eu echec de connexion, $this->db n'est pas valide. return 'DB_ERROR_FAILED_TO_CONNECT'; } else { @@ -621,7 +621,7 @@ class DoliDb function error() { if (! $this->connected) { - // Si il y a eu echec de connection, $this->db n'est pas valide pour mysqli_error. + // Si il y a eu echec de connexion, $this->db n'est pas valide pour mysqli_error. return 'Not connected. Check setup parameters in conf/conf.php file and your mysql client and server versions'; } else { @@ -647,8 +647,8 @@ class DoliDb /** - \brief Renvoie l'id de la connection - \return string Id connection + \brief Renvoie l'id de la connexion + \return string Id connexion */ function getConnectId() { diff --git a/htdocs/lib/databases/pgsql.lib.php b/htdocs/lib/databases/pgsql.lib.php index 420d6a6157a..aefeab6dfec 100644 --- a/htdocs/lib/databases/pgsql.lib.php +++ b/htdocs/lib/databases/pgsql.lib.php @@ -64,7 +64,7 @@ class DoliDb /** - \brief Ouverture d'une connection vers le serveur et une database. + \brief Ouverture d'une connexion vers le serveur et une database. \param type type de base de données (mysql ou pgsql) \param host addresse de la base de données \param user nom de l'utilisateur autorisé @@ -233,7 +233,7 @@ class DoliDb } /** - \brief Fermeture d'une connection vers une database. + \brief Fermeture d'une connexion vers une database. \return resource */ function close() @@ -581,8 +581,8 @@ class DoliDb /** - \brief Renvoie l'id de la connection - \return string Id connection + \brief Renvoie l'id de la connexion + \return string Id connexion */ function getConnectId() { diff --git a/htdocs/oscommerce_ws/clients/index.php b/htdocs/oscommerce_ws/clients/index.php index a42d079b253..0ddaba40465 100644 --- a/htdocs/oscommerce_ws/clients/index.php +++ b/htdocs/oscommerce_ws/clients/index.php @@ -48,7 +48,7 @@ $result = $client->call("get_Client",$parameters ); // echo '

Result

'; print_r($result); echo '
'; if ($client->fault) { - dolibarr_print_error('',"erreur de connection "); + dolibarr_print_error('',"erreur de connexion "); } elseif (!($err = $client->getError()) ) { diff --git a/htdocs/oscommerce_ws/commandes/index.php b/htdocs/oscommerce_ws/commandes/index.php index 50bed867fc9..c7263653923 100644 --- a/htdocs/oscommerce_ws/commandes/index.php +++ b/htdocs/oscommerce_ws/commandes/index.php @@ -49,7 +49,7 @@ $result = $client->call("get_Order",$parameters ); // echo '

Result

'; print_r($result); echo '
'; if ($client->fault) { - dolibarr_print_error('',"erreur de connection "); + dolibarr_print_error('',"erreur de connexion "); } elseif (!($err = $client->getError()) ) { diff --git a/htdocs/oscommerce_ws/index.php b/htdocs/oscommerce_ws/index.php index 1fb36d1ba20..9b33710d7a7 100644 --- a/htdocs/oscommerce_ws/index.php +++ b/htdocs/oscommerce_ws/index.php @@ -68,7 +68,7 @@ print ''.$langs->trans("Total").''; // Call the WebService and store its result in $result. $result = $client->call("get_CAmensuel",$parameters ); if ($client->fault) { - dolibarr_print_error('',"Erreur de connection "); + dolibarr_print_error('',"Erreur de connexion "); print_r($client->faultstring); } elseif (!($err = $client->getError()) ) @@ -117,7 +117,7 @@ $parameters = array("limit"=>OSC_MAXNBCOM); $result = $client->call("get_orders",$parameters ); if ($client->fault) { - dolibarr_print_error('',"Erreur de connection "); + dolibarr_print_error('',"Erreur de connexion "); } elseif (!($err = $client->getError()) ) { $num=0; diff --git a/htdocs/oscommerce_ws/produits/index.php b/htdocs/oscommerce_ws/produits/index.php index b039a3eb04f..3b9d08e6de0 100644 --- a/htdocs/oscommerce_ws/produits/index.php +++ b/htdocs/oscommerce_ws/produits/index.php @@ -47,7 +47,7 @@ $client = new soapclient_nusoap(OSCWS_DIR."ws_articles.php"); $result = $client->call("get_listearticles",$parameters ); if ($client->fault) { - dolibarr_print_error('',"erreur de connection "); + dolibarr_print_error('',"erreur de connexion "); } elseif (!($err = $client->getError()) ) { diff --git a/htdocs/oscommerce_ws/ws_server/ws_articles.php b/htdocs/oscommerce_ws/ws_server/ws_articles.php index 12d8fd1e614..ce6fe1c0b15 100644 --- a/htdocs/oscommerce_ws/ws_server/ws_articles.php +++ b/htdocs/oscommerce_ws/ws_server/ws_articles.php @@ -100,7 +100,7 @@ return $products_id; function get_article($id='',$ref='') { //on se connecte - if (!($connexion = mysql_connect(DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_PASSWORD))) return new soap_fault("Server", "MySQL 1", "connection impossible"); + if (!($connexion = mysql_connect(DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_PASSWORD))) return new soap_fault("Server", "MySQL 1", "connexion impossible"); if (!($db = mysql_select_db(DB_DATABASE, $connexion))) return new soap_fault("Server", "MySQL 2", mysql_error()); //on recherche @@ -132,7 +132,7 @@ return $res_article; function get_listearticles() { //on se connecte - if (!($connexion = mysql_connect(DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_PASSWORD))) return new soap_fault("Server", "MySQL 1", "connection impossible"); + if (!($connexion = mysql_connect(DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_PASSWORD))) return new soap_fault("Server", "MySQL 1", "connexion impossible"); if (!($db = mysql_select_db(DB_DATABASE, $connexion))) return new soap_fault("Server", "MySQL 2", mysql_error()); //on recherche diff --git a/htdocs/oscommerce_ws/ws_server/ws_customers.php b/htdocs/oscommerce_ws/ws_server/ws_customers.php index d8db1cd5e44..303e82dc660 100644 --- a/htdocs/oscommerce_ws/ws_server/ws_customers.php +++ b/htdocs/oscommerce_ws/ws_server/ws_customers.php @@ -41,7 +41,7 @@ $s->register('get_Client'); function get_Client($custid='') { //on se connecte - if (!($connexion = mysql_connect(DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_PASSWORD))) return new soap_fault("Server", "MySQL 1", "connection impossible"); + if (!($connexion = mysql_connect(DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_PASSWORD))) return new soap_fault("Server", "MySQL 1", "connexion impossible"); if (!($db = mysql_select_db(DB_DATABASE, $connexion))) return new soap_fault("Server", "MySQL 2", mysql_error()); //la requête diff --git a/htdocs/oscommerce_ws/ws_server/ws_orders.php b/htdocs/oscommerce_ws/ws_server/ws_orders.php index ead14fd0474..16eb7e6aee8 100644 --- a/htdocs/oscommerce_ws/ws_server/ws_orders.php +++ b/htdocs/oscommerce_ws/ws_server/ws_orders.php @@ -41,7 +41,7 @@ $s->register('get_Order'); function get_CAmensuel() { //on se connecte - if (!($connexion = mysql_connect(DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_PASSWORD))) return new soap_fault("Server", "MySQL 1", "connection impossible"); + if (!($connexion = mysql_connect(DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_PASSWORD))) return new soap_fault("Server", "MySQL 1", "connexion impossible"); if (!($db = mysql_select_db(DB_DATABASE, $connexion))) return new soap_fault("Server", "MySQL 2", mysql_error()); //la requête @@ -74,7 +74,7 @@ return $result; function get_orders($limit='', $status='') { //on se connecte - if (!($connexion = mysql_connect(DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_PASSWORD))) return new soap_fault("Server", "MySQL 1", "connection impossible"); + if (!($connexion = mysql_connect(DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_PASSWORD))) return new soap_fault("Server", "MySQL 1", "connexion impossible"); if (!($db = mysql_select_db(DB_DATABASE, $connexion))) return new soap_fault("Server", "MySQL 2", mysql_error()); //on recherche @@ -109,7 +109,7 @@ return $result; function get_lastOrderClients($id='',$name='',$limit='') { //on se connecte - if (!($connexion = mysql_connect(DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_PASSWORD))) return new soap_fault("Server", "MySQL 1", "connection impossible"); + if (!($connexion = mysql_connect(DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_PASSWORD))) return new soap_fault("Server", "MySQL 1", "connexion impossible"); if (!($db = mysql_select_db(DB_DATABASE, $connexion))) return new soap_fault("Server", "MySQL 2", mysql_error()); //on recherche @@ -145,7 +145,7 @@ function get_Order($orderid="0") { //on se connecte - if (!($connexion = mysql_connect(DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_PASSWORD))) return new soap_fault("Server", "MySQL 1", "connection impossible"); + if (!($connexion = mysql_connect(DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_PASSWORD))) return new soap_fault("Server", "MySQL 1", "connexion impossible"); if (!($db = mysql_select_db(DB_DATABASE, $connexion))) return new soap_fault("Server", "MySQL 2", mysql_error()); //on recherche la commande