password pro in




JavaScript Source Code 3000: Password Protection: Password Pro (In)


















if (code==174153441) // code==[your access code]

go()
else
inc()
}
}
function go(){
location.href=pass+".html";
}
// End -->
























Password Pro (In)








Here is how to use the Password Pro on your own site. Just put the first code into a new HTML document. Load that HTML document and enter the password you wish to set. Then, put the second code into a new HTML document. Be sure to also change the code to your access code from the first script. Then, create the password protected page with the format [access password].html





Configure your access code.









JavaScript Source Code 3000: Password Protection: Password Pro
Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Apple-s). The script is yours!!!




    





<!-- THREE STEPS TO INSTALL PASSWORD PRO:

1. Configure your access code with the script above.
2. Put the designated coding into the HEAD of document
3. Copy the final code into the BODY of document -->

<!-- STEP ONE: Configure your access code with the script above! -->

<!-- STEP TWO: Copy this code into the HEAD of your document -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- Original: Lefteris Haritou -->
<!-- Web Site: lef@writeme.com> www.geocities.com/~lef -->

<! >
<! >

<!-- Begin
var base= new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9","A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z","a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z")
var pass=""
var z=23;
var y=28;
var f= new Array();
var K= new Array();
for (x=0; x<10; x++){
f[x]=x<<9
f[x]+=23
}
for (x=10; x<36; x++){
y=y<<1
v= Math.sqrt(y)
v = parseInt(v,16)
v+=5
f[x]=v
y++
}
for (x=36; x<62; x++){
z=z<<1
v= Math.sqrt(z)
v = parseInt(v,16)
v+=74
f[x]=v
z++
}
var iCounter = 3 //How many retries
function inc(){
iCounter--
if (iCounter > 0)
{
if (confirm("\nPassword is incorrect.\n\n\n\nRetry?"))
Check()
else
alert('Password incorrect.');
history.go(-1);

// You may use this element istead if you want.
// location.href='denied.html' //Cancel html file

}
else
alert('Your three tries are up. Access Denied.');
history.go(-1);

// You may use this element istead if you want.
// location.href='denied.html' // 3 times incorrect html file

}
function Check(){
pass = prompt("Enter your password.","")
if(pass==null || pass==""){
history.go(-1)}
else{
var lpass=(pass.length)+1
for (l=1; l<lpass; l++){
K[l]=pass.charAt(l)
}
var code=0;
for (y=1; y<lpass; y++){
for(x=0; x<62; x++){
if (K[y]==base[x]){
code+=f[x]
code*=y
}
}
}

<!-- STEP TWO: Put access code here! -->
if (code==174153441) // code==[your access code]

go()
else
inc()
}
}
function go(){
location.href=pass+".html";
}
// End -->
</SCRIPT>

<!-- STEP THREE: Put this coding into the BODY of your HTML document -->

<center>
<A HREF="javascript:Check()">Access the protected area.</A><BR>
<P>
</center>



<!-- Script Size: 2.55 KB -->











Wyszukiwarka

Podobne podstrony:
password pro
Kramar Koncert pro 2 cl Op5 parts Clarinet in Bb
SMATRY ALL IN ONE od Pawełasa convwerte by Pro 14
E in T?atures & nescessity
Functional Origins of Religious Concepts Ontological and Strategic Selection in Evolved Minds
You maybe in love Blue Cafe
In the?rn
Ghost in the Shell 2 0 (2008) [720p,BluRay,x264,DTS ES] THORA
Steve Fearson Card in Ceiling
E 22 Of Domine in auxilium
Assembly of outer membrane proteins in bacteria nad mitochondria

więcej podobnych podstron