My business is new here and also I’m needing to figure out where to edit a bit in this script. I’m needing to learn where to place the page in this kind of script where people are going to be directed to right out the password protected home-page. Can anyone aid me My up coming page is community forums. html
Many thanks.
< center> < variety name=login>
< kitchen table cellspacing=" 0" cellpadding=" 1" background=" background. gif" >
< tr> < td colspan=2 align=center> < font size=" +2" color=" yellow" > < b> Members-Only Spot! < /b> < /font> < /td> < /tr>
< tr> < td> < font color=" yellow" > < b> Username: < /b> < /font> < /td> < td> < choose name=memlist>
< choice value=’x’>
< choice value=’Jeremy21870JNDEX’> Jeremy
< choice value=’Chris0INDEX’> Chris
< /select> < /td> < /tr>
< tr> < td> < font color=" yellow" > < b> Password: < /b> < /font> < /td> < td> < enter type=password size=10 maxlength=8 name=pass> < /td> < /tr>
< tr> < td colspan=2 align=center> < enter type=button value=" Login" onclick=" check(this. form)" > < /td>
< /tr>
< /table>
< /form>
< SCRIPT LANGUAGE=" JavaScript" >
<! — Begin
var params=new Array(4);
var alpha=" ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHI";
perform check(form)
which=form. memlist. selectedIndex;
choice = form. memlist. optionswhich. value+" ";
in the event (choice==" x" )
alert(" Please Select Your Name In the List" );
returning;
p=0;
with regard to (i=0; i< SEVERAL; i++)
a=choice. indexOf(" ", p);
params=choice. substring(a, p);
p=a+1;
h1=makehash(form. complete. value, 3);
h2=makehash(form. complete. value, 10)+" ";
in the event (h1! =params1)
alert(" Incorrect Password! " ); returning;;
var page=" ";
with regard to (var i=0; i< 6; i++)
letter=params2. substring(i, i+1)
ul=letter. toUpperCase();
a=alpha. indexOf(ul, 0);
a-=(h2. substring(i, i+1)*1);
in the event (a< 0) a+=26;
page+=alpha. substring(a, a+1);;
top rated. location=page. toLowerCase()+". html";
perform makehash(pw, mult)
pass=pw. toUpperCase();
hash=0;
with regard to (i=0; i< 6; i++)
letter=pass. substring(i, i+1);
c=alpha. indexOf(letter, 0)+1;
hash=hash*mult+c;
return(hash);
// Conclude –>
< /script>
< /center>
ANY Javascript password protection script
What keeps my family from just looking at the HTML to check out the password
choice value=’Jeremy21870JNDEX’> Jeremy
Jeremy enters 21870 for any password
===================
You ought to be using PHP or. htaccess is greater than your Javascripting.