| if ($_POST['islem']=="mail"){
      }
      if ($_POST['islem']=="mesaj"){
       $temptime = time();
       $tempmtime = microtime();
       $tempid = $temptime + $tempmtime;
       $tempid=ereg_replace("\.", "", $tempid);
       $zaman_id=$tempid;
     $msg = "Subject : ".$_POST['baslik']." This message send by  ".$xmember['username']."
             Contact info is below;
             Name Surname	: ".$_SESSION['Name']."
             
             User Name	: ".$_SESSION['UserName']."
             E-mail		:".$_SESSION['UserMail']."
             ".$_POST['mesaj']."";
    $ekle = mysql_query("insert into msg (id, dizin, kimden, kime, baslik, mesaj, zaman, okundu, silindi) VALUES
    ('".$zaman_id."', '1', '".$xmember['id']."', '".$Urun['MemberId']."',
    '".$_POST['baslik']."', '".$msg."', '".Date("Y/m/d H:i:s")."', '0', '0')");
    $ekle_log = mysql_query("insert into msg_log (id, dizin, kimden, kime, baslik, mesaj, zaman, okundu, silindi) VALUES
    ('".$zaman_id."', '1', '".$xmember['id']."', '".$uyebilgi['id']."',
    '".$_POST['baslik']."', '".$msg."', '".Date("Y/m/d H:i:s")."', '0', '0')");
    echo " 
 
 
 
 Your message has been sent successfully.";
      }
      //Mesaj Bitiş
      //Mail Başlanğıç
       if ($_POST['islem']=="mail"){
       
       $mail_msg = "Subject : ".$_POST['baslik']." This message send by  ".$xmember['username']."
             Contact info is below;
             Senders Info;
             Member No	: ".$_SESSION['UserId']."
             
             Name Surname	: ".$_SESSION['Name']."
             User Name	: ".$_SESSION['UserName']."
             E-mail		: ".$_SESSION['UserMail']."
             
             Your Account;
             Member No	: ".$xmember['MemberId']."
             
             name Surname	: ".$Urun['username']."
             
             User Name	: ".$Urun['name']."
             
             E-mail 		: ".$Urun['email']."
             ".$_POST['mesaj']."";
       
       $ekle = mysql_query("insert into mail_log (id, icerik) VALUES
       ('', '".$mail_msg."')");
       $msg = "Subject : ".$_POST['baslik']." This message send by  ".$xmember['username']."
             Contact info is below;
             Name Surname	: ".$_SESSION['Name']."
             
             User Name	: ".$_SESSION['UserName']."
             
             E-mail 		:".$_SESSION['UserMail']."
             ".$_POST['mesaj']."";
             
  email($Urun['email'], "TurkeyPages.Com - ".$_POST['baslik'], $msg);
  echo "
 
 
 
 
 Your e-mail has been sent successfully.";
} // Mail Sonu
      if ($_GET['more']=="contact"){
?>
  
   
     } 
   } else {
   echo "
 You have to sign in to contact this member.Join free click here. 
     If you are a Turkeypages.com member, please  sign in";
   }
   ?>
 |