diff --git a/Config/prod.ini b/Config/prod.ini index 8a45d8d..964e6f3 100755 --- a/Config/prod.ini +++ b/Config/prod.ini @@ -7,10 +7,6 @@ racineWeb = / Data Source Name ;En ligne -dsncentral='mysql:host=localhost;port=3306;dbname=bdfacturationsas;charset=utf8' -logincentral=intersante -mdpcentral=5358ue6PDcPxxP3P - -dsnebene='mysql:host=localhost;port=3306;dbname=bdintersante;charset=utf8' -loginebene=intersante -mdpebene=5358ue6PDcPxxP3P +dsn='mysql:host=localhost;port=3306;dbname=bd_radiant;charset=utf8' +login=intersante +mdp=5358ue6PDcPxxP3P \ No newline at end of file diff --git a/Controleur/ControleurAjaxconnexioncookie.php b/Controleur/ControleurAjaxconnexioncookie.php index 6ffa6ed..0a7ffb7 100755 --- a/Controleur/ControleurAjaxconnexioncookie.php +++ b/Controleur/ControleurAjaxconnexioncookie.php @@ -1,8 +1,7 @@ sociétées multiples -require_once 'Modele/Societeusercentral.php'; +require_once 'Modele/Societeuser.php'; class ControleurAjaxconnexioncookie extends Controleur { @@ -10,25 +9,20 @@ class ControleurAjaxconnexioncookie extends Controleur public function __construct() { - $this->societeuser = new Societeusercentral(); + $this->societeuser = new Societeuser(); } public function index() { $msgErreur = $this->requete->getParametreFormulaire("msgErreur"); - $societeusers = $this->societeuser->getSocieteusers(); $langues = $this->societeuser->getLangues(); - $societeusersaas = $this->societeuser->getSocieteuserSaas(); - $this->genererVueAjax ( array ( 'msgErreur' => $msgErreur, - 'societeusers' => $societeusers, - 'societeusersaas' => $societeusersaas, 'langues' => $langues ) ); diff --git a/Modele/Societeuser.php b/Modele/Societeuser.php index 75a7fdc..dcfd159 100755 --- a/Modele/Societeuser.php +++ b/Modele/Societeuser.php @@ -40,5 +40,14 @@ class Societeuser extends Modele { return $nbTentativeConnexionMax; } + + public function getLangues() + { + $sql = 'SELECT codeLangue AS `code`, CONCAT(libelle, " <=> ", libelleEng) AS libelle FROM langue ORDER BY parDefaut DESC, 2;'; + + $resultat = $this->executerRequete($sql); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } } \ No newline at end of file diff --git a/Vue/Ajaxconnexioncookie/english.php b/Vue/Ajaxconnexioncookie/english.php index ab270bc..63e1830 100755 --- a/Vue/Ajaxconnexioncookie/english.php +++ b/Vue/Ajaxconnexioncookie/english.php @@ -7,10 +7,9 @@
- - +
@@ -18,9 +17,7 @@
- +
diff --git a/Vue/Ajaxconnexioncookie/french.php b/Vue/Ajaxconnexioncookie/french.php index e372558..9ad080c 100755 --- a/Vue/Ajaxconnexioncookie/french.php +++ b/Vue/Ajaxconnexioncookie/french.php @@ -8,9 +8,7 @@
-
@@ -19,9 +17,7 @@
- +