Hallo,
ich weiss zwar nicht ob ich jetzt zu spät bin ,aber ich hab da mal früher als ich noch am Anfang war ein javascript pass abfrage seite gesehen ,wo Du mehrere Passwörter einrichten kannst glaub ich .
Sogar mit login seite.
Musste damals manchmal einfach ab und an die ziehlseite ändern und das wars.
Die herstellung vom script konnte ich auf meinem eigenen windows Pc erstellen indem ich einfach den editor von deren seite runterlud.
Die seite heisst:
http://www.geocities.com/~lef
falls die seite nicht mehr existiert hier die daten:
die html seite:
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Pragma" content="no-cache">
<title>Login Page</title>
<script language="JavaScript" Src="pass.js">
/* Script by Lefteris Haritou
Copyright ©1997-1998 You have a older Browser,who does not support javascript.Ihr habt einen älteren Browser,der javascript nicht unterstützt oder das javascript unter einstellungen beim Netscape oder internetoptionen erweitert beim Internetexplorer ist deaktiviert.
http://www.geocities.com/~lef
This Script is free as long
as you keep the above credit !
*/
</script>
</head>
<body text="#FFFF00" bgcolor="#000066" link="#0000EE" vlink="#CC33CC" alink="#FF0000">
<center><a NAME="passeingabe"></a><form Name="lgform"></center>
<center><table BORDER=5 CELLSPACING=0 CELLPADDING=4 BGCOLOR="#0080FF" Bordercolorlight="#7F787F" Bordercolordark="#000000" BORDERCOLOR="#000000" >
<tr BGCOLOR="#0080FF">
<td><font face="Arial"><font size=+1>Login : </font></font></td>
<td><input NAME="user" TYPE="text" VALUE="" SIZE="10" ALIGN=middle></td>
</tr>
<tr BGCOLOR="#0080FF">
<td><font face="Arial"><font size=+1>Password : </font></font></td>
<td><input name="passwd" type="password" value="" size="10" ALIGN=middle></td>
</tr>
<tr ALIGN=CENTER BGCOLOR="#0080FF">
<td COLSPAN="2"><b><i><font face="Arial"><font size=-1>Password Pro Protected</font></font></i></b></td>
</tr>
</table></center>
<br>
</body>
</html>
das passeditor script das du in html abspeichern solltest:
seite 1(als easy.html abspeichern):
<HTML>
<HEAD>
<TITLE>Password Pro Easy Install</TITLE>
</HEAD>
<Script language="JavaScript">
<!--
function evlform(){
if (document.propr.mutiple[0].checked){
if (document.propr.type[0].checked)
location.href="easy2a.html"
else
location.href="easy2b.html"
}
else{
if (document.propr.type[0].checked)
location.href="easy2c.html"
else
location.href="easy2d.html"
}
}
//-->
</Script>
<BODY BGCOLOR="#000000" LINK="#0080FF" VLINK="#FF8080" ALINK="#FFFFFF" TEXT="#FF0000">
<CENTER>
<HR>
<FONT SIZE=4 FACE="Arial"><B>Welcome to Password Pro easy Install</B><HR><H2>Step 1</H2></CENTER>
<FORM Name="propr">
<FONT SIZE=3 FACE="Arial"><B>
Please select wether you wish to have a single or multiple login accounts :<BR>
<INPUT NAME="mutiple" TYPE="radio" checked> Single login<BR>
<INPUT NAME="mutiple" TYPE="radio"> Multiple login<BR><BR>
Do you wish to password protect file(s) or folder(s) ?<BR>
<INPUT NAME="type" TYPE="radio" checked>Files<BR>
<INPUT NAME="type" TYPE="radio">Folders<BR><BR>
<INPUT Value="Help" type="button" onclick="window.open('help1.html','hlp','top=0,left=0,width=300,height=500,location=0,scrollbars=1')">
<INPUT NAME="Next" Value="Next" type="button" onclick="evlform()">
</B></FONT></FORM>
</FONT>
</BODY>
</HTML>
seite 2(als easy2b.html abspeichern):
<HTML>
<HEAD>
<TITLE>Password Pro Easy Install</TITLE>
</HEAD>
<BODY BGCOLOR="#000000" LINK="#0080FF" VLINK="#FF8080" ALINK="#FFFFFF" TEXT="#FF0000">
<CENTER>
<HR>
<FONT SIZE=4 FACE="Arial"><B>Single login - Protect files</B><HR><H2>Step 2</H2></CENTER>
<FORM Name="props">
<FONT SIZE=3 FACE="Arial"><B>
Enter the user ID :<BR>
<Input type="text" size=10 name="uid"><BR><BR>
Enter the password you wish to set : (maximum length : 10 characters)<BR>
<Input type="text" size=10 name="pass1"><BR><BR>
Enter the password again :<BR>
<Input type="text" size=10 name="pass2"><BR><BR>
Enter the number of retries you wish to set : (default : 3)<BR>
<Input type="text" size=1 name="retr" Value="3"><BR><BR>
<INPUT NAME="Next" Value="Next" type="button" onclick="evlform()">
</B></FONT></FORM>
</FONT>
<Script language="JavaScript">
<!--
function evlform(){
if (document.props.pass1.value!=document.props.pass2.value)
alert('Passwords doesn't match\nTry again')
else
if (document.props.pass1.value.length>10)
alert('Maximum characters allowed 10\nTry again')
else
make()
}
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 code=0;
var uid="";
var pass="";
var dir=false
var retr=3;
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++
}
function make(){
uid=document.props.uid.value;
retr=document.props.retr.value;
code=0;
pass=document.props.pass1.value;
var lpass=pass.length;
for (l=0; l<lpass; l++){
K[l]=pass.charAt(l)
}
for (y=0; y<lpass; y++){
for(x=0; x<62; x++){
if (K[y]==base[x])
code+=(y+1)*f[x]
}
}
window.open('easy3a.html','hlp')
}
//-->
</Script>
</BODY>
</HTML>
seite 3 (als easy3a.html abspeichern):
<HTML>
<HEAD>
<TITLE>Password Pro Easy Install</TITLE>
</HEAD>
<BODY BGCOLOR="#000000" LINK="#0080FF" VLINK="#FF8080" ALINK="#FFFFFF" TEXT="#FF0000">
<CENTER>
<HR>
<FONT SIZE=4 FACE="Arial"><B>Single login - Protect folders</B><HR><H2>Step 3</H2>
Copy everything between the ****** marks (DO NOT INCLUDE THE MARKS)<BR>Then open your favorite text or html editor paste it there and save the file as "pass.js" (without the quotes)
</CENTER><pre>
*******************************<BR>
<!-- Hiding
/ Script by Lefteris Haritou
http://www.geocities.com/~lef
*/
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 z=23;
var y=28;
var f= new Array();
var K= new Array();
var login=new Array();
var lgnum=0;
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++
}
function inc(){
iCounter--
if (iCounter > 0){
alert('Login / Password Incorrect\n\nPlease try again')
document.lgform.user.value=""
document.lgform.passwd.value=""
lgnum=0
}
else
location.href='denied.html'
}
function check(){
if (lgnum<login.length){
if (document.lgform.user.value==login[lgnum].usid)
pwdchk()
else{
lgnum++
check()
}
}
else
inc()
}
function pwdchk(){
var pass=document.lgform.passwd.value
var lpass=pass.length
for (l=0; l<lpass; l++){
K[l]=pass.charAt(l)
}
var code=0;
for (y=0; y<lpass; y++){
for(x=0; x<62; x++){
if (K[y]==base[x])
code+=(y+1)*f[x]
}
}
if (code==login[lgnum].pwd)
go()
else
inc()
}
function go(){
location.href=document.lgform.passwd.value+'/'
}
function id(usid,pwd){
this.usid=usid;
this.pwd=pwd;
}
<Script language="JavaScript">
<!--
document.writeln('var iCounter='+window.opener.retr);
document.writeln('login[0]=new id("'+window.opener.uid+'",'+window.opener.code+')')
document.close();
//-->
</Script>
//Done Hiding --><BR>
</pre>
<FORM>
<INPUT NAME="Next" Value="Next" type="button" onclick='location.href="easy4.html"'>
</B></FONT></FORM>
</FONT>
</BODY>
</HTML>
seite 4(als easy4.html abspeichern):
<HTML>
<HEAD>
<TITLE>Password Pro Easy Install</TITLE>
</HEAD>
<BODY BGCOLOR="#000000" LINK="#0080FF" VLINK="#FF8080" ALINK="#FFFFFF" TEXT="#FF0000">
<CENTER>
<HR>
<FONT SIZE=4 FACE="Arial"><B>Password Pro easy Install - Finished</B><HR><H2>Step 4</H2>
Now download these 2 files :
<a href="passwd.html">File #1</a> | <a href="denied.html">File #2</a><BR><BR>
Then upload them and the pass.js file to your page<BR><BR>
<Script language="JavaScript">
<!--
if (window.opener.dir){
var txt="folder"
var ext=""
}
else{
var txt="file"
var ext=".html"
}
document.writeln('After that create your hidden '+txt+' and name it :');
document.writeln(window.opener.pass+ext)
document.close();
//-->
</Script>
<BR><BR>To activate the protection
simply link to the file passwd.html<BR><BR>You can modify the login and denied pages (custom colors, fonts, text, etc.)<BR>
<Form>
<Input type="button" Value="Finish" onclick="self.close();window.opener.document.writeln('<HTML><BODY BGCOLOR='#000000'TEXT='#FF0000'><CENTER><BR><BR><BR><BR><BR><BR><RB><HR><FONT SIZE=4 FACE='Arial'><B>Password Pro easy Install Ended<HR><BR><BR>Password Pro<BR>THE ULTIMATE JAVASCRIPT PROTECTION</B></FONT></BODY></HTML>');window.opener.document.close()">
</Form>
<U><I>Password Pro<BR>by Lefteris Haritou © 1997 - 1998</I></U></B><BR></CENTER></FONT>
</BODY>
</HTML>
Gruss Alain