Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Draugu sistema

Parašė traskis· 2008 Bir. 13 13:06:09
#37

<?php
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";
include LOCALE.LOCALESET."members-profile.php";
include LOCALE.LOCALESET."user_fields.php";
include LOCALE.LOCALESET."warns.php";
include_once INCLUDES."countries.php";
include INCLUDES."zodiakas.php";


if (!isset($group_id)) {
 if (!isset($lookup) || !isNum($lookup)) fallback("index.php");
 $result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_id='$lookup'");
 if (dbrows($result)) { $data = dbarray($result); } else { redirect("index.php"); }
 
 // freundschaftssystem >

$result_ig = dbquery("SELECT * FROM ".$db_prefix."buddys_igno WHERE buddys_igno_usr2 = ".$userdata['user_id']." AND buddys_igno_usr1 = ".$data['user_id']."");
$data_ig = dbarray($result_ig);
if($data_ig['buddys_igno_id'] == ""){

// freundschaftssystem <
 
 opentable($locale['420']);

 tablebreak();
$data['user_location'] = csm_getLocation($data['user_location']);
echo "<table cellpadding='0' cellspacing='0' width='100%' class='borders-3d'>
<tr>
<td class='padding-9' align='left'>";
   if ($data['gender'] == 0) {
echo "";
} elseif ($data['gender'] == 1) {
echo "<img src='".IMAGES."lytis/vyras.gif' alt='Vaikinas' title='Vaikinas'>&nbsp;";
} elseif ($data['gender'] == 2) {
echo "<img src='".IMAGES."lytis/mergina.gif' alt='Mergina' title='Mergina'>&nbsp;";
}
echo "".zodiakas($data['user_birthdate'])."<b><span style='color:#027eaa'> ".$data['user_name']."</span></b>  ";
echo "<br /><span style='color:#027eaa'>
".getRank($data['user_id'])."
</font></td>
<td class='padding-9' align='right'><span style='color:#027eaa'>Nario Statusas: <font class='red'><b>";
if ($data['user_id']== 4) {
echo "Uploaderis";
} else if ($data['user_id']== 127) {
echo "Uploaderis";
} else if ($data['user_id']== 15) {
echo "Uploaderis";
} else if ($data['user_id']== 56) {
echo "Uploaderis";
} else {
echo "".getuserlevel($data['user_level'])."";
}
echo "</b></font></td>
</tr>
</table>";


echo "<table cellpadding='0' cellspacing='0' width='100%' >\n<tr>\n";
echo "<td align='center' valign='top' width='50%'>";
echo "<table cellpadding='0' cellspacing='0' width='130'><tr><td class='tbl1'>";
 if (!isset($lookup) || !isNum($lookup)) fallback("index.php");
 $result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_id='$lookup'");
 if (dbrows($result)) { $data = dbarray($result); } else { redirect("index.php"); }
   echo "<table align='left' cellpadding='0' cellspacing='1' width='300' style='border: 1px solid #e1e1e1;'>
<tr>
<tr>";
echo "<tr><td align='center' class='tbl2'>";
      if ($data['user_realname']) {
echo "".$data['user_realname']."      ";
}
      if ($data['user_midlename']) {
echo "      ".$data['user_midlename']."";
}
echo "</td></tr>";
echo "<td align='center' width='150' rowspan='6' class='tbl2'>\n";
        if ($data['user_avatar']) {
echo "<center><img src='".IMAGES."avatars/".$data['user_avatar']."' class='paveiksliukas'></center>";
} else {
echo "<center><img src='".IMAGES."avatars/noavatar.png' class='paveiksliukas'></center>";
}

echo "</td>
<td width='1%' class='tbl2' style='white-space:nowrap'>";
      if ($data['user_location']) {
         if (!isset($ft_csm['user'][$data['user_id']])) { $ft_csm['user'][$data['user_id']] = csm_getLocation($data['user_location']); }
         echo "<b>".$locale['u009']." </b> ".$ft_csm['user'][$data['user_id']]."<br>\n";
      }   
      if ($data['user_city']) {      
   echo "<b>Miestas: </b> ".$data['user_city']."<br>\n";
      }
   if ($data['user_birthdate']) {
echo "<b>".$locale['u010']." </b> ".($data['user_birthdate'] != 0 ? showdate("shortdate", $data['user_birthdate']) : $locale['u049'])."<br>";
   }
function amzius ($amzius)
{
list($metai,$menesis,$diena) = explode("-",$amzius);
$metai1 = date("Y") - $metai;
$menesis1 = date("m") - $menesis;
$diena1 = date("d") - $diena;
if ($menesis1 < 0) $metai1--;
elseif (($menesis1==0) && ($diena1 < 0)) $metai1--;
return $metai1;
}
   echo "<b>Am&#254;ius: </b> ".amzius($data['user_birthdate'])."<br>
<b>Statusas: </b>";
if ($data['user_id']== 4) {
echo "Uploaderis";
} else if ($data['user_id']== 15) {
echo "Uploaderis";
} else {
echo "".getuserlevel($data['user_level'])."";
}
echo "<br>";
   if ($data['user_web']) {
echo "<b>Web: </b>";
      $urlprefix = !strstr($data['user_web'], "http://") ? "http://" : "";
      echo " <a href='".$urlprefix.$data['user_web']."' title='".$urlprefix.$data['user_web']."' target='_blank'> ".$urlprefix.$data['user_web']."</a><br>\n";
   }
   if ($data['user_hide_email'] != "1" || iADMIN) {
echo "<b>E-mail: </b> <a href='mailto:".str_replace("@","&#64;",$data['user_email'])."' title='".str_replace("@","&#64;",$data['user_email'])."'> ".str_replace("@","&#64;",$data['user_email'])."</a><br>\n";
   }
   if ($data['user_aim']) {
echo "<b>".$locale['u021']." </b> <a href='skype.php?id=".$data['user_aim']."'> ".$data['user_aim']."</a></td>";
}
echo "</tr></table>\n";



echo "</td></tr><tr><td class='tbl2'>";
echo "<table align='left' cellpadding='1' cellspacing='1' width='300' style='border: 1px solid #e1e1e1;'>
<td class='tbl1'><b>Apra&#0353;ymas<hr></b></td></tr>
<tr>
<td class='tbl'>";
if ($data['user_description']) {
echo "".parseubb(parsesmileys($data['user_description']))."";
} else {
echo "N&#0279;ra apra&#0353;ymo";
}

  echo "</td></tr></table>";
echo "</td></tr><tr><td class='tbl2'>";
 $lastseen = time() - $data['user_lastvisit'];
if($lastseen < 60) {
$lastseen = "Online";
} else {
$lastseen = "Offline";
}
   

echo "</td></tr></table>";
echo "</td>";

      echo "</tr>\n</table>\n";
closetable();


if ($data['user_sig']) {
opentable("Vartotojo Para&#240;as");
echo "<center>".parseubb(parsesmileys($data['user_sig']))."</center>";
closetable();
}

}
   
require_once "side_right.php";
require_once "footer.php";
?>




Galit ideti koda kad rodytu Pakviesti drauga nes pas mane profilis visai kitoks :) as dedu bet man nerodo :)

Redagavo traskis· 2008 Bir. 13 13:06:34