CODE<?php define('WCS',true); include('./core/main.inc'); header_type(); cleardata(); if(ipbanned(ip(),browser())){ if(!shield(getuid_sid($sid))){ echo head_tag("Ip Blocked!!!",0,0); echo ipbanned_msg(); echo foot_tag(); exit(); } } if(!islogged($sid)){ echo head_tag("Error!!!",0,0); echo session_expired(); echo foot_tag(); exit(); $bcon = connectdb(); if (!$bcon) { echo "<card id="main" title="(ERROR!)">"; echo " "; echo "Error! Connection Lost.... Please Try Again"; echo " "; echo "</card>"; echo "</php>"; exit(); } $brws = explode(" ",$HTTP_USER_AGENT); $ubr = $brws[0]; $uip = getip(); $action = $_GET["action"]; $sid = $_GET["sid"]; $page = $_GET["page"]; $who = $_GET["who"]; $uid = getuid_sid($sid); $sitename = "hardnwet"; $sitename = $sitename[0]; cleardata();
if(isipbanned($uip,$brw)) { if(!isshield(getuid_sid($sid))) { echo "<card id="main" title="$sitename">"; echo " "; echo "This IP Address Is Blocked! "; $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM penalties WHERE penalty='2' AND ipadd='".$uip."' AND browserm='".$ubr."' LIMIT 1 ")); $remain = $banto[0] - time(); $rmsg = gettimemsg($remain); echo "Time Left:$rmsg "; echo " "; echo "</card>"; echo "</wml>"; exit(); } }
if(($action != "") && ($action!="terms"))
{
$uid = getuid_sid($sid);
if((islogged($sid)==false)||($uid==0))
{
echo "<card id="main" title="$sitename">";
echo "
";
echo "Session Expired...";
echo "
";
echo "<a href="index.php">Click Here</a>";
echo "
";
echo "</card>";
echo "</php>";
exit();
}
}
if(isbanned($uid))
{
echo "<card id="main" title="$sitename">";
echo "
";
echo "!BANNED!
";
$banto = mysql_fetch_array(mysql_query("SELECT timeto, pnreas, exid FROM penalties WHERE uid='".$uid."' AND penalty='1' OR uid='".$uid."' AND penalty='2'"));
$banres = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM users WHERE id='".$uid."'"));
$remain = $banto[0]- time();
$rmsg = gettimemsg($remain);
echo "Time Left:$rmsg
";
echo "Reason:$banto[1]
";
echo "
";
echo mobads();
echo "</card>";
echo "</php>";
exit();
}
/////////////////////////////////////////////////main page
else if($action=="main")
{
echo "<card id="main" title="$sitename">";
addonline(getuid_sid($sid),"Chapel","");
echo "
";
echo "<img src="images/chapel.jpg" alt="Chapel"/>
";
echo "Welcome to the chapel of hardnwet!
";
echo "Here you could marry with special people from Wap!
";
echo "<a href="chapel.php?action=wnumpty&sid=$sid">What is marriege?</a>
";
$uid = getuid_sid($sid);
$isreq = mysql_fetch_array(mysql_query("SELECT rpen, uid FROM chapel WHERE mid='".$uid."'"));
if ($isreq[0]==1)
{
$wid = $isreq[1];
$wnick = getnick_uid($wid);
echo "$wnick Asked you to marry im $wnick. Do you promesse to give love andafection? [ele/ela]
In the sickness and in the health?';
";
echo "Do you accept?:
";
echo "<anchor>Yes!";
echo "<go href="chapel.php?action=conm&sid=$sid" method="post">";
echo "<postfield name="wid" value="$wid"/>";
echo "</go></anchor>
";
echo "<anchor>No!";
echo "<go href="chapel.php?action=rejm&sid=$sid" method="post">";
echo "<postfield name="wid" value="$wid"/>";
echo "</go></anchor>
";
}else{
$mstat = mysql_fetch_array(mysql_query("SELECT ismd FROM chapel WHERE id='".$uid."'"));
if ($mstat[0]==0)
{
echo "<a href="chapel.php?action=rgetm&sid=$sid">Marry!</a>
";
}else{
echo "<a href="chapel.php?action=getd&sid=$sid">Divorce</a>
";
}
}
echo "<a href="chapel.php?action=getd&sid=$sid">Divorce</a>
";
echo "<img src="images/line.gif" alt="line"/>";
echo "
<a href="index.php?action=main&sid=$sid">Home</a>";
echo "
";
echo "</card>";
}
/////////////////////////////////////////////////// blady numpties! lol
else if($action=="wnumpty")
{
echo "<card id="main" title="$sitename">";
addonline(getuid_sid($sid),"What is marrige..","");
echo "
";
echo "What is marrige?
";
echo "Well marry means wap marriege
its an way to express something you feal from someone!
";
echo "Its completely free and fun! ... oh yes and it is reversable
So enjoy and keep having fun!
";
echo "<img src="images/line.gif" alt="line"/>";
echo "
<a href="chapel.php?action=main&sid=$sid">Back</a>
";
echo "
";
echo "</card>";
}
//////////////////////////////////////////////////// Request to get married, who?
else if($action=="rgetm") { echo "<card id="main" title="$sitename">"; addonline(getuid_sid($sid),"Pedindo em casamento",""); echo " "; echo "You want to marry with: "; echo "<input type="text" name="who" format="*x" maxlength="20"/> "; echo "<anchor>Ir"; echo "<go href="chapel.php?action=getm&sid=$sid" method="post">"; echo "<postfield name="who" value="$(who)"/>"; echo "</go></anchor> "; echo "NOTA: Please Note That This Is Just For Entertainment Purposes And Does NOT Constitute A Valid Mariage. lol
Thank You And I Truelly Hope You Enjoy This Service "; echo "<img src="images/line.gif" alt="line"/>"; echo " <a href="index.php?action=main&sid=$sid">Home</a> "; echo " "; echo "</card>"; } ///////////////////////////////////////////////////// Request to get married, final.
else if($action=="getm") { echo "<card id="main" title="$sitename">"; addonline(getuid_sid($sid),"Asking Marrige",""); echo " "; $who = $_POST["who"]; $wid = getuid_nick($who); $uid = getuid_sid($sid); if($wid==0 OR $wid=="") { echo "Nickname doesnt exist! Please see if its right!
";
echo "<a href="chapel.php?action=rgetm&sid=$sid">Back</a>
";
}else{
$iswhom = mysql_fetch_array(mysql_query("SELECT ismd FROM chapel WHERE mid='".$wid."'"));
if (!$iswhom)
{
$iswhom = mysql_fetch_array(mysql_query("SELECT ismd FROM chapel WHERE uid='".$wid."'"));
}
if($iswhom[0]=='1')
{
echo "Em que estas a pensar?.. Esta pessoa já está casada... Tem vergonha!
";
}else{
$iswhor = mysql_fetch_array(mysql_query("SELECT rpen FROM chapel WHERE mid='".$wid."'"));
if (!$iswhor)
{
$iswhor = mysql_fetch_array(mysql_query("SELECT rpen FROM chapel WHERE uid='".$wid."'"));
}
if($iswhor[0]=='1')
{
echo "$who as an reaquest!<br/If this is an problem tell to $who to reject the request
";
}else{
echo "Request sent to $who";
mysql_query("INSERT INTO chapel SET rpen='1', mid='".$wid."', uid='".$uid."'");
}
}
}
echo "
<img src="images/line.gif" alt="line"/>";
echo "
<a href="index.php?action=main&sid=$sid">Home</a>
";
echo "
";
echo "</card>";
}
///////////////////////////////////////////////////// request devorce verify
else if($action=="getd")
{
echo "<card id="main" title="$sitename">";
addonline(getuid_sid($sid),"Divorce","");
echo "
";
$uid = getuid_sid($sid);
$wida = mysql_fetch_array(mysql_query("SELECT mid FROM chapel WHERE uid='".$uid."'"));
if (!$wida)
{
$wida = mysql_fetch_array(mysql_query("SELECT uid FROM chapel WHERE mid='".$uid."'"));
}
$wid = $wida[0];
echo "Do you have sure?
Pelase confirm:
";
echo "<anchor>Yes";
echo "<go href="chapel.php?action=getdf&sid=$sid" method="post">";
echo "<postfield name="wid" value="$(wid)"/>";
echo "</go></anchor>
";
echo "<a href="chapel.php?action=main&sid=$sid">No!</a>
"; echo "<a href="index.php?action=main&sid=$sid">Home</a> "; echo " "; echo "</card>"; } /////////////////////////////////////////////////// get devorce final else if($action=="getdf") { echo "<card id="main" title="$sitename">"; addonline(getuid_sid($sid),"This wont be prety...",""); echo " "; $wid = $_POST["wid"]; $uid = getuid_sid($sid); echo "Done! Remember there are better people
"; mysql_query("DELETE FROM chapel WHERE uid='".$uid."' OR mid='".$uid."'"); echo "<a href="index.php?action=main&sid=$sid">Home</a>"; echo " "; echo "</card>"; } /////////////////////////////////////////////////// complete marrage else if($action=="conm") { echo "<card id="main" title="$sitename">"; addonline(getuid_sid($sid),"Their married!!",""); echo " "; $wid = $_POST["wid"]; $uid = getuid_sid($sid); $unick = getnick_uid($uid); $wnick = getnick_uid($wid); echo "You and $wnick are now married!! Congrats!!"; mysql_query("UPDATE chapel SET ismd='1', mdy='".time()."', rpen='0' WHERE mid='".$uid."' AND uid='".$wid."'"); $jmtxt = "Chapel: $wnick and $unick just get married!"; $jmtm = time(); echo " <a href="index.php?action=main&sid=$sid">Home</a>"; echo " "; echo "</card>"; } //////////////////////////////////////////////// reject marrage... ow! lol else if($action=="rejm") { echo "<card id="main" title="$sitename">"; addonline(getuid_sid($sid),"This wont be pretty...",""); echo " "; $wid = $_POST["wid"]; $uid = getuid_sid($sid); $unick = getnick_uid($uid); $wnick = getnick_uid($wid); echo "You reject the request from $wnick."; mysql_query("DELETE FROM chapel WHERE uid='".$wid."'"); echo " <img src="images/line.gif" alt="line"/>"; echo " <a href="index.php?action=main&sid=$sid">Home</a>"; echo " "; echo "</card>"; } ///////////////////////////////////////////////// the end lol else{ addonline(getuid_sid($sid),"Lost in Chapel",""); echo "<card id="main" title="$sitename">"; echo " "; echo "I don't know how you got into here, but there's nothing to show
"; echo "<img src="images/line.gif" alt="line"/>"; echo " <a href="index.php?action=main&sid=$sid">Home</a>"; echo " </card>"; } ?>
can some one fix this please i'm trying to put it on http://hardnwet.info some one help me please