"; $main= " $sitename Chapel
"; $main= "\"Chapel\"/
"; $main= "Welcome To $sitename Chapel.
"; $main= "Marry that special someone online.

"; $couple = mysql_fetch_array(mysql_query("SELECT who, partner, req FROM couple WHERE partner='".$uid."'")); if($couple[2]=='1') { $unick = getnick_uid($couple[1]); $nick = getnick_uid($couple[0]); $nopl = mysql_fetch_array(mysql_query("SELECT sex FROM users WHERE id='".$couple[0]."'")); if($nopl[0]=='M') { $usex = "Husband"; }else if($nopl[0]=='F'){ $usex = "Wife"; }else{ $usex = "Partner"; } echo "Marriage Between $unick and $nick

"; echo "Your Only one step away from Marrying your true love. All you need to do is read and accept the vows below

"; echo "$unick, do you take user to be your wedded $usex to live together in marriage.
"; echo "Do you promise to love, comfort, honor and keep
"; echo "For better or worse, for richer or poorer, in sickness and in health.
"; echo "And forsaking all others, be faithful only to
"; echo "so long as you both shall live?

"; echo "Yes, I Do
"; echo "Sorry, I Dont

"; }else{ echo "To Begin Please Enter The Nickname Of The User You Want to Marry, A PM will be sent
"; echo "To them asking if they wish to marry you and inviting them to the chapel to complete the service.
"; echo "By Sending the message below you agree to the below vows also

"; $nick = getnick_sid($sid); echo "$nick, do you take $unick, to be your wedded [wife/husband] to live together in marriage.
"; echo "Do you promise to love, comfort, honor and keep [him/her]
"; echo "For better or worse, for richer or poorer, in sickness and in health.
"; echo "And forsaking all others, be faithful only to
"; echo "[him/her] so long as you both shall live?

"; $whonick = getnick_uid($who); echo "
"; echo "
Username:
"; //echo ""; echo "
"; } $rukiya = mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM couple WHERE (who='".$uid."' OR partner='".$uid."') AND accept='1'")); if ($rukiya[0]=="1") { echo "
Divorce!

"; } echo "
Please Note: This Marriage IS NOT Legally Binding

"; $L6="$zerokey\"\"/Main Menu"; echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,$L6,0,0,$main); echo foot_tag(); exit; } else if($action=="getreq") { addonline(getuid_sid($sid),"$sitename Chapel ($mmsg)",""); echo ""; echo "

"; $usr = $_POST["usr"]; $usr = mysql_real_escape_string($usr); $usr = getuid_nick($usr); $we = mysql_fetch_array(mysql_query("SELECT who, partner, accept, req FROM couple WHERE who='".$uid."'")); if($we[2]=='1') { $wer = getnick_uid($we[1]); echo "You're already married to $wer!

"; $L6="$zerokey\"\"/Main Menu"; echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,$L6,0,0,$main); echo foot_tag(); exit; } $me = mysql_fetch_array(mysql_query("SELECT who, partner, accept, req FROM couple WHERE partner='".$uid."'")); if($me[2]=='1') { $sya = getnick_uid($me[0]); echo "You're already married to $sya!

"; echo "Main Menu"; echo "

"; echo ""; echo ""; exit(); } $sex1 = mysql_fetch_array(mysql_query("SELECT sex FROM profiles WHERE id='".$uid."'")); $sex2 = mysql_fetch_array(mysql_query("SELECT sex FROM profiles WHERE id='".$usr."'")); if($usr==0) { echo "User Does Not exist
"; }else if($usr==$uid) { echo "lol.. Why do you wanna marry yourself? PMPL..
"; echo "back
"; } elseif($sex1[0]!=$sex2[0]) { $whonick = getnick_uid($usr); $couple = mysql_fetch_array(mysql_query("SELECT who, partner, accept, req FROM couple WHERE partner='".$usr."'")); if($couple[2]=='1') { $sya = getnick_uid($couple[0]); echo "$whonick is already married to $sya. Try your luck to other users!

"; } $byuid = getuid_sid($sid); $tm = time(); if((!isignored($byuid, $who))&&(!istrashed($byuid))) { $unick = getnick_uid($uid); $pmtext = "(bemine) $unick would like to To ask For your hand in marriage, to accept or refuse visit the chapel link in the site main page [br/][small]p.s: this is an automatic pm[/small]"; $res = mysql_query("INSERT INTO ibwf_private SET text='".$pmtext."', byuid='".$byuid."', touid='".$usr."', timesent='".$tm."'"); }else{ $res = true; } if($res) { echo " $sitename Chapel"; echo "
Here You Can Get Married Online.

"; echo "Marriage Request was sent successfully to $whonick
"; echo "Please wait for a response

"; echo "Please Note: This Marriage IS NOT Legally Binding
"; mysql_query("INSERT INTO couple SET req='1', partner='".$usr."', who='".$uid."', time='".time()."'"); }else{ echo "Can't Send your Request to $whonick

"; } } echo "Main Menu"; echo "

"; echo ""; } else if($action=="reqacc") { $who = $_GET["who"]; addonline(getuid_sid($sid),"$sitename Chapel ($mmsg)",""); echo ""; echo "

"; echo " $sitename Chapel

"; $byuid = getuid_sid($sid); $nick = getnick_uid($uid); echo "Congratulations! You are Marriage To $nick Is Complete. We Hope You Are Both Happy in your new Relationship.

"; $msg = "Congratulations! You are Marriage To $nick Is Complete. We Hope You Are Both Happy in your new Relationship [br/][small]p.s: this is an automatic pm[/small]"; mysql_query("INSERT INTO ibwf_private SET text='".$msg."', byuid='".$byuid."', touid='".$who."', unread='1', timesent='".time()."'"); mysql_query("UPDATE couple SET accept='1', req='2', joined='".time()."' WHERE partner='".$uid."' AND who='".$who."'"); $nick = getnick_uid($who); $byuid = getuid_sid($sid); $unick = getnick_uid($byuid); $fmsg = "$nick and I just get married!"; mysql_query("UPDATE ibwf_users SET shouts='".$fmsg."' WHERE id='".$byuid."'"); echo "Please Note: This Marriage IS NOT Legally Binding
"; echo "Main Menu"; echo "

"; echo ""; } else if($action=="reqref") { $who = $_GET["who"]; addonline(getuid_sid($sid),"$sitename Chapel ($mmsg)",""); echo ""; echo "

"; echo " $sitename Chapel

"; $nick = getnick_uid($who); echo "Ohh.. We are sorry to hear about Your Decision, your proposer has been informed of your decison, thank you.

"; $byuid = getuid_sid($sid); $couple = mysql_fetch_array(mysql_query("SELECT who, partner FROM couple WHERE partner='".$uid."'")); $msg = "Sorry, $nick has refused your proposal.(blink) we are sorry to hear this, but feel free to try again at a later date [small]p.s: this is an automatic pm[/small]"; mysql_query("INSERT INTO inbox SET text='".$msg."', byuid='".$byuid."', touid='".$couple[0]."', unread='1', timesent='".time()."'"); $res = mysql_query("DELETE FROM couple WHERE partner='".$uid."' AND who='".$couple[0]."'"); echo "Please Note: This Marriage IS NOT Legally Binding
"; echo "Main Menu"; echo "

"; echo ""; }else if($action=="div") { addonline(getuid_sid($sid),"$sitename Chapel ($mmsg)",""); echo ""; echo "

"; //$me = mysql_fetch_array(mysql_query("SELECT who, partner, accept, req FROM couple WHERE who ='".$uid."'")); $me = mysql_fetch_array(mysql_query("SELECT who,partner FROM couple WHERE who='".$uid."' OR partner='".$uid."'")); //$you = mysql_fetch_array(mysql_query("SELECT who, partner, accept, req FROM couple WHERE partner ='".$uid."'")); $nick = getnick_uid($me[0]); $unick = getnick_uid($me[1]); if($uid==$me[0]) { echo "Do you really want to divorce $unick ?"; } if($uid==$me[1]) { echo "Do you really want to divorce $nick ?"; } $wed = mysql_fetch_array(mysql_query("SELECT partner FROM couple WHERE who='".$uid."'")); if (!$wed) { $wed = mysql_fetch_array(mysql_query("SELECT who FROM couple WHERE partner='".$uid."'")); } $who = $wed[0]; echo "

"; echo ""; echo "
"; echo "
No

----

"; echo "
Main Menu
"; echo "

"; echo ""; }else if($action=="sep") { addonline(getuid_sid($sid),"$sitename Chapel ($mmsg)",""); echo ""; echo "

"; $who = $_POST["who"]; $uid = getuid_sid($sid); $res = mysql_query("DELETE FROM couple WHERE who='".$uid."' OR partner='".$uid."'"); $res = mysql_query("DELETE FROM couple WHERE who='".$who."' OR partner='".$who."'"); if($res) { $nick = getnick_uid($who); $nic = getnick_uid($uid); $msg = "A very sad news for you:( ! $nic has devorced you.We are extreamly sorry for the broke up (gifimage34). Be patient![br/][small]p.s: this is an automatic pm[/small]"; mysql_query("INSERT INTO inbox SET text='".$msg."', byuid='".$uid."', touid='".$who."', unread='1', timesent='".time()."'"); echo "You have successfully divorced $nick !

"; }else{ echo "Database Error!

"; } echo "Main Menu"; echo "

"; echo ""; } /////////////////////////////Error///////////////////////////// else{ addonline(getuid_sid($sid),"Lost in Chapel lol ($mmsg)",""); echo ""; echo "

"; echo "I don't know how did you get into here, but there's nothing to show

"; echo "Main Menu"; echo ""; echo ""; } ?>