Java code*/
public class LoginCount {
private int lCount=0;
public LoginCount() {
}
public int getLCount() {
return lCount;
}
public void LCount() {
lCount++;
}
}
String username=request.getParameter("admin_user");
String userpwd=request.getParameter("admin_password");
if(userpwd!=null){
if(userpwd.equals( "success")) {
session.invalidate();
response.sendRedirect( "index.jsp");
}else{
myLCount.LCount();
}
}
int count=myLCount.getLCount();
if(count>2) {
out.println( "登录失败!联系管理员 ");
return;
}
%>
------解决方案--------------------
{if $smarty.session.safe_error > 3 || $smarty.session.safe_error eq 3 || $user_info.status eq 2}
Abnormity detected. The account has been holden systematically and please contact with ICX carrier service team.{else}
Security Question
Security Answer
{literal}
document.getElementById("security_answer").focus();
{/literal}