HEX
Server: Apache
System: Linux webd003.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: slyfwmm (169339)
PHP: 8.1.34
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/slyfwmm/incastiglionfiorentino/wp-content/themes/amplify/disponibilita.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<!-- css -->
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="stylesheet" type="text/css" media="all" href="https://incastiglionfiorentino.com/wp-content/themes/amplify/style.css" />
<!-- Color Scheme css -->
<link rel="stylesheet" href="https://incastiglionfiorentino.com/wp-content/themes/amplify/coffee.css" type="text/css" />

<!--JQUERY CORE-->
<script src="https://incastiglionfiorentino.com/wp-content/themes/amplify/js/jquery-ui-1.8.21.custom/js/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="https://incastiglionfiorentino.com/wp-content/themes/amplify/js/jquery-ui-1.8.21.custom/js/jquery-ui-1.8.21.custom.min.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="https://incastiglionfiorentino.com/wp-content/themes/amplify/js/jquery-ui-1.8.21.custom/css/smoothness/jquery-ui-1.8.21.custom.css">

<!--calendar inizio-->

<script src="https://incastiglionfiorentino.com/wp-content/themes/amplify/js/jquery-ui-1.8.21.custom/js/jquery.ui.datepicker-it.js" type="text/javascript"></script>
  
<script>
	$(function() {
		$( "#arrivo" ).datepicker({
			defaultDate: "+1w",
			changeMonth: true,
			numberOfMonths: 1,
			onSelect: function( selectedDate ) {
				$( "#partenza" ).datepicker( "option", "minDate", selectedDate );
			}
		});
		$( "#partenza" ).datepicker({
			defaultDate: "+1w",
			changeMonth: true,
			numberOfMonths: 1,
			onSelect: function( selectedDate ) {
				$( "#arrivo" ).datepicker( "option", "maxDate", selectedDate );
			}
		});
	});
</script>
  
<!--calendar fine-->


<!--VALIDATOR-->

<link rel="stylesheet" href="https://incastiglionfiorentino.com/wp-content/themes/amplify/js/formValidator2.2.4/css/validationEngine.jquery.css" type="text/css"/>

<link rel="stylesheet" href="https://incastiglionfiorentino.com/wp-content/themes/amplify/js/formValidator2.2.4/css/template.css" type="text/css"/>

<script src="https://incastiglionfiorentino.com/wp-content/themes/amplify/js/formValidator2.2.4/js/jquery.validationEngine.js" type="text/javascript"></script>

<script src="https://incastiglionfiorentino.com/wp-content/themes/amplify/js/formValidator2.2.4/js/languages/jquery.validationEngine-it.js" type="text/javascript"></script>


<script type="text/javascript">

jQuery(document).ready(function(){

	jQuery("#check_disponibilita").validationEngine();

});

</script>


<!--fine VALIDATOR-->


</head>

<body>

<?php 

if(!empty($_POST['nome']))
{

	$nome = $_POST['nome'];
	$citta = $_POST['citta'];
	$telefono = $_POST['telefono'];
	$email = $_POST['email'];
	$arrivo = $_POST['arrivo'];
	$partenza = $_POST['partenza'];
	$adulti = $_POST['adulti'];
	$bambini = $_POST['bambini'];
	$note = $_POST['note'];
	$myemail = $_POST['myemail'];
	
	$extra1 = "";
	if($citta != "")
	{
		$extra1 = $extra1 . "Citta': $citta \n ";
	}
	
	if($telefono != "")
	{
		$extra1 = $extra1 . "Telefono: $telefono \n ";
	}
	
	$extra2 = "";
	if($citta != "")
	{
		$extra2 = $extra2 . "Bambini: $bambini \n ";
	}
	
	if($telefono != "")
	{
		$extra2 = $extra2 . "Note: \n $note ";
	}
	
	$to = $myemail; 	
    $email_subject = "Richiesta tramite InCastiglionFiorentino.com";
    $email_body = "Hai ricevuto un messaggio dal sito InCastiglionFiorentino.com \n \n".
    "Di seguito i dettagli del messaggio:\n \n Nome e Cognome: $nome \n " . $extra1 . "Email: $email \n Data di Arrivo: $arrivo \n Data di Partenza: $partenza \n Adulti: $adulti \n " . $extra2; 
   
    $headers = "From: $email". "\r\n";
    $headers .= "Bcc: comunicazioni@adspray.it";
    
    mail($to,$email_subject,$email_body,$headers);
	
	
	echo "<div align=\"center\" style=\"margin-top: 260px;; width: 472px; height: 598;\">Grazie " .$nome . " per averci contattato. Risponderemo alla tua richiesta di disponibilità il prima possibile.</div>" ;
	
}else{ 

	$myemail = $_GET['myemail'];?>


<form name="check_disponibilita" id="check_disponibilita" action="" method="post" style="margin-left:10px;">

<div id="disp-form">

<div style="margin-top:10px; float:left;">Nome e Cognome: *</div><div style="float:right;"><input type="text" name="nome" id="nome" style="width:300px;" class="validate[required]" /></div>
<br /><br /><br />
<div style="margin-top:10px; float:left;">Citt&agrave; di Residenza:</div><div style="float:right;"><input type="text" name="citta" id="citta" style="width:300px;" /></div>
<br /><br /><br />
<div style="margin-top:10px; float:left;">Recapito Telefonico:</div><div style="float:right;"><input type="text" name="telefono" id="telefono" style="width:300px;" class="validate[custom[phone]]" /></div>
<br /><br /><br />
<div style="margin-top:10px; float:left;">Indirizzo E-mail: *</div><div style="float:right;"><input type="text" name="email" id="email" style="width:300px;" class="validate[required][custom[email]]" /></div>
<br /><br /><br />
Data Arrivo: * <input type="text" name="arrivo" id="arrivo" style="width:110px; margin-right:7px;" class="validate[required][custom[date]] text-input datepicker" <?php if ($_GET["arrivo"] != "0") {echo "value=\"".$_GET["arrivo"]."\"";} ?> />

Data Partenza: * <input type="text" name="partenza" id="partenza" style="width:110px;" class="validate[required][custom[date]] text-input datepicker" <?php if ($_GET["partenza"] != "0") {echo "value=\"".$_GET["partenza"]."\"";} ?> />
<br /><br />
N° Adulti: * <input type="text" name="adulti" id="adulti" style="width:30px; margin-left:15px;" class="validate[required][custom[integer]]" <?php if ($_GET["adulti"] != "0") {echo "value=\"".$_GET["adulti"]."\"";} ?> />

<span class="bambini-form">N° Bambini: <input type="text" name="bambini" id="bambini" style="width:30px; margin-left:12px;" class="validate[custom[integer]]" <?php if ($_GET["bambini"] != "0") {echo "value=\"".$_GET["bambini"]."\"";} ?>   /></span>
<br /><br />
<div style="margin-top:30px; float:left;">Note per la Struttura:</div><div style="float:right;"><textarea rows="1" cols="20" name="note" id="note" style="width:300px;" class="popup-disp-textarea" /></textarea></div>

<div style="margin-top: 91px; margin-bottom: 11px;"><input type="checkbox" name="ckb" id="ckb" style="float:left;" class="validate[required]" /><div style="font-size:10px;">* Accetto il regolamento, le condizioni di utilizzo inserite a fondo pagina e<br />acconsento al trattamento dei miei dati personali ai sensi della D. LGS 196/2003</div></div>

<input type="submit" name="submit" value="Invia Modulo" style="float:center;" class="disponibilita_calendario_verifica" />
<input type="hidden" id="myemail" name="myemail" value="<?php echo $myemail;?>" />
</form>







</div>




<?php } ?>

</body>
</html>