header ('Content-type: text/html; charset=utf-8');
error_reporting(0);
$q = $_REQUEST['q'];
$lang = $_REQUEST['lang'];
$ref=$_REQUEST['ref'];
if($ref >=1){
$destinoref = "booking.php?ref=$ref";
header("Location:".($destinoref));
}
include_once('conexion.php');
$sql="SELECT * FROM clientes WHERE q = '$q'";
mysqli_query("SET NAMES 'utf8'");
mysqli_query('SET CHARACTER SET utf8');
$result=mysqli_query($link,$sql);
// Start looping rows in mysqli database.
while($rows=mysqli_fetch_array($result)){
$tema = $rows['tema'];
$boton_a = $rows[25];
$url_a = $rows[26];
$boton_b = $rows[27];
$url_b = $rows[28];
}
//echo $tema;
switch ($tema) {
case "0":
include_once('api-ticketer.php');
break;
case "1":
include_once('api-ticketer.php');
//include_once('api-kiosk.php');
break;
case "2":
include_once('api-k.php');
break;
case "3":
//include_once('api-mestral.php');
include_once('api-barcos-full.php');
break;
case "4":
include_once('api-yuzu.php');
break;
case "5":
include_once('api-wedoo.php');
break;
case "6":
include_once('api-solivent.php');
break;
case "7":
include_once('casa.php');
break;
case "8":
include_once('api-cat.php');
break;
case "9":
include_once('api-hostel.php');
break;
case "10":
include_once('api-productos-r.php');
break;
case "11":
include_once('api-mestral.php');
break;
case "12":
include_once('api-hostel-manual.php');
break;
case "99":
include_once('api-std.php');
break;
default:
include_once('api-ticketer.php');
}
//mysqli_close();
?>