Subversion Repositories Applications.framework

Compare Revisions

Ignore whitespace Rev 429 → Rev 430

/trunk/framework/Bdd.php
94,16 → 94,13
$this->bdd_nom = Config::get('bdd_nom');
$this->utilisateur = Config::get('bdd_utilisateur');
$this->pass = Config::get('bdd_mot_de_passe');
$this->dsn = Config::get('bdd_dsn');
$this->encodage = Config::get('bdd_encodage');
 
if (!$this->dsn) {
if ($this->type == 'sqlite' || $this->type == 'sqlite2') {
$this->dsn = $this->type.':'.$this->hote;
} else {
$this->dsn = $this->type.':dbname='.$this->bdd_nom.';host='.$this->hote;
}
if ($this->type == 'sqlite' || $this->type == 'sqlite2') {
$this->dsn = $this->type.':'.$this->hote;
} else {
$this->dsn = $this->type.':dbname='.$this->bdd_nom.';host='.$this->hote;
}
$this->initialiserProtocole();
}
/trunk/framework/config.defaut.ini
123,9 → 123,6
bdd_mot_de_passe = ""
bdd_nom = ""
bdd_encodage = "utf8"
; bdd_dsn écrase (bdd_nom + bdd_serveur + bdd_protocole)
; Notamment utile si le couple PDO + chemin de socket atypique est utilisé
; bdd_dsn = "mysql:dbname=tb_X;unix_socket=/tmp/mysql.sock"
 
; +------------------------------------------------------------------------------------------------------+
; Encodage