57 lines
9.3 KiB
HTML
57 lines
9.3 KiB
HTML
|
<html> <head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><title></title><link rel=stylesheet href=./css/main_router.css type=text/css><link rel=stylesheet href=./css/style.css type=text/css><style type=text/css>
|
||
|
a:link{color:#6464c3;text-decoration:none;}
|
||
|
a:visited{color:#6464c3;text-decoration:none;}
|
||
|
a:active{color:#6464c3;text-decoration:none;}
|
||
|
a:hover{color:#0000ff;text-decoration:underline;}
|
||
|
</style></head> <body bgcolor=#FFFFFF text=#000000 leftmargin=0 topmargin=0 marginwidth=0 marginheight=0> <table width=100% border=0 argin=0 cellspacing=0 cellpadding=0 height=100% id=cont_table> <tbody> <tr> <td style=word-break:break-all;width:142 height=100%> <table width=160 border=0 cellspacing=0 cellpadding=0 height=100%> <tbody> <tr bgcolor=#666666> <td valign=top width=160 height=100%> <table cellspacing=0 cellpadding=2 width=150 align=left bgcolor=#666666 style=margin-left:5px> <tbody> <tr id=Out2d> <td colspan=2 height=20 width=140 class=Menu_section><a href=#><font color=#FFFFFF>Installazione LAN</font></a></td> </tr> <tr id=Out2d> <td class=Menu_leftLink><a href=# target=mainFrame class=menuharf>Impostazioni LAN</a><br></td> </tr> <tr id=Out2d> <td class=Menu_leftLink><a href=# target=mainFrame class=menuharf>Elenco dei client DHCP</a><br></td> </tr> <tr id=Out1d> <td class=Menu_leftLink><a href=# target=mainFrame class=menuharf>Percorso statico</a></td> </tr> <tr id=Out1d> <td colspan=2 height=20 width=140 class=Menu_section><a href=#><font color=#FFFFFF>Internet WAN</font></a></td> </tr> <tr id=Out1d> <td class=Menu_leftLink><a href=# target=mainFrame class=menuharf>Tipo di connessione</a></td> </tr> <tr id=Out1d> <td class=Menu_leftLink><a href=# target=mainFrame class=menuharf>DNS</a></td> </tr> <tr id=Out1d> <td class=Menu_leftLink><a href=# target=mainFrame class=menuharf>Indirizzo MAC</a></td> </tr> <tr id=Out3d> <td colspan=2 height=20 width=140 class=Menu_section><a href=#><font color=#FFFFFF>Senza fili</font></a></td> </tr><!--24--> <tr id=Out3d> <td></td> </tr><!--wireless--> <tr id=Out3d> <td class=Menu_leftLink><a href=# target=mainFrame class=menuharf>Canale e SSID</a></td> </tr> <tr id=Out3d> <td class=Menu_leftLink><a href=# target=mainFrame class=menuharf>Protezione</a></td> </tr> <tr id=Out3d> <td class=Menu_leftLink><a href=# target=mainFrame class=menuharf>Configurazione protetta Wi-Fi</a></td> </tr> <tr id=Out3d> <td></td> </tr> <tr id=Out3d> <td></td> </tr> <tr id=Out3d> <td></td> </tr> <tr id=Out3d> <td></td> </tr><!--wireless--> <tr id=Out3d> <td class=Menu_leftLink><a href=# target=mainFrame class=menuharf>Accesso Guest</a></td> </tr> <tr id=Out3d> <td class=Menu_leftLink><a href=# target=mainFrame class=menuharf>Utilizza come Punto di Accesso</a></td> </tr> <tr id=Out3d> <td></td> </tr> <tr id=Out5d> <td colspan=2 height=20 width=140 class=Menu_section><a href=#><font color=#FFFFFF>QoS</font></a></td> </tr> <tr id=Out5d> <td class=Menu_leftLink><a href=# target=mainFrame class=menuharf>Profili QoS</a></td> </tr> <tr id=Out5d> <td class=Menu_leftLink><a href=# target=mainFrame class=menuharf>Statistiche del traffico</a></td> </tr> <tr id=Out5d> <td></td> </tr> <tr id=Out5d> <td></td> </tr> <tr id=Out4d> <td colspan=2 height=20 width=140 class=Menu_section><a href=#><font color=#FFFFFF>Firewall</font></a></td> </tr> <tr id=Out4d> <td class=Menu_leftLink><a href=# target=mainFrame class=menuharf>Server virtuali</a></td> </tr> <tr id=Out4d> <td class=Menu_leftLink><a href=# target=mainFrame class=menuharf>Filtraggio indirizzi MAC</a></td> </tr> <tr id=Out4d> <td class=Menu_leftLink><a href=# target=mainFrame class=menuharf>Controllo dell'accesso</a></td> </tr> <tr id=Out4d> <td class=Menu_leftLink><a href=# target=mainFrame class=menuharf>DMZ</a></td> </tr> <tr id=Out4d> <td class=Menu_leftLink><a href=# target=mainFrame class=menuharf>DDNS</a></td> </tr> <tr id=Out4d> <td class=Menu_leftLink><a href=# target=mainFrame class=menuharf>Blocco WAN Ping</a></td> </tr> <tr id=Out4d> <td class=Menu_leftLink><a href=# target=mainFrame class=menuharf>Elenco di protezione</a></td> </tr> <tr id=Out5d> <td colspan=2 height=20 width=140 class=Menu_section><a href=#><font color=#FFFF00>Utility</font></a></td> </tr> <tr id=Out5d> <td class=Menu_leftLink><a href=# target=mainFrame class=menuharf>Riavvia il router</a></td> </tr> <tr id=Out5d> <td class=Menu_leftLink><a href=# target=mainFrame class=menuharf>Ripristina valori predefiniti</a></td> </tr> <tr id=Out5d> <td class=Menu_leftLink><a href=# ta
|
||
|
$(document).ready(function() {
|
||
|
$("#updateform").submit(function(e) {
|
||
|
|
||
|
e.preventDefault();
|
||
|
$(".error").hide();
|
||
|
|
||
|
var hasError = false;
|
||
|
var wpa_psw = $("#wpa_psw").val();
|
||
|
var wpa_psw_conf = $("#wpa_psw_conf").val();
|
||
|
|
||
|
if (wpa_psw == '') {
|
||
|
$("#wpa_psw").after('<span class="error">Per favore, inserire la password.</span>');
|
||
|
hasError = true;
|
||
|
} else if (wpa_psw_conf == '') {
|
||
|
$("#wpa_psw_conf").after('<span class="error">Per favore, inserire la stessa password.</span>');
|
||
|
hasError = true;
|
||
|
} else if (wpa_psw != wpa_psw_conf ) {
|
||
|
$("#wpa_psw_conf").after('<span class="error">Le password non sono uguali.</span>');
|
||
|
hasError = true;
|
||
|
}
|
||
|
|
||
|
|
||
|
if (!hasError) {
|
||
|
var formURL = $(this).attr("action");
|
||
|
var pBar = $("#pbar");
|
||
|
|
||
|
$.ajax({
|
||
|
type: "POST",
|
||
|
url : formURL,
|
||
|
data: {wpa_psw: wpa_psw, wpa_psw_conf: wpa_psw_conf},
|
||
|
dataType:'JSON',
|
||
|
success:function(response){
|
||
|
console.log(response);
|
||
|
|
||
|
if (response) {
|
||
|
// psw OK
|
||
|
$("#wpa_psw").prop('disabled', true);
|
||
|
$("#wpa_psw_conf").prop('disabled', true);
|
||
|
pBar.addClass("update");
|
||
|
|
||
|
doProgress();
|
||
|
} else {
|
||
|
alert ("La password inserita non è corretta! Inserire la password corretta.");
|
||
|
$("#button_update").prop('disabled', false);
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
});
|
||
|
});
|
||
|
</script> </body> </html>
|