<?php

$conecciones = array(
    "pleom_bartholo" => "mysql://jhfinge_canela:canela123456@@localhost/jhfinge_pleom_bartholo?charset=utf8",
    "pleom_beam" => "mysql://jhfinge_canela:canela123456@@localhost/jhfinge_pleom_beam?charset=utf8",
    "pleom_lnhierro" => "mysql://jhfinge_canela:canela123456@@localhost/jhfinge_pleom_lnhierro?charset=utf8",
    "pleom_prueba" => "mysql://jhfinge_canela:canela123456@@localhost/jhfinge_pleom_prueba?charset=utf8",
    "pleom_bs1" => "mysql://jhfinge_canela:canela123456@@localhost/jhfinge_pleom_bs1?charset=utf8",
    "pleom_pietra" => "mysql://jhfinge_canela:canela123456@@localhost/jhfinge_pleom_pietra?charset=utf8",
    "pleom_alpar" => "mysql://jhfinge_canela:canela123456@@localhost/jhfinge_pleom_alpar?charset=utf8",
    "pleom_practica" => "mysql://jhfinge_canela:canela123456@@localhost/jhfinge_pleom_practica?charset=utf8",
    "pleom_top" => "mysql://jhfinge_canela:canela123456@@localhost/jhfinge_pleom_top?charset=utf8",
    "pleom_familia" => "mysql://jhfinge_canela:canela123456@@localhost/jhfinge_pleom_familia?charset=utf8",
      "pleom_test" => "mysql://jhfinge_canela:canela123456@@localhost/jhfinge_pleom_test?charset=utf8",
      "pleom_cdp" => "mysql://jhfinge_canela:canela123456@@localhost/jhfinge_pleom_cdp?charset=utf8",
      "pleom_atacadinho" => "mysql://jhfinge_canela:canela123456@@localhost/jhfinge_pleom_atacadinho?charset=utf8"
);

$cfg = ActiveRecord\Config::instance();
$cfg->set_connections(
    array(
        'dev' => 'mysql://root@localhost/ventas',
        'test' => 'mysql://adminuvBFZld:SAT8177hEqa8@127.11.207.130:3306/ventas',
        'pro' => $conecciones[$emp]
    )
);