hoi, ik ben samen met iemand met een login script bezig alleen op een of andere manier krijgen we hem niet aan de praat met meerdere users....telkens na invoeren van het script gaat hij naar de error.php pagina en geeft de volgende melding:
I BET your username/password combination was wrong!
Please verify your account information and login again.
LOGIN.
hij heeft volgens mij alles al eens geprobeerd, maar het wil telkens niet lukken, misschien dat iemand me hier kan helpen.....dit is het script....
werking:
zo werkt hij: je logt in via login.php dmv een username en paswoord, die haalt hij weer uit een .dat bestand....voor elke user zou er volgens rudie een aparte .dat bestand gemaakt moeten worden. bijv.....user= sjaak , dat wordt het.dat bestand: sjaak.dat hierin staat het volgende scriptje met username en paswoord:
-------------------------------------------------------------
file: sjaak.dat:
-------------------------------------------------------------
file: login.php:
-----------------------------------------------------------
file: error.php
ik hoop dat iemand ziet waaraan het ligt.....thanx
I BET your username/password combination was wrong!
Please verify your account information and login again.
LOGIN.
hij heeft volgens mij alles al eens geprobeerd, maar het wil telkens niet lukken, misschien dat iemand me hier kan helpen.....dit is het script....
werking:
zo werkt hij: je logt in via login.php dmv een username en paswoord, die haalt hij weer uit een .dat bestand....voor elke user zou er volgens rudie een aparte .dat bestand gemaakt moeten worden. bijv.....user= sjaak , dat wordt het.dat bestand: sjaak.dat hierin staat het volgende scriptje met username en paswoord:
-------------------------------------------------------------
file: sjaak.dat:
code:
1
| <? $user='sjaak'; $pass='chocolade'; ?> |
-------------------------------------------------------------
file: login.php:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
| <?
if ($submit)
{
$file = $username.".dat";
include($file);
if ($password != $pass || $username != $name)
{
header("location: error.php?ec=2");
exit;
}
else
{
session_start();
$forum->login = TRUE;
session_register("forum"); ?>
<script>
top.location = 'start.php';
</script> <?
}
}
else
{
?>
<html>
<head>
<title>login</title>
</head>
<body scroll=auto><font face=verdana size=-1><center><br><br>
<form name=login action='login.php?submit=yes' method=POST>
name<br>
<input type=text name=username value="" style='width:200px;' maxlength=12><br>
<br>
password<br>
<input type=password name=password value="" style='width:200px;' maxlength=12><br>
<br>
<input type=submit value='go login' style='width:200px;'><br>
<?
}
?> |
-----------------------------------------------------------
file: error.php
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
| <?
switch($ec)
{
case 1:
$message ="You didnt log in, did you? You <b>might</b> want to try again!<br>
<a href=login.php>LOGIN</a>.";
break;
case 2:
$message ="I BET your username/password combination was wrong!<br>
Please verify your account information and login again.<br>
<a href=login.php>LOGIN</a>.";
break;
case 3:
$message = "YOU TRYIN TO CHEAT ON MEEEEEEEEEEEEEE?? Please verify your account information and <a href=login.php>log in again</a>.";
break;
default;
$message = $ec;
break;
}
?>
<html>
<head>
</head>
<body bgcolor="White">
<font face="Verdana" size="-1">
<? echo $message; ?>
</font>
</body>
</html> |
ik hoop dat iemand ziet waaraan het ligt.....thanx