Experienced Elementalist
- Joined
- Mar 4, 2004
- Messages
- 278
- Reaction score
- 0
Here is part of php code:
Is here any way to log wrong logins/passwords with IP to txt file?<table class=\"border\" width=\"750\" border=\"0\" align=\"center\" style=\"border-collapse: collapse\" cellpadding=\"5\">
<tr>
<td class=\"window1\">UAB Spartukas - Puslapio tekstu valdymas » <b>Prisijungti</b></td>
</tr>
<tr>
<td class=\"window2\">
<form action=\"index.php\" method=\"post\" style=\"margin: 0px\">
<table border=\"0\" width=\"98%\" style=\"border-collapse: collapse\">
<tr><td width=100>Administratorius:</td><td><input type=\"text\" name=\"id\" size=\"20\"></td></tr>
<tr><td width=100>Slaptazhodis:</td><td><input type=\"password\" name=\"pass\" size=\"20\"></td></tr>
<tr><td width=100>Duration:</td><td><input style=\"width: 30px\" type=\"text\" value=\"60\" name=\"time\" size=\"20\"> Minutes</td></tr>
<tr><td width=100></td><td><input type=\"submit\" name=\"login\" value=\"Login\" size=\"20\"></td></tr>
</table>
</form>
</td>
</tr>
</table>
";
if(isset($_POST['login'])){
$id = $_POST['id'];
$pass = $_POST['pass'];
$time = $_POST['time'];
include("data\account.php");
if($id == $username && $pass == $userpass){
setcookie("quickedit_user", $username, time()+60*$time,"/");
setcookie("quickedit_pass", md5($password), time()+60*$time,"/");
header("Location: data\lgsucced-psk-accsgrnt-tmo_s_admin-7777-main-accs.php");
**
else{
echo "<br><table class=\"border\"style=\"overflow: auto\" align=\"center\">
<tr>
<td style=\"padding-left: 200px; padding-right: 200px;\" class=\"nera\">
<b>Wrong login or password !!!</b>
</td>
</tr>
</table>
Last edited:

