Chapel Help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Chapel Help

    <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'><?php
    define(&#39;WCS&#39;,true);
    include(&#39;./core/main.inc&#39;);
    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=&#39;2&#39; AND ipadd=&#39;".$uip."&#39; AND browserm=&#39;".$ubr."&#39; 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=&#39;".$uid."&#39; AND penalty=&#39;1&#39; OR uid=&#39;".$uid."&#39; AND penalty=&#39;2&#39;"));
    $banres = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM users WHERE id=&#39;".$uid."&#39;"));
    $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&amp;sid=$sid\">Wh at is marriege?</a>
    ";
    $uid = getuid_sid($sid);
    $isreq = mysql_fetch_array(mysql_query("SELECT rpen, uid FROM chapel WHERE mid=&#39;".$uid."&#39;"));
    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?&#39;;
    ";
    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=&#39;".$uid."&#39;"));
    if ($mstat[0]==0)
    {
    echo "<a href=\"chapel.php?action=rgetm&amp;sid=$sid\">Marr y!</a>
    ";
    }else{
    echo "<a href=\"chapel.php?action=getd&amp;sid=$sid\">Divor ce</a>
    ";
    }
    }
    echo "<a href=\"chapel.php?action=getd&amp;sid=$sid\">Divor ce</a>
    ";
    echo "<img src=\"images/line.gif\" alt=\"line\"/>";
    echo "
    <a href=\"index.php?action=main&amp;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&amp;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&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 "</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&amp;sid=$sid\">Back </a>
    ";
    }else{
    $iswhom = mysql_fetch_array(mysql_query("SELECT ismd FROM chapel WHERE mid=&#39;".$wid."&#39;"));
    if (!$iswhom)
    {
    $iswhom = mysql_fetch_array(mysql_query("SELECT ismd FROM chapel WHERE uid=&#39;".$wid."&#39;"));
    }
    if($iswhom[0]==&#39;1&#39;)
    {
    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=&#39;".$wid."&#39;"));
    if (!$iswhor)
    {
    $iswhor = mysql_fetch_array(mysql_query("SELECT rpen FROM chapel WHERE uid=&#39;".$wid."&#39;"));
    }
    if($iswhor[0]==&#39;1&#39;)
    {
    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=&#39;1&#39;, mid=&#39;".$wid."&#39;, uid=&#39;".$uid."&#39;");
    }
    }
    }
    echo "
    <img src=\"images/line.gif\" alt=\"line\"/>";
    echo "
    <a href=\"index.php?action=main&amp;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=&#39;".$uid."&#39;"));
    if (!$wida)
    {
    $wida = mysql_fetch_array(mysql_query("SELECT uid FROM chapel WHERE mid=&#39;".$uid."&#39;"));
    }
    $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 "</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=&#39;".$uid."&#39; OR mid=&#39;".$uid."&#39;");
    echo "<a href=\"index.php?action=main&amp;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=&#39;1&#39;, mdy=&#39;".time()."&#39;, rpen=&#39;0&#39; WHERE mid=&#39;".$uid."&#39; AND uid=&#39;".$wid."&#39;");
    $jmtxt = "Chapel: $wnick and $unick just get married!";
    $jmtm = time();
    echo "
    <a href=\"index.php?action=main&amp;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=&#39;".$wid."&#39;");
    echo "
    <img src=\"images/line.gif\" alt=\"line\"/>";
    echo "
    <a href=\"index.php?action=main&amp;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&#39;t know how you got into here, but there&#39;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 "</p></card>";
    }
    ?></div>

    can some one fix this please i&#39;m trying to put it on http://hardnwet.info some one help me please

    #2
    <div class='quotetop'>QUOTE (djsammy @ Nov 13 2008, 07:23 PM) <{POST_SNAPBACK}></div>
    <div class='codetop'>CODE
    <div class='codemain' style='height:200px;white-space:pre;overflow:auto'><?php
    define(&#39;WCS&#39;,true);
    include(&#39;./core/main.inc&#39;);
    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=&#39;2&#39; AND ipadd=&#39;".$uip."&#39; AND browserm=&#39;".$ubr."&#39; 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=&#39;".$uid."&#39; AND penalty=&#39;1&#39; OR uid=&#39;".$uid."&#39; AND penalty=&#39;2&#39;"));
    $banres = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM users WHERE id=&#39;".$uid."&#39;"));
    $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&amp;sid=$sid\">Wh at is marriege?</a>
    ";
    $uid = getuid_sid($sid);
    $isreq = mysql_fetch_array(mysql_query("SELECT rpen, uid FROM chapel WHERE mid=&#39;".$uid."&#39;"));
    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?&#39;;
    ";
    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=&#39;".$uid."&#39;"));
    if ($mstat[0]==0)
    {
    echo "<a href=\"chapel.php?action=rgetm&amp;sid=$sid\">Marr y!</a>
    ";
    }else{
    echo "<a href=\"chapel.php?action=getd&amp;sid=$sid\">Divor ce</a>
    ";
    }
    }
    echo "<a href=\"chapel.php?action=getd&amp;sid=$sid\">Divor ce</a>
    ";
    echo "<img src=\"images/line.gif\" alt=\"line\"/>";
    echo "
    <a href=\"index.php?action=main&amp;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&amp;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&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 "</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&amp;sid=$sid\">Back </a>
    ";
    }else{
    $iswhom = mysql_fetch_array(mysql_query("SELECT ismd FROM chapel WHERE mid=&#39;".$wid."&#39;"));
    if (!$iswhom)
    {
    $iswhom = mysql_fetch_array(mysql_query("SELECT ismd FROM chapel WHERE uid=&#39;".$wid."&#39;"));
    }
    if($iswhom[0]==&#39;1&#39;)
    {
    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=&#39;".$wid."&#39;"));
    if (!$iswhor)
    {
    $iswhor = mysql_fetch_array(mysql_query("SELECT rpen FROM chapel WHERE uid=&#39;".$wid."&#39;"));
    }
    if($iswhor[0]==&#39;1&#39;)
    {
    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=&#39;1&#39;, mid=&#39;".$wid."&#39;, uid=&#39;".$uid."&#39;");
    }
    }
    }
    echo "
    <img src=\"images/line.gif\" alt=\"line\"/>";
    echo "
    <a href=\"index.php?action=main&amp;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=&#39;".$uid."&#39;"));
    if (!$wida)
    {
    $wida = mysql_fetch_array(mysql_query("SELECT uid FROM chapel WHERE mid=&#39;".$uid."&#39;"));
    }
    $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 "</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=&#39;".$uid."&#39; OR mid=&#39;".$uid."&#39;");
    echo "<a href=\"index.php?action=main&amp;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=&#39;1&#39;, mdy=&#39;".time()."&#39;, rpen=&#39;0&#39; WHERE mid=&#39;".$uid."&#39; AND uid=&#39;".$wid."&#39;");
    $jmtxt = "Chapel: $wnick and $unick just get married!";
    $jmtm = time();
    echo "
    <a href=\"index.php?action=main&amp;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=&#39;".$wid."&#39;");
    echo "
    <img src=\"images/line.gif\" alt=\"line\"/>";
    echo "
    <a href=\"index.php?action=main&amp;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&#39;t know how you got into here, but there&#39;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 "</p></card>";
    }
    ?></div>

    can some one fix this please i&#39;m trying to put it on http://hardnwet.info some one help me please[/b][/quote]


    i keep getting

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

    Comment


      #3
      Code:
      <?php
      define(&#39;WCS&#39;,true);
      include(&#39;./core/main.inc&#39;);
      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=&#39;2&#39; AND ipadd=&#39;".$uip."&#39; AND browserm=&#39;".$ubr."&#39; 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=&#39;".$uid."&#39; AND penalty=&#39;1&#39; OR uid=&#39;".$uid."&#39; AND penalty=&#39;2&#39;"));
      $banres = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM users WHERE id=&#39;".$uid."&#39;"));
      $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&amp;sid=$sid\">What is marriege?</a>
      ";
      $uid = getuid_sid($sid);
      $isreq = mysql_fetch_array(mysql_query("SELECT rpen, uid FROM chapel WHERE mid=&#39;".$uid."&#39;"));
      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?&#39;;
      ";
      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=&#39;".$uid."&#39;"));
      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 "</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&amp;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&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 "</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&amp;sid=$sid\">Back</a>
      ";
      }else{
      $iswhom = mysql_fetch_array(mysql_query("SELECT ismd FROM chapel WHERE mid=&#39;".$wid."&#39;"));
      if (!$iswhom)
      {
      $iswhom = mysql_fetch_array(mysql_query("SELECT ismd FROM chapel WHERE uid=&#39;".$wid."&#39;"));
      }
      if($iswhom[0]==&#39;1&#39;)
      {
      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=&#39;".$wid."&#39;"));
      if (!$iswhor)
      {
      $iswhor = mysql_fetch_array(mysql_query("SELECT rpen FROM chapel WHERE uid=&#39;".$wid."&#39;"));
      }
      if($iswhor[0]==&#39;1&#39;)
      {
      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=&#39;1&#39;, mid=&#39;".$wid."&#39;, uid=&#39;".$uid."&#39;");
      }
      }
      }
      echo "
      <img src=\"images/line.gif\" alt=\"line\"/>";
      echo "
      <a href=\"index.php?action=main&amp;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=&#39;".$uid."&#39;"));
      if (!$wida)
      {
      $wida = mysql_fetch_array(mysql_query("SELECT uid FROM chapel WHERE mid=&#39;".$uid."&#39;"));
      }
      $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 "</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=&#39;".$uid."&#39; OR mid=&#39;".$uid."&#39;");
      echo "<a href=\"index.php?action=main&amp;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=&#39;1&#39;, mdy=&#39;".time()."&#39;, rpen=&#39;0&#39; WHERE mid=&#39;".$uid."&#39; AND uid=&#39;".$wid."&#39;");
      $jmtxt = "Chapel: $wnick and $unick just get married!";
      $jmtm = time();
      echo "
      <a href=\"index.php?action=main&amp;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=&#39;".$wid."&#39;");
      echo "
      <img src=\"images/line.gif\" alt=\"line\"/>";
      echo "
      <a href=\"index.php?action=main&amp;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&#39;t know how you got into here, but there&#39;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 "</p></card>";
      }
      ?>
      Hate romains that take codes from here and tell to all that they had made that

      Comment


        #4
        <div class='quotetop'>QUOTE (ionutxp @ Nov 14 2008, 07:25 AM) <{POST_SNAPBACK}></div>
        <div class='codetop'>CODE
        <div class='codemain' style='height:200px;white-space:pre;overflow:auto'><?php
        define(&#39;WCS&#39;,true);
        include(&#39;./core/main.inc&#39;);
        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=&#39;2&#39; AND ipadd=&#39;".$uip."&#39; AND browserm=&#39;".$ubr."&#39; 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=&#39;".$uid."&#39; AND penalty=&#39;1&#39; OR uid=&#39;".$uid."&#39; AND penalty=&#39;2&#39;"));
        $banres = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM users WHERE id=&#39;".$uid."&#39;"));
        $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&amp;sid=$sid\">Wh at is marriege?</a>
        ";
        $uid = getuid_sid($sid);
        $isreq = mysql_fetch_array(mysql_query("SELECT rpen, uid FROM chapel WHERE mid=&#39;".$uid."&#39;"));
        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?&#39;;
        ";
        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=&#39;".$uid."&#39;"));
        if ($mstat[0]==0)
        {
        echo "<a href=\"chapel.php?action=rgetm&amp;sid=$sid\">Marr y!</a>
        ";
        }else{
        echo "<a href=\"chapel.php?action=getd&amp;sid=$sid\">Divor ce</a>
        ";
        }
        }
        echo "<a href=\"chapel.php?action=getd&amp;sid=$sid\">Divor ce</a>
        ";
        echo "<img src=\"images/line.gif\" alt=\"line\"/>";
        echo "
        <a href=\"index.php?action=main&amp;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&amp;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&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 "</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&amp;sid=$sid\">Back </a>
        ";
        }else{
        $iswhom = mysql_fetch_array(mysql_query("SELECT ismd FROM chapel WHERE mid=&#39;".$wid."&#39;"));
        if (!$iswhom)
        {
        $iswhom = mysql_fetch_array(mysql_query("SELECT ismd FROM chapel WHERE uid=&#39;".$wid."&#39;"));
        }
        if($iswhom[0]==&#39;1&#39;)
        {
        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=&#39;".$wid."&#39;"));
        if (!$iswhor)
        {
        $iswhor = mysql_fetch_array(mysql_query("SELECT rpen FROM chapel WHERE uid=&#39;".$wid."&#39;"));
        }
        if($iswhor[0]==&#39;1&#39;)
        {
        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=&#39;1&#39;, mid=&#39;".$wid."&#39;, uid=&#39;".$uid."&#39;");
        }
        }
        }
        echo "
        <img src=\"images/line.gif\" alt=\"line\"/>";
        echo "
        <a href=\"index.php?action=main&amp;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=&#39;".$uid."&#39;"));
        if (!$wida)
        {
        $wida = mysql_fetch_array(mysql_query("SELECT uid FROM chapel WHERE mid=&#39;".$uid."&#39;"));
        }
        $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 "</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=&#39;".$uid."&#39; OR mid=&#39;".$uid."&#39;");
        echo "<a href=\"index.php?action=main&amp;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=&#39;1&#39;, mdy=&#39;".time()."&#39;, rpen=&#39;0&#39; WHERE mid=&#39;".$uid."&#39; AND uid=&#39;".$wid."&#39;");
        $jmtxt = "Chapel: $wnick and $unick just get married!";
        $jmtm = time();
        echo "
        <a href=\"index.php?action=main&amp;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=&#39;".$wid."&#39;");
        echo "
        <img src=\"images/line.gif\" alt=\"line\"/>";
        echo "
        <a href=\"index.php?action=main&amp;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&#39;t know how you got into here, but there&#39;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 "</p></card>";
        }
        ?></div>[/b][/quote]
        when i put this in i get this <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>Fatal error: Call to undefined function connectdb() in /home/kinkyf/public_html/chapel.php on line 20
        </div> come one help me please et this sorted out

        Comment


          #5
          <div class='quotetop'>QUOTE </div>
          Fatal error: Call to undefined function connectdb() in /home/kinkyf/public_html/chapel.php on line 20[/b]
          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

          Comment


            #6
            <div class='quotetop'>QUOTE (ionutxp @ Nov 14 2008, 05:18 PM) <{POST_SNAPBACK}></div>
            U can mody this script bye cope and paste from other parts of ur chat script ....[/b]
            i keep getting this

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

            Comment


              #7
              maybe u dont have in ur core the connectdb function:
              <div class='quotetop'>QUOTE </div>
              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;
              }[/b]
              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

              Comment


                #8
                <div class='quotetop'>QUOTE (ionutxp @ Nov 16 2008, 08:34 AM) <{POST_SNAPBACK}></div>
                maybe u dont have in ur core the connectdb function:
                find that fct in ur core and modify connectdb() whit it name [/b]
                if i post my core can you put it in for me please

                Comment


                  #9
                  post ur core
                  Hate romains that take codes from here and tell to all that they had made that

                  Comment


                    #10

                    you have a missing .

                    include(&#39;./core/main.inc&#39;);

                    try include(&#39;../core/main.inc&#39;);

                    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(&#39;../wap/core/main.inc&#39;);
                    try include(&#39;../web/core/main.inc&#39;);









                    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

                    Comment

                    Working...
                    X