session_start();
include("settings.php");
if ($_SESSION['currentuser']==""){
include("header.php");
echo "
You must be logged in to view profiles";
include ("footer.php");
}
if ($HTTP_GET_VARS['email'] == "yes") {
processemail();
}
global $profilemessage;
$profilenumber = $HTTP_GET_VARS['profile'];
mysql_connect("localhost", "$USERNAME", "$PASSWORD") or die(mysql_error());
mysql_select_db("marinetw_memberdatabase") or die(mysql_error());
$result = mysql_query("SELECT id, email, firstname, lastname, displayname, age, gender, ethnic, maritalstatus, location, state, country, education,
occupation, income, children, smoker, drinker, herefor, herefor1, herefor2, herefor3, aboutme, whyimhere, willingto, willingto1, willingto2, emailme
FROM members WHERE id='$profilenumber' AND personals='Yes'");
while($row = mysql_fetch_array( $result )){
$id = $row['id'];
$email = $row['email'];
$firstname = $row['firstname'];
$lastname = $row['lastname'];
$displayname = $row['displayname'];
$age = $row['age'];
$gender = $row['gender'];
$ethnic = $row['ethnic'];
$maritalstatus = $row['maritalstatus'];
$location = $row['location'];
$state = $row['state'];
$country = $row['country'];
$education = $row['education'];
$occupation = $row['occupation'];
$income = $row['income'];
$children = $row['children'];
$smoker = $row['smoker'];
$drinker = $row['drinker'];
$herefor = $row['herefor'];
$herefor1 = $row['herefor1'];
$herefor2 = $row['herefor2'];
$herefor3 = $row['herefor3'];
$aboutme = $row['aboutme'];
$whyimhere = $row['whyimhere'];
$willingto = $row['willingto'];
$willingto1 = $row['willingto1'];
$willingto2 = $row['willingto2'];
$emailme = $row['emailme'];
}
global $email;
$resultx = mysql_query("SELECT background, textcolor FROM cosmetic WHERE email='$email' ");
while($row = mysql_fetch_array( $resultx )){
$background = $row['background'];
$textcolor = $row['textcolor'];
}
$xbackgroundcolor = "blue";
define("YBACKGROUND", $background);
define("TEXT", $textcolor);
define("xBACKGROUNDCOLOR", $xbackgroundcolor);
define("TITLE", $displayname."'s Profile");
include("header.php");
?>
echo $profilemessage; ?>
echo "".$displayname."
";?>
Personal Stats: |
Age/Gender: | echo $age;?>,
echo $gender;?> |
Ethnicity: | echo $ethnic;?> |
Marital Status: | echo $maritalstatus;?> |
Location: | echo $location;?>, echo $state; ?> | |
echo $country;?> |
I'm Here For: |
if ($herefor!="") {echo $herefor." ";}
if ($herefor1!="") {echo $herefor1." ";}
if ($herefor2!="") {echo $herefor2." ";}
if ($herefor3!="") {echo $herefor3." ";} ?> |
Education: | echo $education;?> |
Occupation: | echo $occupation;?> |
Income: | echo $income;?> |
Smoker: | echo $smoker;?> |
Drinker: | echo $drinker;?> |
Children: | echo $children;?> |
|
About Me: |
echo $aboutme; ?>
| |
Why I'm Here:
|
echo $whyimhere; ?>
|
|
if($emailme == "Yes"){ ?>
}?>
Report this member
include ("footer.php"); ?>
function processemail(){
include("settings.php");
global $HTTP_POST_VARS;
global $HTTP_GET_VARS;
global $_SESSION;
global $profilemessage;
$xid = $HTTP_GET_VARS['profile'];
$thecurrentuser = $_SESSION['currentuser'];
$postedsubject = $HTTP_POST_VARS['subject'];
$postedmessage = $HTTP_POST_VARS['message'];
mysql_connect("localhost", "$USERNAME", "$PASSWORD") or die(mysql_error());
mysql_select_db("marinetw_memberdatabase") or die(mysql_error());
// Get recipient's information
$resultx = mysql_query("SELECT email FROM members WHERE id='$xid' ");
while($row = mysql_fetch_array( $resultx )){
$remail = $row['email'];
}
// Get sender's information
$result = mysql_query("SELECT id, email, displayname FROM members WHERE email='$thecurrentuser' ");
while($row = mysql_fetch_array( $result )){
$contactid = $row['id'];
$contactemail = $row['email'];
$contactdisplayname = $row['displayname'];
}
global $email;
$toAddress = $contactemail; /* Email Address Of Sender */
$subject = $postedsubject; /* Email Message Submitted By Sender */
$recipientSubject = "A Message From A Christian Polygyny Member"; /* Subject Of The Email */
$receiptMessage = "You have received a message from a Christian Polygyny member.\n\n----------Begin Message----------\n\n"
.$postedmessage."\n\n----------End Message----------\n\n".
"You are receiving this message because you have elected to receive emails from other members of Christian Polygyny. To discontinue receiving messages from members go to http://polygyny.dukeofmarshall.com/, log in, go to the My Account section and click no for \"Receive Emails?\". Do not reply to this email as this email was sent automatically by our servers and your reply email will not be received.\n\n"
."This message was sent by \nDisplay Name: $contactdisplayname \nhttp://polygyny.dukeofmarshall.com/showprofile.php?profile=$contactid
\n\n";
mail($remail, $subject, $receiptMessage,"From: profiles@polygyny.dukeofmarshall.com");
$profilemessage = "Your Message Was Sent Successfully";
mysql_close();
}
?> |