26 lines
469 B
PHP
26 lines
469 B
PHP
|
<?php
|
||
|
$fp = fopen("password.txt","r");
|
||
|
$intitule = fgetcsv($fp, 1000, ",");
|
||
|
|
||
|
while ($data = fgetcsv($fp, 1000, ","))
|
||
|
{
|
||
|
$name[$Cpt] = $data[0];
|
||
|
$pass[$Cpt] = stripcslashes($data[1]);
|
||
|
$bienvenue[$Cpt++] = stripcslashes($data[2]);
|
||
|
}
|
||
|
|
||
|
fclose($fp);
|
||
|
|
||
|
if ($name[0] == {I_PASSWORD_NOM})
|
||
|
{
|
||
|
print_r($name);
|
||
|
print_r($pass);
|
||
|
print_r($bienvenue);
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
while ($name[$Cpt--] != {I_PASSWORD_NOM});
|
||
|
echo "$pass";
|
||
|
}
|
||
|
|
||
|
?>
|