Размер файла: 1.78Kb
<?php
/*-----------------------------------------------------------------------------------------
mcGalleryPRO
All code is © 2003 Marc Cagninacci.
No files may be redistributed in whole or significant part.
----------------- mcgalleryPRO IS NOT FREE SOFTWARE -------------------
You should have receive a file called license.txt in this package
--------------------------------------------------------------------------------------------*/
if ($valid == 'OK')
{
$connect= mysql_connect($host,$login,$pass);
mysql_select_db($base, $connect);
$query="SELECT password, login FROM mcgallery_members WHERE email='$private_email'";
$res=mysql_query($query);
if (mysql_num_rows($res) != 0)
{
$row=mysql_fetch_row($res);
if ($mail_function == 1)
{
email("gallery",$private_email,"mcGallery","$l_Login: $row[1]\n$l_Password: $row[0]");
}
else
{
mail("$private_email", "mcGallery", "$l_Login: $row[1]\n$l_Pass: $row[0]", "From: $email_admin");
}
header ("location:select.php?r=ok");
}
else
{
header ("location:select.php?r=err");
}
}
echo '<form method="post" action="passpop.php">';
echo '<table border="0" cellspacing="1" cellpadding="2" align="center">';
echo '<tr><td class="td0" align="center"><font size="2">'.$l_Perdu.'</font></td></tr>';
echo '<tr><td class="td2" align="center"><font size="2">'.$l_Email_pass.':</font></td></tr>';
echo '<tr><td class="td2" align="center"><input type="text" name ="private_email" size="20"> </td></tr>';
echo '<tr><td class="td1" align="center"><input type="submit" value="OK" name="valid">';
echo '</table></form>';
echo '</td></tr></table>';
?>