CODE<?php
//////original copy of wapple adventure changed title to Ancient Empires
/////// new games for sale just send private message to me
//////////heres my version
$version = "version: v1.0";
forsale games: whammy push your luck,wap poker online game
$adven = "whammy push your luck!";
$adven2 = "swerte!";
?>
<?php
//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("config.php");
include("core.php");
$bcon = connectdb();
if (!$bcon)
{
echo "<head>";
echo "<title>Chapel</title>";
echo "<link rel="stylesheet" type="text/css" href="../themes/white.css">";
echo "<head>";
echo "<body>";
echo "
";
echo "<img src="../images/notok.gif" alt="!"/>
";
echo "Error! Cannot Connect To Database...
";
echo "This error happens usually when backing up the database, please be patient...";
echo "
";
echo "</body>";
echo "</html>";
exit();
}
$action = $_GET["action"];
$sid = $_GET["sid"];
$sitename = mysql_fetch_array(mysql_query("SELECT value FROM ibwf_settings WHERE name='sitename'"));
$sitename = $sitename[0];
$uid = getuid_sid($sid);
$theme = mysql_fetch_array(mysql_query("SELECT theme FROM ibwf_users WHERE id='".$uid."'"));
if((islogged($sid)==false)||($uid==0))
{
echo "<head>";
echo "<title>Error!!!</title>";
echo "<link rel="stylesheet" type="text/css" href="../themes/white_medium.css">";
echo "</head>";
echo "<body>";
echo "
";
echo "You are not logged in
";
echo "Or Your session has been expired
";
echo "<a href="http://wapple.890m.com/index.php">Login</a>";
echo "
";
echo "</body>";
echo "</html>";
exit();
}
if(isbanned($uid))
{
echo "<head>";
echo "<title>Error!!!</title>";
echo "<link rel="stylesheet" type="text/css" href="../themes/$theme[0]">";
echo "</head>";
echo "<body>";
echo "
";
echo "<img src="../images/notok.gif" alt="x"/>
";
echo "You are Banned
";
$banto = mysql_fetch_array(mysql_query("SELECT timeto, pnreas, exid FROM ibwf_penalties WHERE uid='".$uid."' AND penalty='1' OR uid='".$uid."' AND penalty='2'"));
$banres = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM ibwf_users WHERE id='".$uid."'"));
$remain = $banto[0]- time();
$rmsg = gettimemsg($remain);
echo "Time Left:$rmsg
";
$nick = getnick_uid($banto[2]);
echo "By:$nick
";
echo "Reason:$banto[1]";
echo "<a href="http://wapple.890m.com/index.php">Login</a>";
echo "
";
echo "</body>";
echo "</html>";
exit();
}
if($action=="chpreqref")
{
$id=$_GET["id"];
addonline(getuid_sid($sid),"XHTML - Chapel","index.php?action=$action");
echo "<body>";
echo "
"; echo "Chapel";
echo "
";
echo "
";
$dbinfo=mysql_fetch_array(mysql_query("SELECT * FROM ibwf_married WHERE id='".$id."'"));
$frmnick=getnick_uid($dbinfo["frmuid"]);
echo "Aww, We are sorry to hear about You Decision, your proposer has been informed of your decison, thank you";
$dbinfo2=mysql_query("DELETE FROM ibwf_married WHERE id='".$id."'");
$tonick=getnick_uid($dbinfo["touid"]);
$byuid = getuid_sid($sid);
$person = getnick_sid($sid);
$who=$dbinfo["frmuid"];
$pmtext="Sorry, $tonick has refused your proposal. we are sorry to hear this, but feel free to try again at a later date";
$tm = time();
$res = mysql_query("INSERT INTO ibwf_private SET text='".$pmtext."', byuid='".$byuid."', touid='".$who."', timesent='".$tm."'");
echo "
";
echo "
";
echo "Please Note: This Marriage IS NOT Legally Binding
";
echo "<a href="index.php?action=main&sid=$sid"><img src="images/home.gif" alt="*"/>";
echo "Home</a>";
echo "
";
echo "</body>";
}
else if($action=="chpreqacc")
{
$id=$_GET["id"];
addonline(getuid_sid($sid),"XHTML - Chapel","index.php?action=$action");
echo "<body>";
echo "
";
echo "Chapel";
echo "
";
echo "
";
$dbinfo=mysql_fetch_array(mysql_query("SELECT * FROM ibwf_married WHERE id='".$id."'"));
$frmnick=getnick_uid($dbinfo["frmuid"]);
echo "Congratulations!. Your Marriage To $frmnick Is Complete. We Hope You Are Both Happy in your new Relationship";
$dbinfo2=mysql_query("UPDATE ibwf_married SET agreed='1', complete='1' WHERE id='".$id."'");
$tonick=getnick_uid($dbinfo["touid"]);
$byuid = getuid_sid($sid);
$person = getnick_sid($sid);
$who=$dbinfo["frmuid"];
$pmtext="Congratulations!. Your Marriage To $tonick Is Complete. We Hope You Are Both Happy in your new Relationship";
$tm = time();
$res = mysql_query("INSERT INTO ibwf_private SET text='".$pmtext."', byuid='".$byuid."', touid='".$who."', timesent='".$tm."'");
echo "
";
echo "
";
echo "Please Note: This Marriage IS NOT Legally Binding
";
echo "<a href="index.php?action=main&sid=$sid"><img src="images/home.gif" alt="*"/>";
echo "Home</a>";
echo "
";
echo "</body>";
}
else if($action=="chapel")
{
addonline(getuid_sid($sid),"XHTML - Chapel","index.php?action=$action");
echo "<body>";
echo "
";
echo "Chapel";
echo "
";
echo "
";
echo "Welcome To $sitename Online Chapel.
Here You Can Get Married Online In Front Of Our Resident vicar Chaos_dragon";
echo "
";
$uid=getuid_sid($sid);
$chkcode=mysql_fetch_array(mysql_query("SELECT id FROM ibwf_married WHERE touid='".$uid."'"));
if($chkcode[0]>0)
{
$marriedinfo=mysql_fetch_array(mysql_query("SELECT * FROM ibwf_married WHERE touid='".$uid."'"));
echo "
";
$tonick=getnick_uid($marriedinfo['touid']);
$frmnick=getnick_uid($marriedinfo['frmuid']);
$mf=mysql_fetch_array(mysql_query("SELECT sex FROM ibwf_users WHERE id='".$marriedinfo['frmnick']."'"));
if($mf[0]=="M")
{
$sex=="Him";
$husb=="Husband";
}else{
$sex=="Her";
$husb=="Wife";
}
$i=$marriedinfo["ID"];
echo "Marriage Between $tonick and $frmnick
";
echo "Your Only one step away from Marrying your true love. all you need to do is read and accept the vows below
";
echo "$tonick, do you take $frmnick to be your wedded $husb to live together in marriage. Do you promise to love, comfort, honor and keep $sex
";
echo "For better or worse, for richer or poorer, in sickness and in health. And forsaking all others, be faithful only to
";
echo "$sex so long as you both shall live?
";
echo "<a href="kasal.php?action=chpreqacc&sid=$sid&id=$i">I Do</a>
";
echo "<a href="kasal.php?action=chpreqref&sid=$sid&id=$i">Sorry, I Dont</a>
";
echo "
";
}else{
$nick=getnick_sid($sid);
echo "
";
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";
echo "
";
echo "$nick, do you take to be your wedded [wife/husband] to live together in marriage. 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. And forsaking all others, be faithful only to
";
echo "[him/her] so long as you both shall live?
";
echo "Username:
";
echo "<form name="form1" action="kasal.php?action=chpsndreq&sid=$sid" method="post">";
echo "<input name="marusr" maxlength="25"/>
";
echo "<input type="submit" name="submit" value="I Do"></form>";
echo "
";
}
echo "
";
echo "Please Note: This Marriage IS NOT Legally Binding
";
echo "<a href="index.php?action=main&sid=$sid"><img src="images/home.gif" alt="*"/>";
echo "Home</a>";
echo "
";
echo "</body>";
}
else if($action=="chpsndreq")
{
addonline(getuid_sid($sid),"XHTML - Chapel","index.php?action=$action");
echo "<body>";
echo "
";
echo "Wap Chapel";
echo "
";
echo "
";
echo "Welcome To Our Online Chapel.
Here You Can Get Married Online In Front Of Our Resident vicar CHAOS_DRAGON";
echo "
";
$marusr = $_POST["marusr"];
$who = getuid_nick($marusr);
$whonick = getnick_uid($who);
if($who=="")
{
echo "
";
echo "Sorry this user does not exist, Please Try Again";
echo "
<a href="index.php?action=main&sid=$sid"><img src="images/home.gif" alt="*"/>";
echo "Home</a>";
echo "
";
echo "</body>";
echo "</html>";
exit;
}
$byuid = getuid_sid($sid);
$person = getnick_sid($sid);
$sql=mysql_query("INSERT INTO ibwf_married SET frmuid='".$byuid."', touid='".$who."'");
$sql2=mysql_fetch_array(mysql_query("SELECT id FROM ibwf_married WHERE frmuid='".$byuid."' AND touid='".$who."'"));
$pmtext="-marriage- $person would like to To ask For your hand in marriage, to accept or refuse visit the chapel link in the sites fun menu";
$tm = time();
$res = mysql_query("INSERT INTO ibwf_private SET text='".$pmtext."', byuid='".$byuid."', touid='".$who."', timesent='".$tm."'");
if($res)
{
echo "
";
echo "<img src="images/ok.gif" alt="O"/>";
echo "Marriage Request was sent successfully to $whonick
please wait for a response
";
}else{
echo "
";
echo "<img src="images/notok.gif" alt="X"/>";
echo "Can't Send Request to $whonick
";
}
echo "
";
echo "Please Note: This Marriage IS NOT Legally Binding
";
echo "<a href="index.php?action=main&sid=$sid"><img src="images/home.gif" alt="*"/>";
echo "Home</a>";
echo "
";
echo "</body>";
}
?>
<?php
//////original copy of wapple adventure changed title to Ancient Empires
/////// new games for sale just send private message to me
//////////heres my version
$version = "version: v1.0";
forsale games: whammy push your luck,wap poker online game
$adven = "whammy push your luck!";
$adven2 = "swerte!";
?>
<?php
//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("config.php");
include("core.php");
$bcon = connectdb();
if (!$bcon)
{
echo "<head>";
echo "<title>Chapel</title>";
echo "<link rel="stylesheet" type="text/css" href="../themes/white.css">";
echo "<head>";
echo "<body>";
echo "
";
echo "<img src="../images/notok.gif" alt="!"/>
";
echo "Error! Cannot Connect To Database...
";
echo "This error happens usually when backing up the database, please be patient...";
echo "
";
echo "</body>";
echo "</html>";
exit();
}
$action = $_GET["action"];
$sid = $_GET["sid"];
$sitename = mysql_fetch_array(mysql_query("SELECT value FROM ibwf_settings WHERE name='sitename'"));
$sitename = $sitename[0];
$uid = getuid_sid($sid);
$theme = mysql_fetch_array(mysql_query("SELECT theme FROM ibwf_users WHERE id='".$uid."'"));
if((islogged($sid)==false)||($uid==0))
{
echo "<head>";
echo "<title>Error!!!</title>";
echo "<link rel="stylesheet" type="text/css" href="../themes/white_medium.css">";
echo "</head>";
echo "<body>";
echo "
";
echo "You are not logged in
";
echo "Or Your session has been expired
";
echo "<a href="http://wapple.890m.com/index.php">Login</a>";
echo "
";
echo "</body>";
echo "</html>";
exit();
}
if(isbanned($uid))
{
echo "<head>";
echo "<title>Error!!!</title>";
echo "<link rel="stylesheet" type="text/css" href="../themes/$theme[0]">";
echo "</head>";
echo "<body>";
echo "
";
echo "<img src="../images/notok.gif" alt="x"/>
";
echo "You are Banned
";
$banto = mysql_fetch_array(mysql_query("SELECT timeto, pnreas, exid FROM ibwf_penalties WHERE uid='".$uid."' AND penalty='1' OR uid='".$uid."' AND penalty='2'"));
$banres = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM ibwf_users WHERE id='".$uid."'"));
$remain = $banto[0]- time();
$rmsg = gettimemsg($remain);
echo "Time Left:$rmsg
";
$nick = getnick_uid($banto[2]);
echo "By:$nick
";
echo "Reason:$banto[1]";
echo "<a href="http://wapple.890m.com/index.php">Login</a>";
echo "
";
echo "</body>";
echo "</html>";
exit();
}
if($action=="chpreqref")
{
$id=$_GET["id"];
addonline(getuid_sid($sid),"XHTML - Chapel","index.php?action=$action");
echo "<body>";
echo "
"; echo "Chapel";
echo "
";
echo "
";
$dbinfo=mysql_fetch_array(mysql_query("SELECT * FROM ibwf_married WHERE id='".$id."'"));
$frmnick=getnick_uid($dbinfo["frmuid"]);
echo "Aww, We are sorry to hear about You Decision, your proposer has been informed of your decison, thank you";
$dbinfo2=mysql_query("DELETE FROM ibwf_married WHERE id='".$id."'");
$tonick=getnick_uid($dbinfo["touid"]);
$byuid = getuid_sid($sid);
$person = getnick_sid($sid);
$who=$dbinfo["frmuid"];
$pmtext="Sorry, $tonick has refused your proposal. we are sorry to hear this, but feel free to try again at a later date";
$tm = time();
$res = mysql_query("INSERT INTO ibwf_private SET text='".$pmtext."', byuid='".$byuid."', touid='".$who."', timesent='".$tm."'");
echo "
";
echo "
";
echo "Please Note: This Marriage IS NOT Legally Binding
";
echo "<a href="index.php?action=main&sid=$sid"><img src="images/home.gif" alt="*"/>";
echo "Home</a>";
echo "
";
echo "</body>";
}
else if($action=="chpreqacc")
{
$id=$_GET["id"];
addonline(getuid_sid($sid),"XHTML - Chapel","index.php?action=$action");
echo "<body>";
echo "
";
echo "Chapel";
echo "
";
echo "
";
$dbinfo=mysql_fetch_array(mysql_query("SELECT * FROM ibwf_married WHERE id='".$id."'"));
$frmnick=getnick_uid($dbinfo["frmuid"]);
echo "Congratulations!. Your Marriage To $frmnick Is Complete. We Hope You Are Both Happy in your new Relationship";
$dbinfo2=mysql_query("UPDATE ibwf_married SET agreed='1', complete='1' WHERE id='".$id."'");
$tonick=getnick_uid($dbinfo["touid"]);
$byuid = getuid_sid($sid);
$person = getnick_sid($sid);
$who=$dbinfo["frmuid"];
$pmtext="Congratulations!. Your Marriage To $tonick Is Complete. We Hope You Are Both Happy in your new Relationship";
$tm = time();
$res = mysql_query("INSERT INTO ibwf_private SET text='".$pmtext."', byuid='".$byuid."', touid='".$who."', timesent='".$tm."'");
echo "
";
echo "
";
echo "Please Note: This Marriage IS NOT Legally Binding
";
echo "<a href="index.php?action=main&sid=$sid"><img src="images/home.gif" alt="*"/>";
echo "Home</a>";
echo "
";
echo "</body>";
}
else if($action=="chapel")
{
addonline(getuid_sid($sid),"XHTML - Chapel","index.php?action=$action");
echo "<body>";
echo "
";
echo "Chapel";
echo "
";
echo "
";
echo "Welcome To $sitename Online Chapel.
Here You Can Get Married Online In Front Of Our Resident vicar Chaos_dragon";
echo "
";
$uid=getuid_sid($sid);
$chkcode=mysql_fetch_array(mysql_query("SELECT id FROM ibwf_married WHERE touid='".$uid."'"));
if($chkcode[0]>0)
{
$marriedinfo=mysql_fetch_array(mysql_query("SELECT * FROM ibwf_married WHERE touid='".$uid."'"));
echo "
";
$tonick=getnick_uid($marriedinfo['touid']);
$frmnick=getnick_uid($marriedinfo['frmuid']);
$mf=mysql_fetch_array(mysql_query("SELECT sex FROM ibwf_users WHERE id='".$marriedinfo['frmnick']."'"));
if($mf[0]=="M")
{
$sex=="Him";
$husb=="Husband";
}else{
$sex=="Her";
$husb=="Wife";
}
$i=$marriedinfo["ID"];
echo "Marriage Between $tonick and $frmnick
";
echo "Your Only one step away from Marrying your true love. all you need to do is read and accept the vows below
";
echo "$tonick, do you take $frmnick to be your wedded $husb to live together in marriage. Do you promise to love, comfort, honor and keep $sex
";
echo "For better or worse, for richer or poorer, in sickness and in health. And forsaking all others, be faithful only to
";
echo "$sex so long as you both shall live?
";
echo "<a href="kasal.php?action=chpreqacc&sid=$sid&id=$i">I Do</a>
";
echo "<a href="kasal.php?action=chpreqref&sid=$sid&id=$i">Sorry, I Dont</a>
";
echo "
";
}else{
$nick=getnick_sid($sid);
echo "
";
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";
echo "
";
echo "$nick, do you take to be your wedded [wife/husband] to live together in marriage. 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. And forsaking all others, be faithful only to
";
echo "[him/her] so long as you both shall live?
";
echo "Username:
";
echo "<form name="form1" action="kasal.php?action=chpsndreq&sid=$sid" method="post">";
echo "<input name="marusr" maxlength="25"/>
";
echo "<input type="submit" name="submit" value="I Do"></form>";
echo "
";
}
echo "
";
echo "Please Note: This Marriage IS NOT Legally Binding
";
echo "<a href="index.php?action=main&sid=$sid"><img src="images/home.gif" alt="*"/>";
echo "Home</a>";
echo "
";
echo "</body>";
}
else if($action=="chpsndreq")
{
addonline(getuid_sid($sid),"XHTML - Chapel","index.php?action=$action");
echo "<body>";
echo "
";
echo "Wap Chapel";
echo "
";
echo "
";
echo "Welcome To Our Online Chapel.
Here You Can Get Married Online In Front Of Our Resident vicar CHAOS_DRAGON";
echo "
";
$marusr = $_POST["marusr"];
$who = getuid_nick($marusr);
$whonick = getnick_uid($who);
if($who=="")
{
echo "
";
echo "Sorry this user does not exist, Please Try Again";
echo "
<a href="index.php?action=main&sid=$sid"><img src="images/home.gif" alt="*"/>";
echo "Home</a>";
echo "
";
echo "</body>";
echo "</html>";
exit;
}
$byuid = getuid_sid($sid);
$person = getnick_sid($sid);
$sql=mysql_query("INSERT INTO ibwf_married SET frmuid='".$byuid."', touid='".$who."'");
$sql2=mysql_fetch_array(mysql_query("SELECT id FROM ibwf_married WHERE frmuid='".$byuid."' AND touid='".$who."'"));
$pmtext="-marriage- $person would like to To ask For your hand in marriage, to accept or refuse visit the chapel link in the sites fun menu";
$tm = time();
$res = mysql_query("INSERT INTO ibwf_private SET text='".$pmtext."', byuid='".$byuid."', touid='".$who."', timesent='".$tm."'");
if($res)
{
echo "
";
echo "<img src="images/ok.gif" alt="O"/>";
echo "Marriage Request was sent successfully to $whonick
please wait for a response
";
}else{
echo "
";
echo "<img src="images/notok.gif" alt="X"/>";
echo "Can't Send Request to $whonick
";
}
echo "
";
echo "Please Note: This Marriage IS NOT Legally Binding
";
echo "<a href="index.php?action=main&sid=$sid"><img src="images/home.gif" alt="*"/>";
echo "Home</a>";
echo "
";
echo "</body>";
}
?>