What Is Wrong

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

    What Is Wrong

    what it's wrong
    Code:
    <?php
    
    /*
    script by WhiteWarrior
    edited by rukya
    reedited by IonutXp
    */
    include("config.php");
    include("core.php");
    //session_start();
    header("Content-type: text/vnd.wap.wml");
    header("Cache-Control: no-store, no-cache, must-revalidate");
    echo("<?xml version=\"1.0\"?>");
    echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
    
    ?>
    
    <wml>
    
    
    <?php
    
    $bcon = connectdb();
    if (!$bcon)
    {
        echo "<card id=\"main\" title=\"$numesite (ERROR!)\">";
        echo "<p align=\"center\">";
        echo "<img src=\"images/exit.gif\" alt=\"*\"/>
    ";
        echo "Eroare, nu se poate conecta la baza d date!
    
    ";
        echo "Aceasta eroare apare de obicei cand care serverul isi va reveni in cateva secunde!Daca problema persista va rugam sa luati legatura cat mai curand posibil cu IonutXP
    
    ";
        echo "[b]Va multumim foarte mult pentru intelegere![/b]";
        echo "</p>";
        echo "</card>";
        echo "</wml>";
        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);
    
    cleardata();
    if(isipbanned($uip,$ubr))
        {
          if(!isshield(getuid_sid($sid)))
          {
            echo "<card id=\"main\" title=\"$numesite\">";
          echo "<p align=\"center\">";
          echo "<img src=\"images/notok.gif\" alt=\"x\"/>
    ";
          echo "Acest IP este blocat!
    ";
          echo "
    ";
          echo "Acest browser a fost banat!Daca ai scutul actiat incearca sa te loghezi!
    
    ";
          $banto = mysql_fetch_array(mysql_query("SELECT  timeto FROM lib3rtymrc_penalties WHERE  penalty=&#39;2&#39; AND ipadd=&#39;".$uip."&#39; AND browserm=&#39;".$ubr."&#39; LIMIT 1 "));
          //echo mysql_error();
          $remain =  $banto[0] - time();
          $rmsg = gettimemsg($remain);
          echo "Timp ramas pana la debanarea IP-ului: $rmsg
    
    ";
          
          echo "</p>";
          echo "
    
    ";
      echo "Numele: <input name=\"loguid\" format=\"*x\" maxlength=\"15\"/>
    ";
      echo "Parola: <input type=\"password\" name=\"logpwd\"  maxlength=\"30\"/>
    ";
      echo "<anchor>LOGARE<go href=\"login.php\" method=\"get\">";
      echo "<postfield name=\"loguid\" value=\"$(loguid)\"/>";
      echo "<postfield name=\"logpwd\" value=\"$(logpwd)\"/>";
      echo "</go></anchor>";
      echo "</p>";
          echo "</card>";
          echo "</wml>";
          exit();
          }
        }
    
    
    if($action=="chapel")
    {
    addonline(getuid_sid($sid),"Stare Civila","");
    echo "<card id=\"main\" title=\"Stare Civila\">";
    echo "<p align=\"center\">";
    echo "[u][b]Stare Civila $numesite[/b][/u]
    ";
    echo "
    ";
    $couple = mysql_fetch_array(mysql_query("SELECT who, partner, req FROM couple WHERE partner=&#39;".$uid."&#39;"));
    if($couple[2]==&#39;1&#39;)
    {
    $unick = getnick_uid($couple[1]);
    $nick = getnick_uid($couple[0]);
    $nopl = mysql_fetch_array(mysql_query("SELECT sex FROM lib3rtymrc_users WHERE id=&#39;".$couple[0]."&#39;"));
    if($nopl[0]==&#39;M&#39;)
    {
    $usex = "Sot";
    }else if($nopl[0]==&#39;F&#39;){
    $usex = "Sotie";
    }else{
    $usex = "Partener";
    }
    
    echo "[b]Casatoria dintre $unick si $nick[/b]
    
    ";
      echo "Esti la un singur pas de a te casatori cu iubirea ta adevarata. Tot ce trebuie sa faci e sa citesti sa sa accepti ce este scris mai jos
    
    ";
      echo "$unick, iei pe $nick sa iti fie $usex si sa traiti impreuna in casatorie.
    ";
      echo "Promiti ca o sa oferi dragoste, afeciune ,
    ";
      echo "La bine si la greu, la bogatie si la saracie, la boala si la sanatate.
    ";
      echo "pana ce moartea va va desparti?
    
    ";
      echo "<a href=\"chapel.php?action=reqacc&amp;sid=$sid&amp;who=$couple[0]\">Da</a>
    ";
      echo "<a href=\"chapel.php?action=reqref&amp;sid=$sid&amp;who=$couple[1]\">Scuze nu accept</a>
    
    ";
    
    }else{
    
    }
    $nopl = mysql_fetch_array(mysql_query("SELECT sex, birthday, location FROM lib3rtymrc_users WHERE id=&#39;".$who."&#39;"));
    $couple = mysql_fetch_array(mysql_query("SELECT accept, who, partner FROM couple WHERE who=&#39;".$who."&#39;"));
    $couples = mysql_fetch_array(mysql_query("SELECT accept, who, partner FROM couple WHERE partner=&#39;".$who."&#39;"));
      if($couple[0]==&#39;1&#39;)
      {
      $mate = $couple[2];
      $mate1 = getnick_uid($mate);
      
      if($nopl[0]==&#39;M&#39;)
      {
      echo "[size="1"]";
      echo "[b]Now u are married whit <a href=\"profil.php?who=$mate&amp;sid=$sid\">$mate1</a>![/b]
    ";
      $date = mysql_fetch_array(mysql_query("SELECT joined FROM couple WHERE who=&#39;".$who."&#39;"));
      $together = date("d m y H:i:s",$date[0]);
      echo "U are whit she since $together
    ";
      $time = time() - $date[0];
      $xtime = date("H:i:s",$time);
      echo "U are married whit $mate1 for $xtime!
    ";
      echo "<a href=\"posta.php?action=sendpm&amp;who=$mate&amp;sid=$sid\">Sent Pm 2 She!</a>
    ";
      echo "<a href=\"index.php?action=sharepl&amp;who=$mate&amp;sid=$sid\">Give 2 she +</a>
    
    ";
      echo "<a href=\"chapel.php?action=div&amp;sid=$sid\">Divorce He!</a>
    ";
      echo "[/size]";
      }else if($nopl[0]==&#39;F&#39;){
      echo "[size="1"]";
      echo "[b]Now u are married whit cu <a href=\"profil.php?who=$mate&amp;sid=$sid\">$mate1</a>![/b]
    ";
      $date = mysql_fetch_array(mysql_query("SELECT joined FROM couple WHERE who=&#39;".$who."&#39;"));
      $together = date("d m y-H:i:s",$date[0]);
      echo "U are whit he since $together
    ";
      $time = time() - $date[0];
      $xtime = date("H:i:s",$time);
      echo "U are married whit $mate1 for $xtime!
    ";
      echo "<a href=\"posta.php?action=sendpm&amp;who=$mate&amp;sid=$sid\">Sent Pm 2 She!</a>
    ";
      echo "<a href=\"index.php?action=sharepl&amp;who=$mate&amp;sid=$sid\">Give 2 she +</a>
    
    ";
      echo "<a href=\"chapel.php?action=div&amp;sid=$sid\">Divorce She!</a>
    ";
      echo "[/size]";
      }
      }
      
    else if($couples[0]==&#39;1&#39;)
      {
      $mate = $couples[1];
      $mate1 = getnick_uid($mate);
      if($nopl[0]==&#39;M&#39;)
      {
      echo "[size="1"]";
      echo "[b]In acest moment esti casatorit cu <a href=\"profil.php?who=$mate&amp;sid=$sid\">$mate1</a>![/b]
    ";
      $date = mysql_fetch_array(mysql_query("SELECT joined FROM couple WHERE partner=&#39;".$who."&#39;"));
      $together = date("d m y-H:i:s",$date[0]);
      echo "Esti impreuna cu ea din $together";
      $time = time() - $date[0];
      $xtime = date("H:i:s",$time);
      echo "Esti casatorit cu $mate1 de $xtime!
    ";
      echo "<a href=\"posta.php?action=sendpm&amp;who=$mate&amp;sid=$sid\">Sent Pm 2 She!</a>
    ";
      echo "<a href=\"index.php?action=sharepl&amp;who=$mate&amp;sid=$sid\">Give 2 she +</a>
    
    ";
      echo "<a href=\"chapel.php?action=div&amp;sid=$sid\">Divorce She!</a>
    ";
      echo "[/size]";
      }else if($nopl[0]==&#39;F&#39;){
      echo "[size="1"]";
      echo "[b]In acest moment esti casatorita cu <a href=\"profil.php?who=$mate&amp;sid=$sid\">$mate1</a>![/b]
    ";
      $date = mysql_fetch_array(mysql_query("SELECT joined FROM couple WHERE partner=&#39;".$who."&#39;"));
      $together = date("d m y-H:i:s",$date[0]);
      echo "Esti impreuna cu el din $together
    ";
      $time = time() - $date[0];
      $xtime = date("H:i:s",$time);
      echo "Esti casatorita cu $mate1 de $xtime!
    ";
      echo "<a href=\"posta.php?action=sendpm&amp;who=$mate&amp;sid=$sid\">Sent Pm 2 She!</a>
    ";
      echo "<a href=\"index.php?action=sharepl&amp;who=$mate&amp;sid=$sid\">Ofera-i plusuri</a>
    
    ";
      echo "<a href=\"chapel.php?action=div&amp;sid=$sid\">Divorce He!</a>
    ";
      echo "[/size]";
      }
      }else{
      if($nopl[0]==&#39;M&#39;)
      {
      echo "[size="1"]";
    echo "You are [b]Lonley[/b]!
    ";
    echo "To have a wife send a request to who u want!
    ";
    $whonick = getnick_uid($who);
      echo "<input name=\"usr\" maxlength=\"25\"/>
    ";
      echo "<anchor>Ask 4 marri<go href=\"chapel.php?action=getreq&amp;sid=$sid\" method=\"post\">";
      echo "<postfield name=\"usr\" value=\"$(usr)\"/></go></anchor>
    
    ";
      echo "[/size]";
    }else if($nopl[0]==&#39;F&#39;){
    echo "[size="1"]";
    echo "You are [b]Lonley[/b]!
    ";
    $whonick = getnick_uid($who);
      echo "<input name=\"usr\" maxlength=\"25\"/>
    ";
      echo "<anchor>Cere in casatorie<go href=\"chapel.php?action=getreq&amp;sid=$sid\" method=\"post\">";
      echo "<postfield name=\"usr\" value=\"$(usr)\"/></go></anchor>
    
    ";
      echo "[/size]";
    }
    }
    echo "
    <a href=\"index.php?action=main&amp;sid=$sid\">Acasa</a>";
    echo "</p>";
    echo "</card>";
    }
    
    else if($action=="getreq")
    {
    addonline(getuid_sid($sid),"WAP Chapel","");
    echo "<card id=\"main\" title=\"Biserica\">";
    echo "<p align=\"center\">";
    $usr = $_POST["usr"];
    $usr = mysql_real_escape_string($usr);
    $usr = getuid_nick($usr);
    $we = mysql_fetch_array(mysql_query("SELECT who, partner, accept, req FROM couple WHERE who=&#39;".$uid."&#39;"));
    if($we[2]==&#39;1&#39;)
    {
    $wer = getnick_uid($we[1]);
    echo "You&#39;re already married to $wer!
    
    ";
    echo "<a href=\"index.php?action=main&amp;sid=$sid\">Acasa</a>";
    echo "</p>";
    echo "</card>";
    echo "</wml>";
    exit();
    }
    
    $me = mysql_fetch_array(mysql_query("SELECT who, partner, accept, req FROM couple WHERE partner=&#39;".$uid."&#39;"));
    if($me[2]==&#39;1&#39;)
    {
    $sya = getnick_uid($me[0]);
    echo "You&#39;re already married to $sya!
    
    ";
    echo "<a href=\"index.php?action=main&amp;sid=$sid\">Acasa</a>";
    echo "</p>";
    echo "</card>";
    exit();
    }
    $sex1 = mysql_fetch_array(mysql_query("SELECT sex FROM lib3rtymrc_users WHERE id=&#39;".$uid."&#39;"));
    $sex2 = mysql_fetch_array(mysql_query("SELECT sex FROM lib3rtymrc_users WHERE id=&#39;".$usr."&#39;"));
    if($usr==0)
    {
    echo "User inexistent!
    ";
    }else if($usr==$uid)
    {
    echo "lol.. dc vrei sa te casatoresti cu tine? Thoamne..
    ";
    echo "<a href=\"chapel.php?action=chapel&amp;sid=$sid\">back</a>
    ";
    }
    
    elseif($sex1[0]!=$sex2[0])
    
    {
    
    $whonick = getnick_uid($usr);
    $couple = mysql_fetch_array(mysql_query("SELECT who, partner, accept, req FROM couple WHERE partner=&#39;".$usr."&#39;"));
    if($couple[2]==&#39;1&#39;)
    {
    $sya = getnick_uid($couple[0]);
    echo "$whonick is already married to $sya. Try your luck to other users!
    
    ";
    }
    
    $byuid = getuid_sid($sid);
    $tm = time();
    if((!isignored($byuid, $who))&&(!istrashed($byuid)))
    {
    $unick = getnick_uid($uid);
    $pmtext = "Ai primit o notificare in care $unick vrea sa te ceara in casatorie.Cererea lui este:";
    $res = mysql_query("INSERT INTO tecweb_notificari SET text=&#39;".$pmtext."&#39;, byuid=&#39;".$byuid."&#39;, touid=&#39;".$usr."&#39;, timesent=&#39;".$tm."&#39;");
    }else{
    $res = true;
    }
    if($res)
    {
    echo "[u][b] WAP Chapel[/b][/u]";
    echo "
    Here You Can Get Married Online.
    
    ";
    echo "Marriage Request was sent successfully to $whonick
    ";
    echo "Please wait for a response
    
    ";
    echo "[size="1"]Please Note: This Marriage IS NOT Legally Binding[/size]
    ";
    mysql_query("INSERT INTO couple SET req=&#39;1&#39;, partner=&#39;".$usr."&#39;, who=&#39;".$uid."&#39;, time=&#39;".time()."&#39;");
    }else{
    echo "Can&#39;t Send your Request to $whonick
    
    ";
    }
    }
    else
    {
    echo "Site-ul nu accepta relatii intre persoanele cu acelasi sex!
    ";
    echo "<a href=\"chapel.php?action=chapel&amp;sid=$sid\">back</a>
    ";
    }
    
    echo "<a href=\"index.php?action=main&amp;sid=$sid\">Acasa</a>";
    echo "</p>";
    echo "</card>";
    }
    else if($action=="reqacc")
    {
    $who = $_GET["who"];
    addonline(getuid_sid($sid),"WAP Chapel","");
    echo "<card id=\"main\" title=\"Biserica\">";
    echo "<p align=\"center\">";
    echo "[b] WAP Chapel[/b]
    
    ";
    $byuid = getuid_sid($sid);
    $nick = getnick_uid($uid);
    echo "Congratulations! You are Marriage To $nick Is Complete. We Hope You Are Both Happy in your new Relationship.
    
    ";
    $msg = "Congratulations! You are Marriage To $nick Is Complete. We Hope You Are Both Happy in your new Relationship [br/][small]p.s: this is an automatic pm[/small]";
    mysql_query("INSERT INTO lib3rtymrc_private SET text=&#39;".$msg."&#39;, byuid=&#39;".$byuid."&#39;, touid=&#39;".$who."&#39;, unread=&#39;1&#39;, timesent=&#39;".time()."&#39;");
    mysql_query("UPDATE couple SET accept=&#39;1&#39;, req=&#39;2&#39;, joined=&#39;".time()."&#39; WHERE partner=&#39;".$uid."&#39; AND who=&#39;".$who."&#39;");
    
    $nick = getnick_uid($who);
    $byuid = getuid_sid($sid);
    $unick = getnick_uid($byuid);
    $fmsg = "$nick and I just get married!";
    mysql_query("UPDATE lib3rtymrc_users SET shouts=&#39;".$fmsg."&#39; WHERE id=&#39;".$byuid."&#39;");
    echo "[size="1"]Please Note: This Marriage IS NOT Legally Binding[/size]
    ";
    echo "<a href=\"index.php?action=main&amp;sid=$sid\">Acasa</a>";
    echo "</p></card>";
    }
    
    else if($action=="reqref")
    {
    $who = $_GET["who"];
    addonline(getuid_sid($sid),"WAP Chapel","");
    echo "<card id=\"main\" title=\"Biserica\">";
    echo "<p align=\"center\">";
    echo "[b] WAP Chapel[/b]
    
    ";
    $nick = getnick_uid($who);
    echo "Ohh.. We are sorry to hear about Your Decision, your proposer has been informed of your decison, thank you.
    
    ";
    $byuid = getuid_sid($sid);
    $couple = mysql_fetch_array(mysql_query("SELECT who, partner FROM couple WHERE partner=&#39;".$uid."&#39;"));
    $msg = "Sorry, $nick has refused your proposal. we are sorry to hear this, but feel free to try again at a later date [small]p.s: this is an automatic pm[/small]";
    mysql_query("INSERT INTO lib3rtymrc_private SET text=&#39;".$msg."&#39;, byuid=&#39;".$byuid."&#39;, touid=&#39;".$couple[0]."&#39;, unread=&#39;1&#39;, timesent=&#39;".time()."&#39;");
    $res = mysql_query("DELETE FROM couple WHERE partner=&#39;".$uid."&#39; AND who=&#39;".$couple[0]."&#39;");
    echo "[size="1"]Please Note: This Marriage IS NOT Legally Binding[/size]
    ";
    echo "<a href=\"index.php?action=main&amp;sid=$sid\">Acasa</a>";
    echo "</p></card>";
    }else if($action=="div")
    {
    addonline(getuid_sid($sid),"WAP Chapel","");
    echo "<card id=\"main\" title=\"Biserica\">";
    echo "<p align=\"center\">";
    //$me = mysql_fetch_array(mysql_query("SELECT who, partner, accept, req FROM couple WHERE who =&#39;".$uid."&#39;"));
    $me = mysql_fetch_array(mysql_query("SELECT who,partner FROM couple WHERE who=&#39;".$uid."&#39; OR partner=&#39;".$uid."&#39;"));
    //$you = mysql_fetch_array(mysql_query("SELECT who, partner, accept, req FROM couple WHERE partner =&#39;".$uid."&#39;"));
    $nick = getnick_uid($me[0]);
    $unick = getnick_uid($me[1]);
    
    if($uid==$me[0])
    {
    echo "Do you really want to divorce $unick ?";
    }
    
    if($uid==$me[1])
    {
    echo "Do you really want to divorce $nick ?";
    }
    
    $wed = mysql_fetch_array(mysql_query("SELECT partner FROM couple WHERE who=&#39;".$uid."&#39;"));
    if (!$wed)
    {
    $wed = mysql_fetch_array(mysql_query("SELECT who FROM couple WHERE partner=&#39;".$uid."&#39;"));
    }
    $who = $wed[0];
    
    echo "<anchor>Yes";
    echo "<go href=\"chapel.php?action=sep&amp;sid=$sid\" method=\"post\">";  
    echo "<postfield name=\"who\" value=\"$(who)\"/>";
    echo "</go></anchor>
    ";
    echo "<a href=\"chapel.php?action=chapel&amp;sid=$sid\">No</a>
    ----
    ";
    echo "<a href=\"index.php?action=main&amp;sid=$sid\">Main Menu</a>";
    echo "</p>";
    echo "</card>";
    }else if($action=="sep")
    {
    addonline(getuid_sid($sid),"WAP Chapel","");
    echo "<card id=\"main\" title=\"Biserica\">";
    echo "<p align=\"center\">";
    $who = $_POST["who"];
    $uid = getuid_sid($sid);
    $res = mysql_query("DELETE FROM couple WHERE who=&#39;".$uid."&#39; OR partner=&#39;".$uid."&#39;");
    $res = mysql_query("DELETE FROM couple WHERE who=&#39;".$who."&#39; OR partner=&#39;".$who."&#39;");
    if($res)
    {
    $nick = getnick_uid($who);
    $nic = getnick_uid($uid);
    $msg = "A very sad news for you:( ! $nic has devorced you.We are extreamly sorry for the broke up -sad-. Be patient![br/][small]p.s: this is an automatic pm[/small]";
    mysql_query("INSERT INTO lib3rtymrc_private SET text=&#39;".$msg."&#39;, byuid=&#39;".$uid."&#39;, touid=&#39;".$who."&#39;, unread=&#39;1&#39;, timesent=&#39;".time()."&#39;");
    echo "You have successfully divorced $nick !
    
    ";
    }else{
    echo "Database Error!
    
    ";
    
    }
    echo "<a href=\"index.php?action=main&amp;sid=$sid\">Main Menu</a>";
    echo "</p>";
    echo "</card>";
    }else{
    
      addonline(getuid_sid($sid),"Pierdut in biserica =))","");
      echo "<card id=\"main\" title=\"Biserica\">";
      echo "<p align=\"center\">";
      echo "[size="1"]Nu stiu cum ai ajuns aici,dar nu ai ce vedea
    
    ";
      echo "<a href=\"index.php?action=main&amp;sid=$sid\">";
      echo "Acasa</a>[/size]";
      echo "</p></card>";
    }
    
    ?>
    
    </wml>
    sorry its not translated 100% .... the problem is ....when i send request ....gives me that "Can&#39;t Send your Request to .."
    Hate romains that take codes from here and tell to all that they had made that

    #2
    /*
    script by WhiteWarrior
    edited by rukya
    reedited by IonutXp
    */


    Where did you get this copy from?...

    and who translated it from english?

    Comment


      #3
      from here i get it ...and i translate it
      and sorry ..
      Hate romains that take codes from here and tell to all that they had made that

      Comment

      Working...
      X