<?php

	//--------------------------------------------------------------------------------------------------------
	// On prolonge la session
	//--------------------------------------------------------------------------------------------------------
	include("../M0/session_start.php") ;

	include("../M0/communs_en_tete_HTML.html") ;
	$back_link = "../M4/wireguard_gestion.php";
	include('../M0/communs_en_tete_home_back.html');


	include("./AQCM_get_VPN_parameters.php") ;

	$return_path = "/M3/gestion_sites.php" ;
	include('../M0/display_user.php'); 

?>

<font size="1" face="Arial, Helvetica, sans-serif">&nbsp;</font>

<div align="center">
<form name="form2" method="post" action="./AQCM_set_VPN_parameters.php">
	
	<table width="<?php echo($tables_width); ?>" border="2" cellspacing="2" cellpadding="2" bordercolor="#ffffff" bgcolor="#000033">	
		
		<tr valign="middle" bordercolor="#666666"> 
			<td align="center">
			
				<table width="90%" align="center" >
					<tr valign="middle" bordercolor="#666666"> 
						<td align="left">
							Le paramétrage du tunnel VPN WIREGUARD est réservé aux administrateurs
							suffisamment sûrs de leur niveau d'expertise.<br><br>
						</td>
					</tr>
				</table>
				
				<table width="98%" align="center" >

					<tr>
						<td align="right"  width="22%">
							<label>Address :&nbsp;</label>
						</td>
						<td align="left">
							<input type="text" id="Server_Address" name="Server_Address" value="<?php echo($aqcm_WG_Server_Address);?>" maxlength="64" size="30" class="txtField" >
						</td>
					</tr>
					<tr>
						<td align="right">
							<label>AllowedIPs :&nbsp;</label>
						</td>
						<td align="left">
							<input type="text" id="server_AllowedIPs" name="server_AllowedIPs" value="<?php echo($aqcm_WG_server_AllowedIPs);?>" maxlength="64" size="30" class="txtField" >
						</td>
					</tr>
					<tr>
						<td align="right">
							<label>WG_URL :&nbsp;</label>
						</td>
						<td align="left">
							<input type="text" id="WG_URL" name="WG_URL" value="<?php echo($aqcm_WG_URL);?>" maxlength="64" size="30" class="txtField" >
						</td>
					</tr>
					<tr>
						<td align="right">
							<label>ListenPort :&nbsp;</label>
						</td>
						<td align="left">
							<input type="text" id="ListenPort" name="ListenPort" value="<?php echo($aqcm_WG_ListenPort);?>" maxlength="64" size="30" class="txtField" >
						</td>
					</tr>
					<tr>
						<td align="right">
							<label>Keepalive :&nbsp;</label>
						</td>
						<td align="left">
							<input type="text" id="Keepalive" name="Keepalive" value="<?php echo($aqcm_WG_Keepalive);?>" maxlength="64" size="30" class="txtField" >
						</td>
					</tr>

					<tr>
						<td align="right">
							<label><br>PublicKey :&nbsp;</label>
						</td>
						<td align="left">
							<br>
							<font color="Yellow" size="2"><?php echo($aqcm_WG_Server_PublicKey);?>"</font>
						</td>
					</tr>
					
				</table>
				
				<div><p>

				<table width="98%" align="center">
					<tr>
						<td align="center" colspan="2">
						
								<input type="submit" value="enregistrer ces valeurs" class="button_A" >
						
						</td>
					</tr>
				</table>
				
				</p></div>
				
			</td>
		</tr>

	</table>

	
</form>
</div>

<script>
function SetDefaultsValues() {
  document.getElementById("aqcm_SMTP_Host").value = "smtp.gmail.com";
  document.getElementById("aqcm_SMTP_Port").value = "465";
  document.getElementById("aqcm_SMTP_SMTPSecure").value = "ssl";
  document.getElementById("aqcm_SMTP_Username").value = "mon_adresse@gmail.com";
  document.getElementById("aqcm_SMTP_Password").value = "12345678";
  document.getElementById("aqcm_SMTP_setFrom").value = "adresse_expediteur@gmail.com";
  document.getElementById("aqcm_SMTP_addBCC").value = "adresse_en_copie@gmail.com";
}
</script>

</body>
</html>