Chapel Help

Started on the old forum in June 2008 · view the original in the archive · old links redirect here

46 replies · 3,056 views · started 18 years ago · 1 min read

TL;DR · summary of 46 replies
  • - The issue with the request message not disappearing after a user accepts it lies in the SQL structure for the couple table.
  • - A possible fix could involve updating the divorce code, which currently lacks modifications.
  • - The original script by WhiteWarrior works perfectly but the request message persists even after accepting.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

8 participants
thanatos Senior · 261 posts #22

is divorce sql wrong bru?

its working.. but need some modifications..

inet Senior · 264 posts #24

just use the thing like in the setting

$sitename=mysqlquery--

$married=mysqlquery--

just made my version of thanatos script 100 percent working..

in user profile

MarriedinWap: $married


i decided to not to go to school

Services

Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?

Below is a list of services I offer:

Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.

Rates

General consulting – My current hourly rate is $100 / hour. Custom Wapsite Community - My current rate is $500 / Wap Community Development.

thanatos Senior · 261 posts #25

bro how to show married to user in prifiee?

$couple = mysql_fetch_array(mysql_query("SELECT accept, who, partner FROM couple WHERE who='".$who."'"));
  if($couple[0]=='1')
  {
  $unick = getnick_uid($couple[2]);
  echo "$whonick is married to $unick 
";
  }
$couples = mysql_fetch_array(mysql_query("SELECT accept, who, partner FROM couple WHERE partner='".$who."'"));
 if($couples[0]=='1')
  {
  $nick = getnick_uid($couples[1]);
  echo "$whonick is married to $nick 
";
  }

simple as that... just select the info you want in the database External image (may be gone)

learner you must strive to learn php and code your own script External image (may be gone)

inet Senior · 264 posts #27

those who cant code something by yourself are not wapmasters

nope all of us are learning always..

some or others have the ideas and code by themselves

but if others dont have the big idea, they will ask help..

thats learning..

Services

Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?

Below is a list of services I offer:

Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.

Rates

General consulting – My current hourly rate is $100 / hour. Custom Wapsite Community - My current rate is $500 / Wap Community Development.

learner Lead · 587 posts #28

bru i convert it to html but it say user not forund what wrong i do?

<?php include("blocked.php"); include("config.php"); include("core.php"); connectdb(); $action=$_GET["action"]; $id=$_GET["id"]; $sid = $_GET["sid"]; $rid=$_GET["rid"]; $rpw=$_GET["rpw"]; $brws = explode(" ",$HTTP_USER_AGENT); $ubr = $brws[0]; $uip = getip(); $who = $_GET["who"]; $uid = getuid_sid($sid); echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n"; echo "<head>\n"; echo "<title>Natasu</title>"; echo "<meta http-equiv=\"Cache-Control\" content=\"max-age=0\">\n"; echo "</head>\n"; echo "<body>\n"; $bcon = connectdb(); if (!$bcon) { echo "<img src=\"images/exit.gif\" alt=\"*\"/> "; echo "ERROR! cannot connect to database "; echo "This error happens usually when backing up the database, please be patient, The site will be up any minute "; echo "you can temperoray be in this site <a href=\"http://chatheaven.wen.ru\">$site_name</a> while $site_name is offline "; echo "**THANK YOU VERY MUCH**"; echo " "; echo "</html>"; echo "</body>"; exit(); } $brws = explode(" ",$_SERVER[HTTP_USER_AGENT] ); $ubr = $brws[0]; $uip = getip(); $action = $_GET["action"]; $sid = $_GET["sid"]; $page = $_GET["page"]; $who = $_GET["who"]; $uid = getuid_sid($sid); cleardata(); if(isipbanned($uip,$ubr)) { if(!isshield(getuid_sid($sid))) { echo " "; echo "<img src=\"images/notok.gif\" alt=\"x\"/> "; echo "This IP address is blocked "; echo " "; echo "How ever we grant a shield against IP-Ban for our great users, you can try to see if you are shielded by trying to log-in, if you kept coming to this page that means you are not shielded, so come back when the ip-ban period is over "; $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM ibwf_penalties WHERE penalty='2' AND ipadd='".$uip."' AND browserm='".$ubr."' LIMIT 1 ")); //echo mysql_error(); $remain = $banto[0] - time(); $rmsg = gettimemsg($remain); echo " IP: $rmsg "; echo " "; echo " "; echo "<form align=\"left\" action=\"login.php\" method=\"post\" ENCTYPE=\"multipart/form-data\">"; echo "UserID: <input name=\"loguid\" format=\"*x\" maxlength=\"30\"/> "; echo "Password: <input type=\"password\" name=\"logpwd\" maxlength=\"30\"/> "; echo "<postfield name=\"loguid\" value=\"$(loguid)\"/>"; echo "<postfield name=\"logpwd\" value=\"$(logpwd)\"/>"; echo "<input type=\"submit\" value=\"Login!\"/> "; echo "</form>"; echo " "; echo "</body>"; echo "</html>"; exit(); } } if ($ipban) { echo " "; echo "<img src=\"images/notok.gif\" alt=\"x\"/> "; echo "Hacker we dont like your is IP BANNED FOREVER. "; echo " "; exit(); } if($action=="chapel") { addonline(getuid_sid($sid),"WAP Chapel",""); echo " "; echo "**Natasu Chapel** "; echo "<img src=\"smilies/pop.gif\" alt=\"*\"/> "; echo "Welcome To Natasu WAP Online Chapel. "; echo "Here You Can Get Married 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 ibwf_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 $nick 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 "<a href=\"chapel.php?action=reqacc&amp;sid=$sid&amp;who=$couple[0]\">I Do</a> "; echo "<a href=\"chapel.php?action=reqref&amp;sid=$sid&amp;who=$couple[1]\">Sorry, I Dont</a> "; }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 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 "Username: <input name=\"usr\" maxlength=\"25\"/> "; echo "<form action=\"chapel.php?action=getreq&amp;sid=$sid\" method=\"post\">"; echo "<input type=\"hidden\" name=\"usr\" value=\"$(usr)\"/>"; echo "<input type=\"submit\" name=\"submit\" value=\"I Do\"></form> "; } echo "<a href=\"chapel.php?action=div&amp;sid=$sid\">Divorce!</a> "; echo "Please Note: This Marriage IS NOT Legally Binding "; echo "<a href=\"index.php?action=main&amp;sid=$sid\">Main Menu</a>"; echo " "; echo "</body>"; } else if($action=="getreq") { addonline(getuid_sid($sid),"WAP Chapel",""); echo " "; $usr = $_POST["usr"]; $who = 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! "; echo "<a href=\"index.php?action=main&amp;sid=$sid\">Main Menu</a>"; echo " "; echo "</body>"; echo "</html>"; 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 "<a href=\"index.php?action=main&amp;sid=$sid\">Main Menu</a>"; echo " "; echo "</body>"; echo "</html>"; exit(); } if($who==0) { echo "User Does Not exist "; }else if($who==$uid) { echo "lol.. Why do you wanna marry yourself? PMPL.. "; }else{ $whonick = getnick_uid($who); $couple = mysql_fetch_array(mysql_query("SELECT who, partner, accept, req FROM couple WHERE partner='".$who."'")); 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 = "-kisslips- $unick would like to To ask For your hand in marriage, to accept or refuse visit the chapel link in the site main page [small]*p.s: this is an automatic pm*[/small]"; $res = mysql_query("INSERT INTO ibwf_private SET text='".$pmtext."', byuid='".$byuid."', touid='".$who."', timesent='".$tm."'"); }else{ $res = true; } if($res) { echo "**Natasu WAP 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='".$who."', who='".$uid."', time='".time()."'"); }else{ echo "Can't Send your Request to $whonick "; } } echo "<a href=\"index.php?action=main&amp;sid=$sid\">Main Menu</a>"; echo " "; echo "</body>"; } else if($action=="reqacc") { $who = $_GET["who"]; addonline(getuid_sid($sid),"WAP Chapel",""); echo " "; echo "**Natasu WAP Chapel** "; $nick = getnick_uid($who); echo "Congratulations! Your Marriage To $nick Is Complete. We Hope You Are Both Happy in your new Relationship. "; $byuid = getuid_sid($sid); $msg = "Congratulations! Your Marriage To $nick Is Complete. We Hope You Are Both Happy in your new Relationship [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 "<a href=\"index.php?action=main&amp;sid=$sid\">Main Menu</a>"; echo " "; echo "</body>"; } else if($action=="reqref") { $who = $_GET["who"]; addonline(getuid_sid($sid),"WAP Chapel",""); echo " "; echo "**Natasu WAP 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. 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 ibwf_private 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 "<a href=\"index.php?action=main&amp;sid=$sid\">Main Menu</a>"; echo " "; echo "</body>"; }else if($action=="div") { addonline(getuid_sid($sid),"WAP Chapel",""); echo " "; $me = mysql_fetch_array(mysql_query("SELECT who, partner, accept, req FROM couple WHERE who='".$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($you[1]); if($uid==$me[0]) { echo "Do you really want to divorce $unick? ----- "; } if($uid==$you[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 "<anchor>Yes"; echo "<go href=\"chapel.php?action=sep&amp;sid=$sid\" method=\"post\">"; echo "<postfield name=\"who\" value=\"$(who)\"/>"; echo "</go></anchor> "; echo "<a href=\"chapel.php?action=chapel&amp;sid=$sid\">No</a> ---- "; echo "<a href=\"index.php?action=main&amp;sid=$sid\">Main Menu</a>"; echo " "; echo "</body>"; }else if($action=="sep") { addonline(getuid_sid($sid),"WAP Chapel",""); echo " "; $who = $_POST["who"]; $uid = getuid_sid($sid); $res = mysql_query("DELETE FROM couple WHERE who='".$uid."' OR partner='".$uid."'"); if($res) { $nick = getnick_uid($who); echo "You have successfully divorced $nick! "; }else{ echo "Database Error! "; } echo "<a href=\"index.php?action=main&amp;sid=$sid\">Main Menu</a>"; echo " "; echo "</body>"; } /////////////////////////////Error///////////////////////////// else { echo " "; echo "You are not logged in "; echo "Or Your session has been expired "; echo "<a href=\"../web/index.php\">Login</a>"; echo " "; echo "</body>"; echo "</html>"; } ?> </html>

Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

BEST MOBILE ADVERTISER

External image (may be gone)

thanatos Senior · 261 posts #29

echo "<form action="chapel.php?action=getreq&sid=$sid" method="post">"; echo "Username: <input name="usr" maxlength="25"/> "; echo "<input type="hidden" name="usr" value="$(usr)"/>"; echo "<input type="submit" name="submit" value="I Do"></form>

";

//////////////////////////////////////////////////////////////////////

echo "<form action="chapel.php?action=sep&sid=$sid" method="post">"; echo "<input type="hidden" name="who" value="$(who)"/>"; echo "<input type="submit" name="submit" value="Yes"></form>

";

inet Senior · 264 posts #31

u are great bru

thanatos and min0taur are great!

they are the first wapmasters in our country.. tnt

Services

Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?

Below is a list of services I offer:

Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.

Rates

General consulting – My current hourly rate is $100 / hour. Custom Wapsite Community - My current rate is $500 / Wap Community Development.

thanatos Senior · 261 posts #32

thanatos and min0taur are great!

they are the first wapmasters in our country.. tnt

nope minotaur is first.. i think second is gambit.. third is denverporia.. im only fourth.. External image (may be gone)

inet Senior · 264 posts #33

nope minotaur is first.. second is denverporia.. im only third.. External image (may be gone)

ha is that true?

all i thought denverporia has no site at all.. can you give his link?

or is he the admin of cryptic?

Services

Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?

Below is a list of services I offer:

Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.

Rates

General consulting – My current hourly rate is $100 / hour. Custom Wapsite Community - My current rate is $500 / Wap Community Development.

inet Senior · 264 posts #35

here my version of wapjueteng

Services

Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?

Below is a list of services I offer:

Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.

Rates

General consulting – My current hourly rate is $100 / hour. Custom Wapsite Community - My current rate is $500 / Wap Community Development.

Attachments: untitled.bmp
jayasanka Developer · 128 posts #36
<?php

header("Cache-Control: no-cache, must-revalidate");            // Prevent caching, HTTP/1.1
header("Pragma: no-cache");
//header('Content-type: application/vnd.wap.xhtml+xml'); 
echo "<?xml version=\"1.0\"?>";
echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<?php
include("../blocked.php");
include("config.php");
include("core.php");
connectdb();
$action=$_GET["action"];
$id=$_GET["id"];
$sid = $_GET["sid"];
$rid=$_GET["rid"];
$rpw=$_GET["rpw"];
$brws = explode(" ",$HTTP_USER_AGENT);
$ubr = $brws[0];
$uip = getip();
$who = $_GET["who"]; $uid = getuid_sid($sid); echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n";
echo "<head>\n";
echo "<title>WebLK</title>";
echo "<meta http-equiv=\"Cache-Control\" content=\"max-age=0\">\n";

echo "</head>\n";
echo "<body>\n";

$bcon = connectdb();
if (!$bcon)
{
echo "<img src=\"../images/exit.gif\" alt=\"*\"/>
";
echo "ERROR! cannot connect to database

";
echo "This error happens usually when backing up the database, please be patient, The site will be up any minute

";
echo "you can temperoray be in this site <a href=\"http://chatheaven.wen.ru\">$site_name</a> while $site_name is offline
";
echo "[b]THANK YOU VERY MUCH[/b]";
echo "</p>";
echo "</html>";
echo "</body>";
exit();
}
$brws = explode(" ",$_SERVER[HTTP_USER_AGENT] );
$ubr = $brws[0];
$uip = getip();
$action = $_GET["action"];
$sid = $_GET["sid"];
$page = $_GET["page"];
$who = $_GET["who"];

$uid = getuid_sid($sid);

cleardata();
if(isipbanned($uip,$ubr))
{
if(!isshield(getuid_sid($sid)))
{
echo "<p align=\"center\">";
echo "<img src=\"../images/notok.gif\" alt=\"x\"/>
";
echo "This IP address is blocked
";
echo "
";
echo "How ever we grant a shield against IP-Ban for our great users, you can try to see if you are shielded by trying to log-in, if you kept coming to this page that means you are not shielded, so come back when the ip-ban period is over

";
$banto = mysql_fetch_array(mysql_query("SELECT timeto FROM ibwf_penalties WHERE penalty='2' AND ipadd='".$uip."' AND browserm='".$ubr."' LIMIT 1 "));
//echo mysql_error();
$remain = $banto[0] - time();
$rmsg = gettimemsg($remain);
echo " IP: $rmsg

";

echo "</p>";
echo "

";
echo "<form align=\"left\" action=\"login.php\" method=\"post\" ENCTYPE=\"multipart/form-data\">";

echo "UserID: <input name=\"loguid\" format=\"*x\" maxlength=\"30\"/>
";
echo "Password: <input type=\"password\" name=\"logpwd\" maxlength=\"30\"/>
";
echo "<postfield name=\"loguid\" value=\"$(loguid)\"/>";
echo "<postfield name=\"logpwd\" value=\"$(logpwd)\"/>";
echo "<input type=\"submit\" value=\"Login!\"/>
";
echo "</form>";
echo "</p>";
echo "</body>";
echo "</html>";
exit();
}
}
if ($ipban)
{

echo "<p align=\"center\">";
echo "<img src=\"../images/notok.gif\" alt=\"x\"/>
";
echo "Hacker we dont like your is IP BANNED FOREVER.
";
echo "
";
exit();
}

if($action=="chapel")
{
addonline(getuid_sid($sid),"WAP Chapel","");
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
echo "<p align=\"center\">";
echo "[u][b]Natasu Chapel[/b][/u]
";
echo "<img src=\"../images/wed.jpg\" alt=\"Chapel\"/>
";
echo "Welcome To Natasu WAP Online Chapel. 
";
echo "Here You Can Get Married 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 ibwf_users WHERE id='".$couple[0]."'"));
if($nopl[0]=='M')
{
$usex = "Husband";
}else if($nopl[0]=='F'){
$usex = "Wife";
}else{
$usex = "Partner";
}

echo "[b]Marriage Between $unick and $nick[/b]

";
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 $nick 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 "<a href=\"chapel.php?action=reqacc&sid=$sid&who=$couple[0]\">I Do</a>
";
echo "<a href=\"chapel.php?action=reqref&sid=$sid&who=$couple[1]\">Sorry, I Dont</a>

";

}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 [user] 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 "<form action=\"chapel.php?action=getreq&sid=$sid\" method=\"post\">";
echo "Username:
<input name=\"usr\" maxlength=\"25\"/>
";
echo "<input type=\"hidden\" name=\"usr\" value=\"$(usr)\"/>";
echo "<input type=\"submit\" name=\"submit\" value=\"I Do\"></form>

";

}
echo "<a href=\"chapel.php?action=div&sid=$sid\">Divorce!</a>
";
echo "[size="1"]Please Note: This Marriage IS NOT Legally Binding[/size]
";
echo "<a href=\"index.php?action=main&sid=$sid\">Main Menu</a>";
echo "</p>";
echo "</body>";
}

else if($action=="getreq")
{
addonline(getuid_sid($sid),"WAP Chapel","");
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
echo "<p align=\"center\">";
$usr = $_POST["usr"];
$who = 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!

";
echo "<a href=\"index.php?action=main&sid=$sid\">Main Menu</a>";
echo "</p>";
echo "</body>";
echo "</html>";
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 "<a href=\"index.php?action=main&sid=$sid\">Main Menu</a>";
echo "</p>";
echo "</body>";
echo "</html>";
exit();
}

if($who==0)
{
echo "User Does Not exist
";
}else if($who==$uid)
{
echo "lol.. Why do you wanna marry yourself? PMPL..

";
}else{

$whonick = getnick_uid($who);
$couple = mysql_fetch_array(mysql_query("SELECT who, partner, accept, req FROM couple WHERE partner='".$who."'"));
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 = "-kisslips- $unick would like to To ask For your hand in marriage, to accept or refuse visit the chapel link in the site main page [small]p.s: this is an automatic pm Natasu Staff[/small]";
$res = mysql_query("INSERT INTO ibwf_private SET text='".$pmtext."', byuid='".$byuid."', touid='".$who."', timesent='".$tm."'");
}else{
$res = true;
}
if($res)
{
echo "[u][b]Natasu WAP Chapel[/b][/u]";
echo "
Here You Can Get Married Online.

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

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

";
}
}

echo "<a href=\"index.php?action=main&sid=$sid\">Main Menu</a>";
echo "</p>";
echo "</body>";
}
else if($action=="reqacc")
{
$who = $_GET["who"];
addonline(getuid_sid($sid),"WAP Chapel","");
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
echo "<p align=\"center\">";
echo "[b]Natasu WAP Chapel[/b]

";
$nick = getnick_uid($who);
echo "Congratulations! Your Marriage To $nick Is Complete. We Hope You Are Both Happy in your new Relationship.

";
$byuid = getuid_sid($sid);
$msg = "Congratulations! Your Marriage To $nick Is Complete. We Hope You Are Both Happy in your new Relationship [small]p.s: this is an automatic pm Natasu Staff[/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 "[size="1"]Please Note: This Marriage IS NOT Legally Binding[/size]
";
echo "<a href=\"index.php?action=main&sid=$sid\">Main Menu</a>";
echo "</p>";
echo "</body>";
}

else if($action=="reqref")
{
$who = $_GET["who"];
addonline(getuid_sid($sid),"WAP Chapel","");
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
echo "<p align=\"center\">";
echo "[b]Natasu WAP Chapel[/b]

";
$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. 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 ibwf_private 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 "[size="1"]Please Note: This Marriage IS NOT Legally Binding[/size]
";
echo "<a href=\"index.php?action=main&sid=$sid\">Main Menu</a>";
echo "</p>";
echo "</body>";
}else if($action=="div")
{
addonline(getuid_sid($sid),"WAP Chapel","");
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
echo "<p align=\"center\">";
$me = mysql_fetch_array(mysql_query("SELECT who, partner, accept, req FROM couple WHERE who='".$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($you[1]);

if($uid==$me[0])
{
echo "Do you really want to divorce $unick? 
-----
";
}

if($uid==$you[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 "<form action=\"chapel.php?action=sep&sid=$sid\" method=\"post\">";
echo "<input type=\"hidden\" name=\"who\" value=\"$(who)\"/>";
echo "<input type=\"submit\" name=\"submit\" value=\"Yes\"></form>

";
echo "<a href=\"chapel.php?action=chapel&sid=$sid\">No</a>
----
";
echo "<a href=\"index.php?action=main&sid=$sid\">Main Menu</a>";
echo "</p>";
echo "</body>";
}else if($action=="sep")
{
addonline(getuid_sid($sid),"WAP Chapel","");
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
echo "<p align=\"center\">";
$who = $_POST["who"];
$uid = getuid_sid($sid);
$res = mysql_query("DELETE FROM couple WHERE who='".$uid."' OR partner='".$uid."'");

if($res)
{
$nick = getnick_uid($who);
echo "You have successfully divorced $nick!

";
}else{
echo "Database Error!

";

}
echo "<a href=\"index.php?action=main&sid=$sid\">Main Menu</a>";
echo "</p>";
echo "</body>";
}
/////////////////////////////Error/////////////////////////////

else
{

echo "<p align=\"center\">";
echo "You are not logged in
";
echo "Or Your session has been expired

";
echo "<a href=\"../web/index.php\">Login</a>";
echo "</p>";

echo "</body>";
echo "</html>";
}
?>

</html>

when i Reqvest nick get error html mode. User Does Not exist

how do i fix

jayasanka Developer · 128 posts #37
<?php

header("Content-type: text/vnd.wap.wml");
header("Cache-Control: no-store, no-cache, must-revalidate");
echo("<?xml version=\"1.0\"?>");
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
?>
<wml>
<?php
include("config.php");
include("core.php");
connectdb();
$action = $_GET["action"];
$sid = $_GET["sid"];
$who = $_GET["who"];
if(islogged($sid)==false)
{
    echo "<card id=\"main\" title=\"Natasu\">";
      echo "<p align=\"center\">";
      echo "You are not logged in
";
      echo "Or Your session has been expired

";
      echo "<a href=\"index.php\">Login</a>";
      echo "</p>";
      echo "</card>";
      echo "</wml>";
      exit();
}
$uid = getuid_sid($sid);
if(isbanned($uid))
    {
        echo "<card id=\"main\" title=\"Natasu\">";
      echo "<p align=\"center\">";
      echo "<img src=\"images/notok.gif\" alt=\"x\"/>
";
      echo "You are Banned
";
      $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM ibwf_penalties WHERE uid='".$uid."' AND penalty='1'"));
      $remain = $banto[0]- time();
      $rmsg = gettimemsg($remain);
      echo "Time to finish your penalty: $rmsg

";
      //echo "<a href=\"index.php\">Login</a>";
      echo "</p>";
      echo "</card>";
      echo "</wml>";
      exit();
    }
if($action=="chapel")
{
  addonline(getuid_sid($sid),"WAP Chapel","");
  echo "<card id=\"main\" title=\"Chapel\">";
  echo "<p align=\"center\">";
  echo "Natasu Chapel
";
  echo "<img src=\"smilies/pop.gif\" alt=\"*\"/>
";
  echo "Welcome To Natasu WAP Online Chapel. 
";
  echo "Here You Can Get Married 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 ibwf_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 $nick 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 "<a href=\"chapel.php?action=reqacc&sid=$sid&who=$couple[0]\">I Do</a>
";
  echo "<a href=\"chapel.php?action=reqref&sid=$sid&who=$couple[1]\">Sorry, I Dont</a>

";

  }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  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 "Username:
<input name=\"usr\" maxlength=\"25\"/>
";
  echo "<anchor>I Do<go href=\"chapel.php?action=getreq&sid=$sid\" method=\"post\">";
  echo "<postfield name=\"usr\" value=\"$(usr)\"/></go></anchor>

";
  }
  echo "<a href=\"chapel.php?action=div&sid=$sid\">Divorce!</a>
";
  echo "Please Note: This Marriage IS NOT Legally Binding
";
  echo "<a href=\"index.php?action=main&sid=$sid\">Main Menu</a>";
  echo "</p>";
  echo "</card>";
}

else if($action=="getreq")
{
  addonline(getuid_sid($sid),"WAP Chapel","");
  echo "<card id=\"main\" title=\"Chapel\">";
  echo "<p align=\"center\">";
  $usr = $_POST["usr"];
  $who = 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!

";
        echo "<a href=\"index.php?action=main&sid=$sid\">Main Menu</a>";
        echo "</p>";
        echo "</card>";
        echo "</wml>";
        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 "<a href=\"index.php?action=main&sid=$sid\">Main Menu</a>";
        echo "</p>";
        echo "</card>";
        echo "</wml>";
        exit();
       }

    if($who==0)
    {
      echo "User Does Not exist
";
    }else if($who==$uid)
    {
      echo "lol.. Why do you wanna marry yourself? PMPL..

";
    }else{

  $whonick = getnick_uid($who);
$couple = mysql_fetch_array(mysql_query("SELECT who, partner, accept, req FROM couple WHERE partner='".$who."'"));
     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 = "-kisslips- $unick would like to To ask For your hand in marriage, to accept or refuse visit the chapel link in the site main page [small]p.s: this is an automatic pm[/small]";
  $res = mysql_query("INSERT INTO ibwf_private SET text='".$pmtext."', byuid='".$byuid."', touid='".$who."', timesent='".$tm."'");
     }else{
    $res = true;
     }  
  if($res)
  {
    echo "Natasu WAP 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='".$who."', who='".$uid."', time='".time()."'");
  }else{
    echo "Can't Send your Request to $whonick

";
  }
}

  echo "<a href=\"index.php?action=main&sid=$sid\">Main Menu</a>";
  echo "</p>";
  echo "</card>";
}
else if($action=="reqacc")
{
  $who = $_GET["who"];
  addonline(getuid_sid($sid),"WAP Chapel","");
  echo "<card id=\"main\" title=\"Chapel\">";
  echo "<p align=\"center\">";
  echo "Natasu WAP Chapel

";
  $nick = getnick_uid($who);
  echo "Congratulations! Your Marriage To $nick Is Complete. We Hope You Are Both Happy in your new Relationship.

";
  $byuid = getuid_sid($sid);
  $msg = "Congratulations! Your Marriage To $nick Is Complete. We Hope You Are Both Happy in your new Relationship [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 "<a href=\"index.php?action=main&sid=$sid\">Main Menu</a>";
  echo "</p>";
  echo "</card>";
}

else if($action=="reqref")
{
  $who = $_GET["who"];
  addonline(getuid_sid($sid),"WAP Chapel","");
  echo "<card id=\"main\" title=\"Chapel\">";
  echo "<p align=\"center\">";
  echo "Natasu WAP 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. 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 ibwf_private 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 "<a href=\"index.php?action=main&sid=$sid\">Main Menu</a>";
  echo "</p>";
  echo "</card>";
}else if($action=="div")
{
addonline(getuid_sid($sid),"WAP Chapel","");
  echo "<card id=\"main\" title=\"Chapel\">";
  echo "<p align=\"center\">";
  $me = mysql_fetch_array(mysql_query("SELECT who, partner, accept, req FROM couple WHERE who='".$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($you[1]);

if($uid==$me[0])
 {
  echo "Do you really want to divorce $unick? 
-----
";
 }

if($uid==$you[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 "<anchor>Yes";
echo "<go href=\"chapel.php?action=sep&sid=$sid\" method=\"post\">";  
echo "<postfield name=\"who\" value=\"$(who)\"/>";
echo "</go></anchor>
";
echo "<a href=\"chapel.php?action=chapel&sid=$sid\">No</a>
----
";
  echo "<a href=\"index.php?action=main&sid=$sid\">Main Menu</a>";
  echo "</p>";
  echo "</card>";
}else if($action=="sep")
{
addonline(getuid_sid($sid),"WAP Chapel","");
  echo "<card id=\"main\" title=\"Chapel\">";
  echo "<p align=\"center\">";
$who = $_POST["who"];
$uid = getuid_sid($sid);
$res = mysql_query("DELETE FROM couple WHERE who='".$uid."' OR partner='".$uid."'");

if($res)
{
$nick = getnick_uid($who);
echo "You have successfully divorced $nick!

";
}else{
echo "Database Error!

";

}
  echo "<a href=\"index.php?action=main&sid=$sid\">Main Menu</a>";
  echo "</p>";
  echo "</card>";
}else{

  addonline(getuid_sid($sid),"Lost in Chapel lol","");
  echo "<card id=\"main\" title=\"Chapel\">";
  echo "<p align=\"center\">";
  echo "I don't know how did you get into here, but there's nothing to show

";
  echo "<a href=\"index.php?action=main&sid=$sid\">Main Menu</a>";
  echo "</p></card>";
}

?>

</wml>

///////////////////////////////////////////SQL


-- -- Table structure for table couple

CREATE TABLE couple ( id int(100) NOT NULL auto_increment, who int(100) NOT NULL default '0', partner int(100) NOT NULL default '0', req int(100) NOT NULL default '0', accept int(100) NOT NULL default '0', joined int(100) NOT NULL default '0', time int(100) NOT NULL default '0', PRIMARY KEY (id) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- -- Dumping data for table couple

////////////////////////////////////// i will update divorce code some other time.. External image (may be gone)

thnk you very much bro.it`s working 100%.. thnkz again.........

inet Senior · 264 posts #38

Services

Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?

Below is a list of services I offer:

Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.

Rates

General consulting – My current hourly rate is $100 / hour. Custom Wapsite Community - My current rate is $500 / Wap Community Development.

rukiya Lead · 569 posts #40

I have fixed all the bugs and updated this chapel file,its done in xhtml.

the updates are

1.divorce link only appears if any user is married

2.prevents homosexual marriage

3.changed sql query to fetch data correctly in devorce section

4.inboxes to who has been devorced

Do keep my update copyright in it as I gave you fixed and updated chapel script

Attachments: chapel.php

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close