<?php
//Dominio que contendra las encuestas: 
// $dominio = "http://18.231.62.43/onlinesurvey/limesurvey";
// $dominio = "http://18.231.62.43/onlinesurvey";
//$dominio = "http://54.232.218.159/onlinesurvey";
// $dominio = "http://onlinesurvey.madisonmk.com/v2/";

$dominio = "http://intelliapps.net.pe/limesurvey_jcservicios/";

//Conexion a la base de datos: 
// $enlace = mysqli_connect("mysqlmirlim01.cfnf9umbxduj.sa-east-1.rds.amazonaws.com", "root", "MPerdido", "limesurveyDb");
//$enlace = mysqli_connect("localhost", "root", "", "ls_madison");
//$enlacehost = mysqli_connect("mysqlmirlim01.cfnf9umbxduj.sa-east-1.rds.amazonaws.com", "root", "MPerdido", "limesurveyDB");
// $enlacehost = mysqli_connect("mysqlproylim01.cfnf9umbxduj.sa-east-1.rds.amazonaws.com", "root", "MPerdido", "limesurveyDB02");
// $enlace = mysqli_connect("localhost", "root", "Local4dm1n", "ls_madison");

$enlacehost = mysqli_connect("localhost", "inteafzf_root", "Int3lli4pps", "inteafzf_limesurvey");
$enlace = mysqli_connect("localhost", "inteafzf_root", "Int3lli4pps", "inteafzf_centralparking_panel");

// $enlace = mysqli_connect($_SERVER['mysqlmirlim01.cfnf9umbxduj.sa-east-1.rds.amazonaws.com'], $_SERVER['root'], $_SERVER['MPerdido'], $_SERVER['limesurveyDb'], $_SERVER['3306']);
//$enlace = mysqli_connect($_SERVER['localhost'], $_SERVER['root'], $_SERVER['Local4dm1n'], $_SERVER['ls_madison'], $_SERVER['3306']);

$num_filtros = 0; // Variable utilizada para conocer el número de filtros que se crearán de forma dinámica
$dashboard_tab = 1; // Vairable utilizada para conocer el tab seleccionado de los grupo de datos

if (!$enlace) {
    echo "Error: No se pudo conectar a MySQL." . PHP_EOL;
    echo "errno de depuración: " . mysqli_connect_errno() . PHP_EOL;
    echo "error de depuración: " . mysqli_connect_error() . PHP_EOL;
    exit;
}
mysqli_set_charset($enlace, "utf8");
function cerrarSesion($conn){
	mysqli_close($conn);
}
?>