$rol = $row["rol"];
}
if (isset($_POST['BotonGuardar'])) {
    $num = Inputs::numeroValido($_POST['rating']);
    if ($num == "error") {
        header('Location:errorLogueado.php');
    }
    $valor = $num;
} else {
    $valor = 0;
}
if (isset($_REQUEST['operacion'])) {
    $operacion = $_REQUEST['operacion'];
}
if (isset($_REQUEST['editarVal'])) {
    $editar = Inputs::numeroBoolValido($_REQUEST['editarVal']);
    if ($editar == "error") {
        header('Location:errorLogueado.php');
    }
}
if (isset($_REQUEST['fecha'])) {
    $fecha = Inputs::fechaValido($_REQUEST['fecha']);
    if ($fecha == "error") {
        header('Location:errorLogueado.php');
    }
}
if (isset($_REQUEST['t'])) {
    $t = Inputs::numeroValido($_REQUEST['t']);
    if ($t == "error") {
        header('Location:errorLogueado.php');
    }
<BASEFONT face="arial, helvetica">

<TABLE border="0" align="center" cellspacing="3" cellpadding="3" width="1000">
<TR><TH colspan="2" width="100%" bgcolor="green"><FONT size="6" color="white">Teatros</FONT></TH>
</TR></TABLE><P>
<?php 
include 'teatro2.php';
include 'inputs.php';
if (isset($_REQUEST['bus'])) {
    $bus = Inputs::numeroValido($_REQUEST['bus']);
    if ($bus == "error") {
        header('Location:errorLogueado.php');
    }
}
if (isset($_REQUEST['ordenar'])) {
    $ordenar = Inputs::numeroBoolValido($_REQUEST['ordenar']);
    if ($ordenar == "error") {
        header('Location:errorLogueado.php');
    }
} else {
    $ordenar = 0;
}
//por defecto 0(valoracion)
if (isset($_REQUEST['operacion'])) {
    $operacion = $_REQUEST['operacion'];
}
$teatro = new DBHelper();
$user1 = Inputs::usuarioValido($_SESSION['usuario']);
if ($user1 == "error") {
    header('Location:errorLogueado.php');
}