<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'><?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 "<p align=\"center\">";
echo "Error!
Connection Lost.... Please Try Again";
echo "</p>";
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 "<p align=\"center\">";
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 "</p>";
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 "<p align=\"center\">";
echo "Session Expired...";
echo "
";
echo "<a href=\"index.php\">Click Here</a>";
echo "</p>";
echo "</card>";
echo "</php>";
exit();
}
}
if(isbanned($uid))
{
echo "<card id=\"main\" title=\"$sitename\">";
echo "<p align=\"center\">";
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 "</p>";
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 "<p align=\"center\">";
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\">Wh at 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\">Marr y!</a>
";
}else{
echo "<a href=\"chapel.php?action=getd&sid=$sid\">Divor ce</a>
";
}
}
echo "<a href=\"chapel.php?action=getd&sid=$sid\">Divor ce</a>
";
echo "<img src=\"images/line.gif\" alt=\"line\"/>";
echo "
<a href=\"index.php?action=main&sid=$sid\">Home</a>";
echo "</p>";
echo "</card>";
}
/////////////////////////////////////////////////// blady numpties! lol
else if($action=="wnumpty")
{
echo "<card id=\"main\" title=\"$sitename\">";
addonline(getuid_sid($sid),"What is marrige..","");
echo "<p align=\"center\">";
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 "</p>";
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 "<p align=\"center\">";
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 "</p>";
echo "</card>";
}
///////////////////////////////////////////////////// Request to get married, final.
else if($action=="getm")
{
echo "<card id=\"main\" title=\"$sitename\">";
addonline(getuid_sid($sid),"Asking Marrige","");
echo "<p align=\"center\">";
$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 "</p>";
echo "</card>";
}
///////////////////////////////////////////////////// request devorce verify
else if($action=="getd")
{
echo "<card id=\"main\" title=\"$sitename\">";
addonline(getuid_sid($sid),"Divorce","");
echo "<p align=\"center\">";
$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 "</p>";
echo "</card>";
}
/////////////////////////////////////////////////// get devorce final
else if($action=="getdf")
{
echo "<card id=\"main\" title=\"$sitename\">";
addonline(getuid_sid($sid),"This wont be prety...","");
echo "<p align=\"center\">";
$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 "</p>";
echo "</card>";
}
/////////////////////////////////////////////////// complete marrage
else if($action=="conm")
{
echo "<card id=\"main\" title=\"$sitename\">";
addonline(getuid_sid($sid),"Their married!!","");
echo "<p align=\"center\">";
$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 "</p>";
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 "<p align=\"center\">";
$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 "</p>";
echo "</card>";
}
///////////////////////////////////////////////// the end lol
else{
addonline(getuid_sid($sid),"Lost in Chapel","");
echo "<card id=\"main\" title=\"$sitename\">";
echo "<p align=\"center\">";
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 "</p></card>";
}
?></div>
can some one fix this please i'm trying to put it on http://hardnwet.info some one help me please
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 "<p align=\"center\">";
echo "Error!
Connection Lost.... Please Try Again";
echo "</p>";
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 "<p align=\"center\">";
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 "</p>";
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 "<p align=\"center\">";
echo "Session Expired...";
echo "
";
echo "<a href=\"index.php\">Click Here</a>";
echo "</p>";
echo "</card>";
echo "</php>";
exit();
}
}
if(isbanned($uid))
{
echo "<card id=\"main\" title=\"$sitename\">";
echo "<p align=\"center\">";
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 "</p>";
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 "<p align=\"center\">";
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\">Wh at 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\">Marr y!</a>
";
}else{
echo "<a href=\"chapel.php?action=getd&sid=$sid\">Divor ce</a>
";
}
}
echo "<a href=\"chapel.php?action=getd&sid=$sid\">Divor ce</a>
";
echo "<img src=\"images/line.gif\" alt=\"line\"/>";
echo "
<a href=\"index.php?action=main&sid=$sid\">Home</a>";
echo "</p>";
echo "</card>";
}
/////////////////////////////////////////////////// blady numpties! lol
else if($action=="wnumpty")
{
echo "<card id=\"main\" title=\"$sitename\">";
addonline(getuid_sid($sid),"What is marrige..","");
echo "<p align=\"center\">";
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 "</p>";
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 "<p align=\"center\">";
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 "</p>";
echo "</card>";
}
///////////////////////////////////////////////////// Request to get married, final.
else if($action=="getm")
{
echo "<card id=\"main\" title=\"$sitename\">";
addonline(getuid_sid($sid),"Asking Marrige","");
echo "<p align=\"center\">";
$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 "</p>";
echo "</card>";
}
///////////////////////////////////////////////////// request devorce verify
else if($action=="getd")
{
echo "<card id=\"main\" title=\"$sitename\">";
addonline(getuid_sid($sid),"Divorce","");
echo "<p align=\"center\">";
$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 "</p>";
echo "</card>";
}
/////////////////////////////////////////////////// get devorce final
else if($action=="getdf")
{
echo "<card id=\"main\" title=\"$sitename\">";
addonline(getuid_sid($sid),"This wont be prety...","");
echo "<p align=\"center\">";
$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 "</p>";
echo "</card>";
}
/////////////////////////////////////////////////// complete marrage
else if($action=="conm")
{
echo "<card id=\"main\" title=\"$sitename\">";
addonline(getuid_sid($sid),"Their married!!","");
echo "<p align=\"center\">";
$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 "</p>";
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 "<p align=\"center\">";
$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 "</p>";
echo "</card>";
}
///////////////////////////////////////////////// the end lol
else{
addonline(getuid_sid($sid),"Lost in Chapel","");
echo "<card id=\"main\" title=\"$sitename\">";
echo "<p align=\"center\">";
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 "</p></card>";
}
?></div>
can some one fix this please i'm trying to put it on http://hardnwet.info some one help me please
Comment