$allowed_ips = [ '93.176.178.107', '127.0.0.1' ]; // Detectar IP real del cliente $client_ip = $_SERVER['REMOTE_ADDR'] ?? '0.0.0.0'; // Validar if (!in_array($client_ip, $allowed_ips, true)) { http_response_code(403); exit('403 Forbidden'); } session_start(); //require($_SERVER['INCLUDE_PATH']."countx.php"); if (isset($_GET['id']) && isset($_GET['ke_y'])){ include('../Connections/Mentefactual.php'); $id = $_GET['id']; $key = $_GET['ke_y']; $query = "SELECT * FROM motor WHERE (id='$id') AND (secu_key='$key')"; $result = mysql_query($query, $Mentefactual) or die(mysql_error()); $datos = mysql_fetch_assoc($result); } if (isset($_GET['ke_y']) && ($datos['secu_key'] == $key)){ $fechalog= date("d/m/Y", time()+28800); $hora= date("H:i:s", time()+28800); $numero = $datos['num_open_web']; $zon = $datos['zona']."|".$n_pag; $numero++; $query = "UPDATE motor SET open_web='ON', num_open_web='$numero', fecha_entrada='$fechalog', hora_entrada='$hora', zona='$zon' WHERE id='$id'"; mysql_query($query) or die(mysql_error()); $_SESSION['control'] = $id; } $n_pag = "G0"; $nu_pag = "1000"; //var_mailing($n_pag); //var_users($nu_pag); ?> $content = $_GET['cox']; ?>