View file wap/marital.php

File size: 14.05Kb
<?php
include("inc/func.inc.php");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
echo "<?xml version=\"1.0\"?>\n";
echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">\n";
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<?php
  if(!db()){
  echo "<head>";
  echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
  include("inc/css.inc.php");
  echo "</head>";
  echo "<body>";
  echo getdberror();
  echo "</body>";
  echo "</html>";
  exit();
  }

  $show = $_GET["show"];
  $hits = $_GET["hits"];
  $page = $_GET["page"];
  $who = $_GET["who"];
  $uid = getuid_hits($hits);
  $uip = getip();
  $ubr = $_SERVER['HTTP_USER_AGENT'];
  cleardata();
  addvisitor();

  if(isipbanned($uip,$ubr)){
  if(!isshield(getuid_hits($hits))){
  echo "<head>";
  echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
  include("inc/css.inc.php");
  echo "</head>";
  echo "<body>";
  echo getipbanned($uip, $ubr);
  echo "</body>";
  echo "</html>";
  exit();
  }
  }

  if(($show != "") && ($show != "terms")){
  $uid = getuid_hits($hits);
  if((islogged($hits)==false)||($uid==0)){
  echo "<head>";
  echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
  include("inc/css.inc.php");
  echo "</head>";
  echo "<body>";
  echo getsesexplog();
  echo "</body>";
  echo "</html>";
  exit();
  }
  }

  if((isbanned($uid))&&($uid != '0')){
  echo "<head>";
  echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
  include("inc/css.inc.php");
  echo "</head>";
  echo "<body>";
  echo getbanned($uid);
  echo "</body>";
  echo "</html>";
  exit();
  }

$usr = $_POST["usr"];
////////////////////////////////////////MAIN PAGE

if($show=="main")
{
  addonline(getuid_hits($hits),"Marital - Main","");
          echo "<head>";
  echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
  include("inc/css.inc.php");
 echo "</head>";
 echo "<body>";
  ///echo "<card=\"main\" title=\"Marital\">";
  echo "<div class=\"box_cen\" align=\"center\">";
  echo "<b>Wap Marital</b>";
  echo "<div class=\"box_sub\" align=\"center\">";
  $kawen = mysql_fetch_array(mysql_query("SELECT who, partner, accept FROM mx_marital WHERE partner='".$uid."' OR who ='".$uid."'"));
 if($kawen[2]==1)
 {
 echo "You Already Married! <b>".getnick_uid($kawen[0])."</b> As A Husband And <b>".getnick_uid($kawen[1])."</b> As A Wife<br/><br/>";
  echo "<a href=\"marital.php?show=div&amp;hits=$hits\">Divorce!</a>";
 }else{

  $couple = mysql_fetch_array(mysql_query("SELECT who, partner, req FROM mx_marital WHERE partner='".$uid."'"));

  if($couple[2]=='1')
  {

  $unick = getnick_uid($couple[1]);

  $nick = getnick_uid($couple[0]);

  echo "You Had Receive Proposal From <b>$nick</b><br/>";
  echo "<b>$unick</b>, Do You Want To Accept Her Propose?<br/>";
  echo "<a href=\"marital.php?show=reqacc&amp;hits=$hits&amp;who=$couple[0]\">Yes </a>|";
  echo "<a href=\"marital.php?show=reqref&amp;hits=$hits&amp;who=$couple[1]\"> No</a>";

  }else{

  $nopl = mysql_fetch_array(mysql_query("SELECT sex FROM mx_users WHERE id='".$uid."'"));

   if($nopl[0]=='M')
  {
  echo "Enter your future wife number ID<br/><br/>";
  echo "<form action=\"marital.php?show=getreq&amp;hits=$hits\" method=\"post\">";
  echo "User ID<br/><input name=\"usr\" format=\"*N\" maxlength=\"5\"/><br/>";
    echo "<input type=\"submit\" value=\"Propose\"/></form>";
  }
 }
 }
  echo "</div><a href=\"lists.php?show=marit&amp;hits=$hits\">";
  echo "Married Lists</a><br/>";
  echo "<a href=\"index.php?show=main&amp;hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";

echo "Home</a></div>";
include("wapv.php");
  echo "</body>";
}


else if($show=="getreq")
{
  addonline(getuid_hits($hits),"Send Propose","");
          echo "<head>";
  echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
  include("inc/css.inc.php");
 echo "</head>";
 echo "<body>";
  ///echo "<card=\"main\" title=\"Send Propose\">";
  echo "<div class=\"box_cen\" align=\"center\">";
  echo "<b>Send Propose</b>";
  echo "<div class=\"box_sub\" align=\"center\">";

 $we = mysql_fetch_array(mysql_query("SELECT who, partner, accept, req FROM mx_marital WHERE who='".$uid."'"));

 if($we[2]=='1')
       {

        $wer = getnick_uid($we[1]);
        echo "You're Already Married To $wer!</div>";
  echo "<a href=\"index.php?show=main&amp;hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";

echo "Home</a></div>";
include("wapv.php");
        echo "</body>";
        echo "</html>";
        exit();
       }

 $me = mysql_fetch_array(mysql_query("SELECT who, partner, accept, req FROM mx_marital WHERE partner='".$uid."'"));

 if($me[2]=='1')
       {

        $sya = getnick_uid($me[0]);
        echo "You're Already Married To $sya!</div>";
  echo "<a href=\"index.php?show=main&amp;hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";

echo "Home</a></div>";
include("wapv.php");
        echo "</body>";
        echo "</html>";
        exit();
       }

    $name = getnick_uid($usr);

    if($name=="")
    {
      echo "User Does Not Exist</div><";

    }else if($usr==$uid)
    {
      echo "What Type Human You are?</div>";
    }else{

  $whonick = getnick_uid($usr);

  $couple = mysql_fetch_array(mysql_query("SELECT who, partner, accept, req FROM mx_marital WHERE partner='".getuid_nick($whonick)."'"));

     if($couple[2]=='1')
       {
         $sya = getnick_uid($couple[0]);
         echo "$whonick Is Already Married To $sya.</div>";
       }
    
  $tm = time();

 $count = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_marital WHERE who='".$uid."' OR partner='".getuid_nick($whonick)."'"));

 if($count[0]>0)
 {
 echo "Propose Already Sent. Just Wait Ok?</div>";
 }else{

  $nopl = mysql_fetch_array(mysql_query("SELECT sex FROM mx_users WHERE id='".getuid_nick($whonick)."'"));

   if($nopl[0]=='M')
  {
 echo "Can't Propose Man!!</div>";

 }else{

  if(!isignored($uid, getuid_nick($whonick)))
    {
  $unick = getnick_uid($uid);
  $sub = "Proposal ! !";

  $pmtext = "You Have Recieve Proposal From $unick ! Go To Marital Menu To Accept Or Decline The Propose. Thank You";

  $res = mysql_query("INSERT INTO mx_private SET text='".$pmtext."', sub='".$sub."', byuid='1', touid='".getuid_nick($whonick)."', timesent='".time()."'");

  if($res)
  {
  echo "Proposal Has Been Send To $whonick</div>";
  $fmsg = "".getnick_uid($uid)." Has Been Send Proposal To $whonick. We Hope $whonick Accept His Proposal!";

  mysql_query("INSERT INTO mx_shouts SET shout='".$fmsg."', shouter='1', shtime='".time()."'");

  mysql_query("INSERT INTO mx_marital SET req='1', partner='".getuid_nick($whonick)."', who='".$uid."', time='".time()."'");

  }else{
    echo "Can't Send your Request To $whonick</div>";
  }

  }else{
    echo "Can't Send your Request To $whonick</div>";
   }
  }
 }
}

  echo "<a href=\"index.php?show=main&amp;hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";

echo "Home</a></div>";
include("wapv.php");
  echo "</body>";
}

else if($show=="reqacc")
{

  $who = $_GET["who"];
  addonline(getuid_hits($hits),"Accept Propose","");
          echo "<head>";
  echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
  include("inc/css.inc.php");
 echo "</head>";
 echo "<body>";
  ///echo "<card=\"main\" title=\"Accept Propose\">";
  echo "<div class=\"box_cen\" align=\"center\">";
  echo "<b>Accept Propose</b>";
  echo "<div class=\"box_sub\" align=\"center\">";
  $nick = getnick_uid($who);

  $couple = mysql_fetch_array(mysql_query("SELECT accept, req FROM mx_marital WHERE partner='".$uid."' AND who='".$who."'"));

     if($couple[0]=='1')
       {
         echo "You Already Married!!</div>";
       }else{
  echo "Congratulations! Your Marriage To $nick Is Complete. We Hope You Are Both Happy in Your New Relationship As Wife And Husband</div>";

  $byuid = getuid_hits($hits);
  $sub = "Congratulation !";
  $msg = "Congratulations! Your Marriage With ".getnick_uid($byuid)." Is Complete. We Hope You Are Both Happy in your new Relationship";
  mysql_query("INSERT INTO mx_private SET text='".$msg."', sub='".$sub."', byuid='1', touid='".$who."', unread='1', timesent='".time()."'");

  mysql_query("UPDATE mx_marital SET accept='1', req='2', joined='".time()."' WHERE partner='".$uid."' AND who='".$who."'");

  $nick = getnick_uid($who);
  $byuid = getuid_hits($hits);
  $unick = getnick_uid($byuid);
  $fmsg = "Congratulation To $nick And $unick Because They Just Get Married!";

  mysql_query("INSERT INTO mx_shouts SET shout='".$fmsg."', shouter='1', shtime='".time()."'");
 $stat = "$nick Wife";
  mysql_query("UPDATE mx_users SET status='".$stat."' WHERE id='".getuid_hits($hits)."'");
 $stat2 = "$unick Husband";
  mysql_query("UPDATE mx_users SET status='".$stat2."' WHERE id='".$who."'");
}
         echo "<a href=\"index.php?show=main&amp;hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a></div>";
include("wapv.php");
  echo "</body>";
}

else if($show=="reqref")
{
  $who = $_GET["who"];
  addonline(getuid_hits($hits),"Decline Propose","");
          echo "<head>";
  echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
  include("inc/css.inc.php");
 echo "</head>";
 echo "<body>";
  ///echo "<card=\"main\" title=\"Decline Propose\">";
  echo "<div class=\"box_cen\" align=\"center\">";
  echo "<b>Decline Propose</b>";
  echo "<div class=\"box_sub\" align=\"center\">";
  $nick = getnick_uid($who);
  echo "Ohh.. We Are Sorry To Hear About Your Decision, Your Proposer Has Been Informed Of Your Decison, Thank You.</div>";

  $byuid = getuid_hits($hits);
  $couple = mysql_fetch_array(mysql_query("SELECT who, partner FROM mx_marital WHERE partner='".$uid."'"));
  $sub = "Prop Refused";
  $msg = "Sorry, $nick Has Refused Your Proposal!";
  mysql_query("INSERT INTO mx_private SET text='".$msg."', sub='".$sub."', byuid='1', touid='".$couple[0]."', unread='1', timesent='".time()."'");
 $res = mysql_query("DELETE FROM mx_marital WHERE partner='".$uid."' AND who='".$couple[0]."'");

    echo "<a href=\"index.php?show=main&amp;hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";

echo "Home</a></div>";
include("wapv.php");
  echo "</body>";
}else if($show=="div")
{
addonline(getuid_hits($hits),"Get Divorce","");
          echo "<head>";
  echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
  include("inc/css.inc.php");
 echo "</head>";
 echo "<body>";
  ///echo "<card=\"main\" title=\"Get Divorce\">";
  echo "<div class=\"box_cen\" align=\"center\">";
  echo "<b>Get Divorce</b>";
  echo "<div class=\"box_sub\" align=\"center\">";

 $uid = getuid_hits($hits);
 $accp = mysql_fetch_array(mysql_query("SELECT accept FROM mx_marital WHERE partner='".getuid_hits($hits)."' OR who='".getuid_hits($hits)."'"));
 if($accp[0]==1)
 {

  $mele = mysql_fetch_array(mysql_query("SELECT who FROM mx_marital WHERE who='".getuid_hits($hits)."'"));

  $youe = mysql_fetch_array(mysql_query("SELECT partner FROM mx_marital WHERE partner='".getuid_hits($hits)."'"));

  $nick = getnick_uid($mele[0]);
  $unick = getnick_uid($youe[0]);

if(getuid_hits($hits)==$mele[0])
{
  echo "Do You Really Want To Divorce $unick?<br/>";
}

if(getuid_hits($hits)==$youe[0])
{
  echo "Do You Really Want To Divorce $nick?<br/>";
}

 $wed = mysql_fetch_array(mysql_query("SELECT partner FROM mx_marital WHERE who='".getuid_hits($hits)."'"));

if(!$wed)
{
 $wed = mysql_fetch_array(mysql_query("SELECT who FROM mx_marital WHERE partner='".getuid_hits($hits)."'"));
}

$who = $wed[0];

 echo "<a href=\"marital.php?show=sep&amp;hits=$hits&amp;who=$who\">Yes </a>|";
 echo "<a href=\"marital.php?show=main&amp;hits=$hits\"> No</a></div>";
 }else{
 echo "You Doest Married Yet!!</div>";
 }
    echo "<a href=\"index.php?show=main&amp;hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";

echo "Home</a></div>";
include("wapv.php");
  echo "</body>";
}else if($show=="sep")
{
addonline(getuid_hits($hits),"Get Divorce","");
          echo "<head>";
  echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
  include("inc/css.inc.php");
 echo "</head>";
 echo "<body>";
  ///echo "<card=\"main\" title=\"Get Divorce\">";
  echo "<div class=\"box_cen\" align=\"center\">";
  echo "<b>Get Divorce</b>";
  echo "<div class=\"box_sub\" align=\"center\">";

 $who = $_GET["who"];

 $uid = getuid_hits($hits);

 $accp = mysql_fetch_array(mysql_query("SELECT accept FROM mx_marital WHERE partner='".getuid_hits($hits)."' OR who='".getuid_hits($hits)."'"));
 if($accp[0]==1)
 {
 $res = mysql_query("DELETE FROM mx_marital WHERE who='".getuid_hits($hits)."' OR partner='".getuid_hits($hits)."'");

 if($res)
{

 $nick = getnick_uid($who);

 $unick = getnick_uid(getuid_hits($hits));

 echo "You Have Successfully Divorced $nick!</div>";
  $fmsg = "We Are Sad To Know $unick And $nick Because They Just Divorce!";

  mysql_query("INSERT INTO mx_shouts SET shout='".$fmsg."', shouter='1', shtime='".time()."'");
 $stat = "Divorce!";
  mysql_query("UPDATE mx_users SET status='".$stat."' WHERE id='".getuid_hits($hits)."'");
  mysql_query("UPDATE mx_users SET status='".$stat."' WHERE id='".$who."'");

}else{
echo "Database Error!</div>";

}
 }else{
 echo "You Already Divorce!!</div>";
 }
    echo "<a href=\"index.php?show=main&amp;hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";

echo "Home</a></div>";
include("wapv.php");
  echo "</body>";
}else{
       echo "<head>";
  echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
  include("inc/css.inc.php");
 echo "</head>";
 echo "<body>";
   echo getpagerror();
   echo "</body>";
}

?>

</html>