Blame | Last modification | View Log | RSS feed
<?php$prefixe_tables_wp = '';// $wordpress_dir = '/home/telaprod/www/wordpress';$wordpress_dir = '/var/www/wordpress';function connexionSpip() {// touche à ça$hote = 'localhost';$port = '3306';$utilisateur = 'dbuser';$mdp = '123';// $base = 'tela_prod_spip_actu';$base = 'dbname';// touche pas à ça$dsn = 'mysql:host=' . $hote . ';port=' . $port . ';dbname=' . $base;return new PDO($dsn, $utilisateur, $mdp, array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8'));}function connexionTelaProd() {// touche à ça$hote = 'localhost';$port = '3306';$utilisateur = 'dbuser';$mdp = '123';// $base = 'tela_prod_v4';$base = 'dbname';// touche pas à ça$dsn = 'mysql:host=' . $hote . ';port=' . $port . ';dbname=' . $base;return new PDO($dsn, $utilisateur, $mdp, array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8'));}function connexionWordpress() {// touche à ça$hote = 'localhost';$port = '3306';$utilisateur = 'dbuser';$mdp = '123';// $base = 'wordpress';$base = 'wordpress';// touche pas à ça$dsn = 'mysql:host=' . $hote . ';port=' . $port . ';dbname=' . $base;return new PDO($dsn, $utilisateur, $mdp, array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8'));}