File size: 2.67Kb
<?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
--------------------------------------------------------------------------------------------*/
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Contact</title>
<style type="text/css">
<!--
a.lien1:link { font-family: Verdana, Arial; color: #333333; text-decoration: none}
a.lien1:visited { font-family: verdana, Arial; color: #333333; text-decoration: none}
a.lien1:hover { font-family: Verdana, Arial; color: #FFFFFF; text-decoration: none}
-->
</style>
</head>
<body bgcolor="#EEEEEE" text="black">
<?php
include 'conf.inc.php';
include '../lang/'.$lang_def;
$connect= mysql_connect($host,$login,$pass);
mysql_select_db($base, $connect);
if ($submit == 'OK')
{
$text = stripslashes($text);
if ($mail_function == 1)
{
email("mcgallerypro", $email, $subject, $text);
}
else
{
mail($email, $subject, $text, "From: $email_admin");
}
echo '<p align="center"><br><br><br><br><font size="2">Message sent</font></p>';
echo '<p align="center"><a href="#" onclick="javascript:window.close()" class="lien1"><b>OK</b></a></p>';
echo '</body></html>';
exit();
}
else
{
$query="SELECT login, password, email FROM mcgallery_members WHERE id = $id";
$result=mysql_query($query);
$row = mysql_fetch_array($result);
$email = $row['email'];
$titlepop = 'Contact '.$row['login'];
?>
<form method="post" action="mailto_member.php">
<table border="0" cellspacing="0" align="center" bgcolor="black">
<tr>
<td align="center" bgcolor="black" colspan="2"><font face="verdana, arial" size="2" color="white"><?php echo $titlepop; ?></font></td>
</tr>
<tr>
<td align="right" bgcolor="#DDDDDD"><font size="1">Subject </font></td>
<td bgcolor="#DDDDDD"><input type="text" size="22" name="subject" value="<?php echo $subject; ?>"></td>
</tr>
<tr>
<td align="center" bgcolor="#DDDDDD" colspan="2"><textarea cols="40" rows="14" name="text"><?php echo ucfirst($l_login).': '.$row['login']."\n".$l_Pass.': '.$row['password']; ?></textarea></td>
</tr>
<tr>
<td align="center" bgcolor="#DDDDDD" colspan="2">
<input type="hidden" name="id" value="<?php echo $id; ?>">
<input type="hidden" name="email" value="<?php echo $email; ?>">
<input type="submit" name="submit" value="OK">
</td>
</tr>
</table>
</form>
<?php
}
?>
</body>
</html>