<?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://185.144.156.181/limesurvey/";

	//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_new");

		$enlacehost = mysqli_connect("localhost", "ia_root", "Int3lli4pps", "limesurvey_Bk");
		$enlace = mysqli_connect("localhost", "ia_root", "Int3lli4pps", "centralparking_panel");

		// $enlace_abonados = mysqli_connect("localhost", "inteafzf_root", "Int3lli4pps", "inteafzf_centralparking_abonados");

	$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);
	}
?>