Created
October 14, 2013 06:19
-
-
Save jershmagersh/6971557 to your computer and use it in GitHub Desktop.
Authenticated D-Link code.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta http-equiv=Content-Type content="no-cache"> | |
<meta http-equiv=Content-Type content="text/html; charset=utf-8"> | |
<title>D-LINK SYSTEMS, INC | WIRELESS ROUTER | HOME</title> | |
<script> | |
-snip- | |
/* parameter checking */ | |
function check() | |
{ | |
var f=get_obj("frm"); | |
if(is_blank(f.admin_name.value)) | |
{ | |
alert("Please input the Login Name."); | |
f.admin_name.select(); | |
return false; | |
} | |
else if(strchk_hostname(f.admin_name.value)==false) | |
{ | |
alert("The Login Name is with invalid character. Please check it."); | |
f.admin_name.select(); | |
return false; | |
} | |
if(strchk_unicode(f.admin_password1.value)==true) | |
{ | |
alert("The New Password is with invalid character. Please check it."); | |
f.admin_password1.select(); | |
return false; | |
} | |
if(f.admin_password1.value!=f.admin_password2.value) | |
{ | |
alert("The New Password and Confirm Password are not matched."); | |
f.admin_password1.select(); | |
return false; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment