157 lines
4.8 KiB
Plaintext
157 lines
4.8 KiB
Plaintext
<%@ page import="weblogic.servlet.security.ServletAuthentication,javax.servlet.http.HttpUtils,java.util.Enumeration" %>
|
|
<%@ page import="it.valueteam.gnpgo.core.util.Resources" %>
|
|
|
|
<%
|
|
response.setHeader("Pragma", "No-cache");
|
|
response.setHeader("Cache-Control", "no-cache");
|
|
response.setDateHeader("Expires", 0);
|
|
%>
|
|
<html>
|
|
<head>
|
|
<%
|
|
/* Eliminare il commento dalla configurazione che si intende utilizzare
|
|
* ed inserirne uno sulla configurazione non in uso.
|
|
* La coppia // all'inizio di una riga indica che la riga e' un commento.
|
|
*/
|
|
|
|
/*CONFIGURAZIONE COLLAUDO*/
|
|
//String urlCambioPwd = "https://cambiopwd-coll.tim.it/Ch_Pwd/pw.html";
|
|
/*CONFIGURAZIONE ESERCIZIO*/
|
|
String urlCambioPwd = Resources.getChangePasswordLink();
|
|
|
|
%>
|
|
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline' 'unsafe-eval'"/>
|
|
<META Http-Equiv="Cache-Control" Content="no-cache">
|
|
<META Http-Equiv="Pragma" Content="no-cache">
|
|
<META Http-Equiv="Expires" Content="0">
|
|
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
|
|
<title>Telecom Italia</title>
|
|
<script language="javascript">
|
|
<!-----
|
|
if (top.location != self.location) {
|
|
top.location = self.location
|
|
}
|
|
function resetCredFields()
|
|
{
|
|
document.Login.j_password.value = "";
|
|
document.Login.j_username.value = "";
|
|
}
|
|
|
|
function submitForm()
|
|
{
|
|
if(document.Login.j_username.value == ""){
|
|
alert("Il campo username e' vuoto!");
|
|
return false;
|
|
}else{
|
|
if(document.Login.j_password.value == ""){
|
|
alert("Il campo password e' vuoto!");
|
|
return false;
|
|
}else{
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
//--->
|
|
</script>
|
|
|
|
<style>
|
|
<!--
|
|
.Titoli_bianchi_18_bold { font-family: Arial; font-size: 18 pt; color: #6b6f72; font-weight: bold }
|
|
|
|
.Titoli_bianchi_10_bold {
|
|
FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #6b6f72; FONT-FAMILY: Arial
|
|
}
|
|
-->
|
|
</style>
|
|
|
|
</head>
|
|
<%
|
|
Object countObj = session.getAttribute("count");
|
|
int count = 0;
|
|
if (countObj!=null)
|
|
count = ((Integer)countObj).intValue()+1;
|
|
session.setAttribute("count", new Integer(count));
|
|
Object azErrorObj = session.getAttribute("AzError");
|
|
String azError="";
|
|
|
|
if (azErrorObj!=null)
|
|
azError = (String)azErrorObj;
|
|
|
|
if (!azError.equals("true") && ServletAuthentication.strong(request,response)==ServletAuthentication.AUTHENTICATED){
|
|
count = ((Integer)session.getAttribute("count")).intValue();
|
|
if (count == 0)
|
|
response.sendRedirect(ServletAuthentication.getTargetURLForFormAuthentication(session));
|
|
else{
|
|
session.removeAttribute("count");
|
|
StringBuffer URL = request.getRequestURL();
|
|
response.sendRedirect(URL.substring(0,URL.lastIndexOf("/"))+"/error.jsp");
|
|
}
|
|
}
|
|
session.removeAttribute("AzError");
|
|
%>
|
|
|
|
<body BGCOLOR="#ffffff" TEXT="#6b6f72" onLoad = "resetCredFields();">
|
|
<a name="top"></a>
|
|
|
|
<FORM name=Login action="j_security_check" method="post" onSubmit="return submitForm();">
|
|
<INPUT TYPE=HIDDEN NAME="SMENC" VALUE="ISO-8859-1">
|
|
<INPUT type=HIDDEN name="SMLOCALE" value="US-EN">
|
|
|
|
<!-- **** Log in table **** -->
|
|
<p class="Titoli_bianchi_18_bold"> </p>
|
|
<div align="center">
|
|
<center>
|
|
<table border="0" cellpadding="15" cellspacing="15" background="sfondo_telecom.gif" width="577" height="400" valign="top">
|
|
<tr>
|
|
<td valign="top">
|
|
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
|
|
<tr>
|
|
<td>
|
|
<p class="Titoli_bianchi_18_bold"><i>Pagina di accesso - DBCFXGO</i></p>
|
|
</td>
|
|
<td>
|
|
<p><img border="0" src="logo_telecom_ef.gif" align="right"></p>
|
|
</td>
|
|
</tr>
|
|
<TR>
|
|
<TD colspan=2>
|
|
<P class=Titoli_bianchi_10_bold ><br><I></I></P>
|
|
</TD>
|
|
</TR>
|
|
|
|
<TR>
|
|
<tr>
|
|
<td align="center" colspan="2">
|
|
<p class="Titoli_bianchi_18_bold"> </p>
|
|
<p class="Titoli_bianchi_18_bold">Username <input name="j_username" size="30" style="MARGIN-LEFT: 1px; font: Arial; font-size: 10pt; font-weight: bold;" type="text"></p>
|
|
<p class="Titoli_bianchi_18_bold">Password <input name="j_password" size="30" style="MARGIN-LEFT: 1px; font: Arial; font-size: 10pt; font-weight: bold;" type="password"></p>
|
|
<br>
|
|
<p class="Titoli_bianchi_18_bold"><input type="image" src="entra_tlc.gif">
|
|
<a href="#top"><IMG src="cancella_tlc.gif" border="0" onClick="javascript:resetCredFields();"></a>
|
|
<%
|
|
if(urlCambioPwd!=null && !urlCambioPwd.equals("")){
|
|
%>
|
|
<a href="<%=urlCambioPwd%>"><img src="cambia_pwd_tlc.gif" border="0"></a></p>
|
|
<% } %>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</center>
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<script language="javascript">
|
|
document.forms["Login"].elements["j_username"].focus();
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|