User Management Php

// This is your indexfile: index.php
?>


password admin


$logok = FALSE;
if (isset($login) and isset($passwd)){
$fp = fopen("password.txt", "r");
while (feof($fp) == 0)
{
$line = chop(fgets($fp,1000));
$arr = split(",", $line);
if (($arr[0] == $login) and ($arr[1] == $passwd))
{
$logok = TRUE;
continue;
}
}
}
if (!$logok)
{
?>






















login




password








if ($logok)
{
?>

}
?>



********
The next 2 lines will be in your plain-text-file password.txt:
your_login_1,your_password_1
your_login_2,your_password_2