/////////////////////////////////////////////////////////////////// Profil USER
else if($action=="viewuser")
{
if(validare(getuid_sid($sid))<1)
{
echo "
";
echo "";
echo "Contul tau nu a fost validat
Este necesar sa-ti completezi corect profilul
Si sa astepti validarea contului tau
";
echo "Verificarea si activarea contului dumneavoastra poate dura pana la 2 de ore, va rugam asteptati.
Va multumim!
";
echo "";
echo "Daca nu vreti sa asteptati dati un sms la 0752421301
";
echo "
";
echo "";
echo "+Setari Profil
";
echo "------
";
echo " Prima Pagina
";
echo "© $sitte
";
echo "";
echo "
";
echo "";
echo "";
exit();
}
$whonick = getnick_uid($who);
addonline(getuid_sid($sid),"Vizualizare profil user $whonick","index.php?action=viewuser&who=$who");
//add visitor
if ($uid != $who)
$res = mysql_query("INSERT INTO lastview SET whonick='". $whonick ."', lastview='".getnick_uid($uid)."', ltime='".time()."'");
// update nr visits
$res = mysql_query("UPDATE lib3rtymrc_users SET nr_visits = nr_visits + 1 WHERE id = $who");
echo "
";
echo "";
//include("popups.php");
$unreadinbox=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_private WHERE unread='1' AND touid='".$uid."'"));
$pmtotl=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_private WHERE touid='".$uid."'"));
$unrd="[".$unreadinbox[0]."]";
if ($unreadinbox[0]>0)
{
echo "Ai:$unrdPMs
-----
";
}
$lastloc=$_GET["lstloc"];
if($lastloc=="cht"){
$rid= $_GET["rid"];
$rooms = mysql_fetch_array(mysql_query("SELECT id, name FROM lib3rtymrc_rooms WHERE id='".$rid."'"));
$rname = $rooms[1];
}
if($who==""||$who==0)
{
$mnick = $_POST["mnick"];
$who = getuid_nick($mnick);
}
$whonick = getnick_uid($who);
$bmsg = parsemsg(getbudmsg($who), $sid);
///////////Alerte
$uid = getuid_sid($sid);
$unreadpopup=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_popups WHERE unread='1' AND touid='".$uid."'"));
if ($unreadpopup[0]>0)
{
echo popup($sid);
echo "
";
echo "";
echo "";
exit();
}
//////////
if($whonick!="")
{
if(isonline($who))
{
$iml = "
";
}else{
$iml = "
";
}
$bmsg = parsemsg(getbudmsg($who), $sid);
echo "
Mesaj Statut:";
echo "
$bmsg
";
$me = getuid_sid($sid);
if($who=="$me")
{
$use = "[ Seteaza status acum ]";
}else{
$use = "";
}
echo "$use";
echo "
-----
";
// echo "Trimite:
";
echo "Trimite PM
";
echo "|";
echo "»Alerta«
";
// if (arebuds($uid, $who))
//{
// echo "»Alerta«
";
// }
// ultimele vizite
if ($who == $uid)
{
echo "-----
";
echo "vizitatorii Mei";
echo "
";
}
// get nr visits
list($nr_visits) = mysql_fetch_array(mysql_query("SELECT nr_visits FROM lib3rtymrc_users WHERE id = $who"));
//
echo "Vizualizat de $nr_visits ori";
echo "
";
echo "istoric nick-uri
";
$cati = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_users WHERE adusde='".$who."'"));
if($cati[0]>1){
$mentor = "Mentor pentru $cati[0] useri";
} else if($cati[0]==1){
$mentor = "Mentor pentru un user";
}else if($cati[0]==0){
$mentor = "Nu este mentor";
}
echo "$mentor
";
if($uid!=$who)
if(isonline($who))
echo "»Play RPG«
";
echo "";
echo "
";
// avatar
$avlink = getavatar($who);
if ($avlink == '')
{
$sex = @mysql_fetch_array(mysql_query("SELECT sex FROM lib3rtymrc_users WHERE id='".$who."'"));
if ($sex[0] == 'F')
$avlink = "../images/girl.gif";
else
$avlink = "../images/boy.gif";
}
echo "
";
/* $avat = mysql_fetch_array(mysql_query("SELECT setavatar FROM lib3rtymrc_users WHERE id='".$who."'"));
if($avat[0]=="1")
{
echo "
";
}else{
echo "
";
}*/
//echo "»Descarca avatar«
";
$invizibil = mysql_fetch_array(mysql_query("SELECT hidden FROM lib3rtymrc_users WHERE id='".$who."'"));
if($invizibil[0]==1){
echo "".getsimbol($who)."$whonick acum $iml
";
$plc = mysql_fetch_array(mysql_query("SELECT place FROM lib3rtymrc_online WHERE userid='".$who."'"));
$uact = "$plc[0]
";
if(isonline($who))
echo "Situare: $uact";
////////////////////// poanta q actiunile
$regd = mysql_fetch_array(mysql_query("SELECT regdate, lastvst, lastact FROM lib3rtymrc_users WHERE id='".$who."'"));
$sage = time()-$regd[2];
$rwage = gettimemsg($sage);
$lastact = time()-$regd[2];
$days=0;
$mins=0;
$hours=0;
if ($lastact>60)
{
$secs=$lastact%60;
$mins=$lastact/60;
$mins=(integer)$mins;
}
if ($mins>60)
{
$hours=$mins/60;
$hours=(integer)$hours;
$mins=$mins%60;
}
if ($hours>24)
{
$days=$hours/24;
$days=(integer)$days;
$hours=$hours%24;
}
echo "Activ in urma cu: ";
if($days>0)
{
echo "$days zile, $hours ore, $mins minute, $secs secunde";
}
if($days<1)
{
if($hours>0)
{
echo "$hours ore, $mins minute, $secs secunde";
}
if($hours<1)
{
echo "$mins minute, $secs secunde";
}}
echo "
";
//
}else{
echo "".getsimbol($who)."$whonick acum deconectat
";
}
//echo "$whonick site personal
";
// echo "$iml
";
if(isonline($who))
{
////////////////
////////////////////// conectat de ....
$regd = mysql_fetch_array(mysql_query("SELECT regdate, lastvst, logat FROM lib3rtymrc_users WHERE id='".$who."'"));
$sage = time()-$regd[2];
$rwage = gettimemsg($sage);
$lastact = time()-$regd[2];
$days=0;
$mins=0;
$hours=0;
if ($lastact>60)
{
$secs=$lastact%60;
$mins=$lastact/60;
$mins=(integer)$mins;
}
if ($mins>60)
{
$hours=$mins/60;
$hours=(integer)$hours;
$mins=$mins%60;
}
if ($hours>24)
{
$days=$hours/24;
$days=(integer)$days;
$hours=$hours%24;
}
//echo "Conectat de: ";
//if($days>0)
//{
//echo "$days zile, $hours ore, $mins minute, $secs secunde";
//}
//if($days<1)
//{
//
//if($hours>0)
//{
//echo "$hours ore, $mins minute, $secs secunde";
//}
//if($hours<1)
//{
//echo "$mins minute, $secs secunde";
//}}
//echo "
";
/////////////////////// pana aici
}else{
/////////////////////// pana aici
}
//
// if(isonline($who))
// {
// $nopl = mysql_fetch_array(mysql_query("SELECT logat FROM lib3rtymrc_users WHERE id='".$who."'"));
// $jdt = date("H:i:s",$nopl[0]);
// $oraf = "Conectat de la ora: $jdt
";
// }else{
// $oraf = "";
// }
echo "$oraf";
echo "-----
";
/// contoarele online
$time = mysql_fetch_array(mysql_query("SELECT otime, mtime FROM lib3rtymrc_users WHERE id='".$who."'"));
$regd = mysql_fetch_array(mysql_query("SELECT regdate FROM lib3rtymrc_users WHERE id='".$who."'"));
$etime = mktime(0,0,0,3,6,2007);
if($etime>$regd[0])
$dtime = time()-$etime;
else
$dtime = time()-$regd[0];
$timeage = ceil($dtime/(24*60*60));
$avgtime = ceil($time[0]/$timeage);
$avgmsgtime = gettimemsg($avgtime);
$otime = gettimemsg($time[0]);
$mtime = gettimemsg($time[1]);
echo "Timp Total Online: $otime
";
echo "Conectat Zilnic: $avgmsgtime
";
//echo "-----
";
$uid = getuid_sid($sid);
if(budres($uid, $who)==0)
{
echo "»[+] adauga la prieteni
";
}else if(budres($uid, $who)==1)
{
echo "* cerere de prietenie in curs *
";
}else if(budres($uid, $who)==2)
{
echo "»[-] sterge de la prieteni
";
}
$ires = ignoreres($uid, $who);
if(es==2)
{
echo "»[#] sterge de la ignorati
";
}else if($ires==1)
{
echo "»[#] adauga la ignorati
";
}
$countpics = mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM lib3rtymrc_gallery WHERE uid='".$who."'"));
echo "Galerie foto:$countpics[0]
";
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_gbook WHERE gbowner='".$who."' AND reported = 0"));
echo "Comentarii:$noi[0]
";
// dedicatii
//
list($dedicatii_primite) = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM cam_dedicatii WHERE touid = $who"));
list($dedicatii_trimise) = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM cam_dedicatii WHERE byuid = $who"));
//
echo '-----
';
echo "Dedica
";
echo 'Dedicatii: ';
echo "$dedicatii_primite";
echo ' / ';
echo "$dedicatii_trimise";
echo '
';
$topconectati = mysql_fetch_array(mysql_query("SELECT topcon FROM lib3rtymrc_users WHERE id='".$who."'"));
echo "Loc in top online:$topconectati[0]
";
echo "-----
";
echo "ID: $who
";
echo "Rang: ".getstatus($who)."
";
//echo "Reputatie: ".getreputatie($who)."
";
$nopl = mysql_fetch_array(mysql_query("SELECT sex, birthday, location FROM lib3rtymrc_users WHERE id='".$who."'"));
$uage = getage($nopl[1]);
if($nopl[0]=='M')
{
$usex = "Barbat";
}else if($nopl[0]=='F'){
$usex = "Femeie";
}else{
$usex = "Fara sex";
}
$nopl[2] = htmlspecialchars($nopl[2]);
echo "Varsta: $uage
";
$datanasterii = mysql_fetch_array(mysql_query("SELECT birthday FROM lib3rtymrc_users WHERE id='".$who."'"));
echo "Zodia: ".obtinedatanasterii($datanasterii[0],$sid);
$regd = mysql_fetch_array(mysql_query("SELECT regdate FROM lib3rtymrc_users WHERE id='".$who."'"));
$sage = time()-$regd[0];
$rwage = ceil($sage/(24*60*60));
echo "
Sex: $usex
";
echo "Locatitatea: $nopl[2]";
echo "
";
$noplx = mysql_fetch_array(mysql_query("SELECT plusses FROM lib3rtymrc_users WHERE id='".$who."'"));
echo "Varsta $numesite: $rwage zile
";
echo "Trimite Cadou
";
//echo "Plusuri: $noplx[0]+
";
echo "Monezi : ".monezi($who)."
";
echo "Plusuri: ".getplusses($who)."
";
$nob = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_buddies WHERE (uid='".$who."' OR tid='".$who."') AND agreed='1'"));
echo "Prieteni: $nob[0]
";
$nopl = mysql_fetch_array(mysql_query("SELECT site FROM lib3rtymrc_users WHERE id='".$who."'"));
$motto = parsepm($nopl[0], $sid);
$judg = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_judges WHERE uid='".$who."'"));
if($judg[0]>0)
{
echo "-----
* Organizator Quizz *
";
echo "-----
";
}
/////////////////////////////////////////////
///////////////////////////////
//echo "Postari In forumuri
";
$unol = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_topics WHERE authorid='".$who."'"));
$tlink = "$unol[0]";
//echo "Topicuri: $tlink
";
$unop = mysql_fetch_array(mysql_query("SELECT posts FROM lib3rtymrc_users WHERE id='".$who."'"));
$unol = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_posts WHERE uid='".$who."'"));
$plink = "$unol[0]";
//echo "Postari: $plink/$unop[0]
";
//////////////////////////////////////////////
if($adopt[0]==0)
{
echo "Copil: ";
$nopl = mysql_fetch_array(mysql_query("SELECT sex FROM lib3rtymrc_users WHERE id='".$who."'"));
$couple = mysql_fetch_array(mysql_query("SELECT accept, who, partner FROM adoptie WHERE who='".$who."'"));
$couples = mysql_fetch_array(mysql_query("SELECT accept, who, partner FROM adoptie WHERE partner='".$who."'"));
if($couple[0]=='1')
{
$mate = $couple[2];
$mate1 = getnick_uid($mate);
if($nopl[0]=='M')
{
echo " $mate1
";
}else if($nopl[0]=='F'){
echo " $mate1
";
}
}
else if($couples[0]=='1')
{
$mate = $couples[1];
$mate1 = getnick_uid($mate);
if($nopl[0]=='M')
{
echo " $mate1
";
}else if($nopl[0]=='F'){
echo " $mate1
";
}
}else{
if($nopl[0]=='M')
{
echo "nu are
";
}else if($nopl[0]=='F'){
echo "nu are
";
}else{
echo "nu are
";
}
}
}else if($adopt[0]==1){
echo "Adoptat:
";
$nopl = mysql_fetch_array(mysql_query("SELECT sex FROM dk_users WHERE id='".$who."'"));
$couple = mysql_fetch_array(mysql_query("SELECT accept, who, partner FROM adoptie WHERE who='".$who."'"));
$couples = mysql_fetch_array(mysql_query("SELECT accept, who, partner FROM adoptie WHERE partner='".$who."'"));
if($couple[0]=='1')
{
$mate = $couple[2];
$mate1 = getnick_uid($mate);
if($nopl[0]=='M')
{
echo " $mate1
";
}else if($nopl[0]=='F'){
echo " $mate1
";
}
}
else if($couples[0]=='1')
{
$mate = $couples[1];
$mate1 = getnick_uid($mate);
if($nopl[0]=='M')
{
echo " $mate1
";
}else if($nopl[0]=='F'){
echo "adopt cu $mate1
";
}
}
}
$cati = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM couple WHERE who='".$who."' OR partner='".$who."'"));
$cum = mysql_fetch_array(mysql_query("SELECT accept, who, partner FROM couple WHERE who='".$who."' OR partner='".$who."'"));
if($cum[0]==1&&$cati[0]!==0){
if($cum[1]==$who){
$cumx= "";
$cumxid= "";
}else{
$cumx= "".getnick_uid($cum[1])."";
$cumxid= $cum[1];
}
if($cum[2]==$who){
$cumx2= "";
$cumx2id= "";
}else{
$cumx2= "".getnick_uid($cum[2])."";
$cumx2id= $cum[2];
}
$casatorit = mysql_fetch_array(mysql_query("SELECT casatorit FROM couple WHERE who='".$who."' OR partner='".$who."'"));
if($casatorit[0]==0)
{
$nopl = mysql_fetch_array(mysql_query("SELECT sex FROM lib3rtymrc_users WHERE id='".$who."'"));
if($nopl[0]=='M')
{
$stare = "logodit";
}else if($nopl[0]=='F'){
$stare = "logodita";
}else{
$stare = "logodit";
}
}else{
$nopl = mysql_fetch_array(mysql_query("SELECT sex FROM lib3rtymrc_users WHERE id='".$who."'"));
if($nopl[0]=='M')
{
$stare = "casatorit";
}else if($nopl[0]=='F'){
$stare = "casatorita";
}else{
$stare = "casatorit";
}
}
$link = "$stare cu $cumx$cumx2
";
$cuplu = mysql_fetch_array(mysql_query("SELECT id FROM couple WHERE who='".$who."' OR partner='".$who."'"));
$nas = mysql_fetch_array(mysql_query("SELECT nas1, nas2, datans FROM couple WHERE id='".$cuplu[0]."'"));
if($nas[0]!=="" && $nas[1]!==""){
$nasu1 = getnick_uid($nas[0]);
$nasu2 = getnick_uid($nas[1]);
$nas = "Nasii: $nasu1 + $nasu2
";
}else{
$nas = "Nu au nasi";
}
}else if($cum[0]==0||$cati[0]==0){
$nopl = mysql_fetch_array(mysql_query("SELECT sex FROM lib3rtymrc_users WHERE id='".$who."'"));
if($nopl[0]=='M')
{
$starex = "singur";
}else if($nopl[0]=='F'){
$starex = "singura";
}else{
$starex = "singur";
}
$link = "$starex
";
$nas = "";
}
echo "Stare Civila: $link$nas
";
//echo "
";
$exet = mysql_fetch_array(mysql_query("SELECT adusde FROM lib3rtymrc_users WHERE id='".$who."'"));
$linkx = "".getnick_uid($exet[0])."
";
if($exet[0]!==""){
echo "Mentor: $linkx";
}
// echo "-----
";
$nopl = mysql_fetch_array(mysql_query("SELECT signature FROM lib3rtymrc_users WHERE id='".$who."'"));
$sign = parsepm($nopl[0], $sid);
echo "MoTTo: $sign";
echo "
-----
";
echo "Alte Detalii:
";
echo "Contact|";
echo "Infatisare
";
echo "Statistici|";
echo "Personalitate
";
echo "";
//echo "
";
echo "-----
";
echo "»Distreaza-te cu userul«
";
echo "»Animale Virtuale«
";
echo "»$numesite ID Card«
";
echo "»doneaza puncte joc«
";
//$melodie = mysql_fetch_array(mysql_query("SELECT mel FROM lib3rtymrc_users WHERE id='".$who."'"));
$nume_melodie = mysql_fetch_array(mysql_query("SELECT title FROM lib3rtymrc_manele WHERE id='".$melodie[0]."'"));
echo "Melodie favorita:";
$mrcrazymelodie = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_manele WHERE id='$melodie[0]'"));
if($mrcrazymelodie[0]=="0"){
if ($uid==$who)
{
echo "nesetata
";
}else{
echo "nesetata
";
}
}else{
echo " ".htmlspecialchars($nume_melodie[0
])."
";
}
/////////////////////// pana aici
if(ismod(getuid_sid($sid)))
{
$nopl = mysql_fetch_array(mysql_query("SELECT browserm FROM lib3rtymrc_users WHERE id='".$who."'"));
echo "» Browser: $nopl[0]
";
$uipadd = mysql_fetch_array(mysql_query("SELECT ipadd FROM lib3rtymrc_users WHERE id='".$who."'"));
echo "» IP:$uipadd[0]
";
$nob = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_buddies WHERE (uid='".$who."' OR tid='".$who."') AND agreed='1'"));
echo "» Prieteni: $nob[0]
";
}
echo "";
if(cansee(getuid_sid($sid), $who))
{
echo "";
$unol = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM lib3rtymrc_users WHERE id='".$who."'"));
if($unol[0]!="")
{
echo "Motiv penalizare: $unol[0]
";
}
$unol = mysql_fetch_array(mysql_query("SELECT lastplreas FROM lib3rtymrc_users WHERE id='".$who."'"));
if($unol[0]!="")
{
echo "Motiv plusuri: $unol[0]
";
}
echo "";
}
echo "
";
echo "
";
$judg = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_judges WHERE uid='".getuid_sid($sid)."'"));
if(ismod(getuid_sid($sid)))
{
///////////////////////////////// comenzi :D
///////////////////////////////// comenzi :D
include("comenzi.php");
}
echo "";
if(ismod(getuid_sid($sid)))
{
echo "Adauga monezi
";
echo "Adauga plusuri
";
echo "Acorda puncte Quizz/Fazan
";
}
}else{
echo " Membru nu exista
";
}
echo "-----
";
echo "";
echo "Acasa";
echo "
";
echo "";
}