Chapel Help

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

9 replies · 557 views · started 18 years ago · 1 min read

3 participants
djsammy Junior · 43 posts #1

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

djsammy Junior · 43 posts #2

QUOTE (djsammy @ Nov 13 2008, 07:23 PM) <{POST_SNAPBACK}>

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&amp;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&amp;sid=$sid\" method=\"post\">"; echo "<postfield name=\"wid\" value=\"$wid\"/>"; echo "</go></anchor> "; echo "<anchor>No!"; echo "<go href=\"chapel.php?action=rejm&amp;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&amp;sid=$sid\">Marry!</a> "; }else{ echo "<a href=\"chapel.php?action=getd&amp;sid=$sid\">Divorce</a> "; } } echo "<a href=\"chapel.php?action=getd&amp;sid=$sid\">Divorce</a> "; echo "<img src=\"images/line.gif\" alt=\"line\"/>"; echo " <a href=\"index.php?action=main&amp;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&amp;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&amp;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&amp;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&amp;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&amp;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&amp;sid=$sid\" method=\"post\">"; echo "<postfield name=\"wid\" value=\"$(wid)\"/>"; echo "</go></anchor> "; echo "<a href=\"chapel.php?action=main&amp;sid=$sid\">No!</a> ---- "; echo "<a href=\"index.php?action=main&amp;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&amp;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&amp;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&amp;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&amp;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

i keep getting

Parse error: syntax error, unexpected $end in /home/kinkyf/public_html/chapel.php on line 294

ionutxp Developer · 137 posts #3
<?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 "[b]Error!
Connection Lost.... Please Try Again[/b]";
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 "[b]Time Left: [/b]$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 "[b]Session Expired...[/b]";
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 "[b]!BANNED![/b]
";
$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 "[b]Time Left:[/b]$rmsg
";
echo "[b]Reason:[/b]$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\">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 "</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 [b]marry[/b] means [b]wap marriege[/b]
 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>";
}
?>

Hate romains that take codes from here and tell to all that they had made that External image (may be gone)

djsammy Junior · 43 posts #4

QUOTE (ionutxp @ Nov 14 2008, 07:25 AM) <{POST_SNAPBACK}>

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&amp;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&amp;sid=$sid\" method=\"post\">"; echo "<postfield name=\"wid\" value=\"$wid\"/>"; echo "</go></anchor> "; echo "<anchor>No!"; echo "<go href=\"chapel.php?action=rejm&amp;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&amp;sid=$sid\">Marry!</a> "; }else{ echo "<a href=\"chapel.php?action=getd&amp;sid=$sid\">Divorce</a> "; } } echo "<a href=\"chapel.php?action=getd&amp;sid=$sid\">Divorce</a> "; echo "<img src=\"images/line.gif\" alt=\"line\"/>"; echo " <a href=\"index.php?action=main&amp;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&amp;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&amp;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&amp;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&amp;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&amp;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&amp;sid=$sid\" method=\"post\">"; echo "<postfield name=\"wid\" value=\"$(wid)\"/>"; echo "</go></anchor> "; echo "<a href=\"chapel.php?action=main&amp;sid=$sid\">No!</a> ---- "; echo "<a href=\"index.php?action=main&amp;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&amp;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&amp;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&amp;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&amp;sid=$sid\">Home</a>"; echo " </card>"; } ?>

when i put this in i get this CODEFatal error: Call to undefined function connectdb() in /home/kinkyf/public_html/chapel.php on line 20 come one help me please et this sorted out

ionutxp Developer · 137 posts #5

QUOTE

Fatal error: Call to undefined function connectdb() in /home/kinkyf/public_html/chapel.php on line 20

U can mody this script bye cope and paste from other parts of ur chat script ....

Hate romains that take codes from here and tell to all that they had made that External image (may be gone)

djsammy Junior · 43 posts #6

QUOTE (ionutxp @ Nov 14 2008, 05:18 PM) <{POST_SNAPBACK}>

U can mody this script bye cope and paste from other parts of ur chat script ....

i keep getting this

Fatal error: Call to undefined function connectdb() in /home/kinkyf/public_html/chapel.php on line 20

ionutxp Developer · 137 posts #7

maybe u dont have in ur core the connectdb function: QUOTE

function connectdb() { global $dbname, $dbuser, $dbhost, $dbpass; $conms = @mysql_connect($dbhost,$dbuser,$dbpass); //connect mysql if(!$conms) return false; $condb = @mysql_select_db($dbname); if(!$condb) return false; return true; } find that fct in ur core and modify connectdb() whit it name 🙂

Hate romains that take codes from here and tell to all that they had made that External image (may be gone)

djsammy Junior · 43 posts #8

QUOTE (ionutxp @ Nov 16 2008, 08:34 AM) <{POST_SNAPBACK}>

maybe u dont have in ur core the connectdb function: find that fct in ur core and modify connectdb() whit it name :)

if i post my core can you put it in for me please

ozziemale31 Lead · 861 posts #10

you have a missing .

include('./core/main.inc');

try include('../core/main.inc');

I belive this will solve your problem as the ../ part calls a function to display the first directory ie if you hav a wap directory try include('../wap/core/main.inc'); try include('../web/core/main.inc');

External image (may be gone) External image (may be gone)

External image (may be gone)

*****

**Dont Ask Me Dumb Questions.Or you'l get a Dumb Answer.. Want A Profesional Logo or Theme For Your wap site Pm Me.If I Have The Time Ill Make It For Free ***

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