what it's wrong
<?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='2' AND ipadd='".$uip."' AND browserm='".$ubr."' 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='".$uid."'"));
if($couple[2]=='1')
{
$unick = getnick_uid($couple[1]);
$nick = getnick_uid($couple[0]);
$nopl = mysql_fetch_array(mysql_query("SELECT sex FROM lib3rtymrc_users WHERE id='".$couple[0]."'"));
if($nopl[0]=='M')
{
$usex = "Sot";
}else if($nopl[0]=='F'){
$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&sid=$sid&who=$couple[0]\">Da</a>
";
echo "<a href=\"chapel.php?action=reqref&sid=$sid&who=$couple[1]\">Scuze nu accept</a>
";
}else{
}
$nopl = mysql_fetch_array(mysql_query("SELECT sex, birthday, location FROM lib3rtymrc_users WHERE id='".$who."'"));
$couple = mysql_fetch_array(mysql_query("SELECT accept, who, partner FROM couple WHERE who='".$who."'"));
$couples = mysql_fetch_array(mysql_query("SELECT accept, who, partner FROM couple WHERE partner='".$who."'"));
if($couple[0]=='1')
{
$mate = $couple[2];
$mate1 = getnick_uid($mate);
if($nopl[0]=='M')
{
echo "[size="1"]";
echo "[b]Now u are married whit <a href=\"profil.php?who=$mate&sid=$sid\">$mate1</a>![/b]
";
$date = mysql_fetch_array(mysql_query("SELECT joined FROM couple WHERE who='".$who."'"));
$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&who=$mate&sid=$sid\">Sent Pm 2 She!</a>
";
echo "<a href=\"index.php?action=sharepl&who=$mate&sid=$sid\">Give 2 she +</a>
";
echo "<a href=\"chapel.php?action=div&sid=$sid\">Divorce He!</a>
";
echo "[/size]";
}else if($nopl[0]=='F'){
echo "[size="1"]";
echo "[b]Now u are married whit cu <a href=\"profil.php?who=$mate&sid=$sid\">$mate1</a>![/b]
";
$date = mysql_fetch_array(mysql_query("SELECT joined FROM couple WHERE who='".$who."'"));
$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&who=$mate&sid=$sid\">Sent Pm 2 She!</a>
";
echo "<a href=\"index.php?action=sharepl&who=$mate&sid=$sid\">Give 2 she +</a>
";
echo "<a href=\"chapel.php?action=div&sid=$sid\">Divorce She!</a>
";
echo "[/size]";
}
}
else if($couples[0]=='1')
{
$mate = $couples[1];
$mate1 = getnick_uid($mate);
if($nopl[0]=='M')
{
echo "[size="1"]";
echo "[b]In acest moment esti casatorit cu <a href=\"profil.php?who=$mate&sid=$sid\">$mate1</a>![/b]
";
$date = mysql_fetch_array(mysql_query("SELECT joined FROM couple WHERE partner='".$who."'"));
$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&who=$mate&sid=$sid\">Sent Pm 2 She!</a>
";
echo "<a href=\"index.php?action=sharepl&who=$mate&sid=$sid\">Give 2 she +</a>
";
echo "<a href=\"chapel.php?action=div&sid=$sid\">Divorce She!</a>
";
echo "[/size]";
}else if($nopl[0]=='F'){
echo "[size="1"]";
echo "[b]In acest moment esti casatorita cu <a href=\"profil.php?who=$mate&sid=$sid\">$mate1</a>![/b]
";
$date = mysql_fetch_array(mysql_query("SELECT joined FROM couple WHERE partner='".$who."'"));
$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&who=$mate&sid=$sid\">Sent Pm 2 She!</a>
";
echo "<a href=\"index.php?action=sharepl&who=$mate&sid=$sid\">Ofera-i plusuri</a>
";
echo "<a href=\"chapel.php?action=div&sid=$sid\">Divorce He!</a>
";
echo "[/size]";
}
}else{
if($nopl[0]=='M')
{
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&sid=$sid\" method=\"post\">";
echo "<postfield name=\"usr\" value=\"$(usr)\"/></go></anchor>
";
echo "[/size]";
}else if($nopl[0]=='F'){
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&sid=$sid\" method=\"post\">";
echo "<postfield name=\"usr\" value=\"$(usr)\"/></go></anchor>
";
echo "[/size]";
}
}
echo "
<a href=\"index.php?action=main&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='".$uid."'"));
if($we[2]=='1')
{
$wer = getnick_uid($we[1]);
echo "You're already married to $wer!
";
echo "<a href=\"index.php?action=main&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='".$uid."'"));
if($me[2]=='1')
{
$sya = getnick_uid($me[0]);
echo "You're already married to $sya!
";
echo "<a href=\"index.php?action=main&sid=$sid\">Acasa</a>";
echo "</p>";
echo "</card>";
exit();
}
$sex1 = mysql_fetch_array(mysql_query("SELECT sex FROM lib3rtymrc_users WHERE id='".$uid."'"));
$sex2 = mysql_fetch_array(mysql_query("SELECT sex FROM lib3rtymrc_users WHERE id='".$usr."'"));
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&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='".$usr."'"));
if($couple[2]=='1')
{
$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='".$pmtext."', byuid='".$byuid."', touid='".$usr."', timesent='".$tm."'");
}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='1', partner='".$usr."', who='".$uid."', time='".time()."'");
}else{
echo "Can'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&sid=$sid\">back</a>
";
}
echo "<a href=\"index.php?action=main&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='".$msg."', byuid='".$byuid."', touid='".$who."', unread='1', timesent='".time()."'");
mysql_query("UPDATE couple SET accept='1', req='2', joined='".time()."' WHERE partner='".$uid."' AND who='".$who."'");
$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='".$fmsg."' WHERE id='".$byuid."'");
echo "[size="1"]Please Note: This Marriage IS NOT Legally Binding[/size]
";
echo "<a href=\"index.php?action=main&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='".$uid."'"));
$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='".$msg."', byuid='".$byuid."', touid='".$couple[0]."', unread='1', timesent='".time()."'");
$res = mysql_query("DELETE FROM couple WHERE partner='".$uid."' AND who='".$couple[0]."'");
echo "[size="1"]Please Note: This Marriage IS NOT Legally Binding[/size]
";
echo "<a href=\"index.php?action=main&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 ='".$uid."'"));
$me = mysql_fetch_array(mysql_query("SELECT who,partner FROM couple WHERE who='".$uid."' OR partner='".$uid."'"));
//$you = mysql_fetch_array(mysql_query("SELECT who, partner, accept, req FROM couple WHERE partner ='".$uid."'"));
$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='".$uid."'"));
if (!$wed)
{
$wed = mysql_fetch_array(mysql_query("SELECT who FROM couple WHERE partner='".$uid."'"));
}
$who = $wed[0];
echo "<anchor>Yes";
echo "<go href=\"chapel.php?action=sep&sid=$sid\" method=\"post\">";
echo "<postfield name=\"who\" value=\"$(who)\"/>";
echo "</go></anchor>
";
echo "<a href=\"chapel.php?action=chapel&sid=$sid\">No</a>
----
";
echo "<a href=\"index.php?action=main&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='".$uid."' OR partner='".$uid."'");
$res = mysql_query("DELETE FROM couple WHERE who='".$who."' OR partner='".$who."'");
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='".$msg."', byuid='".$uid."', touid='".$who."', unread='1', timesent='".time()."'");
echo "You have successfully divorced $nick !
";
}else{
echo "Database Error!
";
}
echo "<a href=\"index.php?action=main&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&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't Send your Request to .."
Hate romains that take codes from here and tell to all that they had made that External image (may be gone)