<?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();
}
if($show=="")
{
addonline($uid,"Viewing User Profile","");
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
echo "<div class=\"box_cen\" align=\"center\">";
$whonick = getnick_uid($who);
echo "<a href=\"prov.php?show=viewuser&hits=$hits&who=$who\">$whonick's Basic Profile</a>";
echo "<div class=\"box_sub\" align=\"left\">";
$regd = mysql_fetch_array(mysql_query("SELECT regdate FROM mx_users WHERE id='".$who."'"));
$sage = time()-$regd[0];
$rwage = ceil($sage/(24*60*60));
echo "• RemiXchaT.COM Age: <b>$rwage days</b><br/>";
echo "• RemiXchaT.COM Rating(0-5): <b>".geturate($who)."</b><br/>";
$pstn = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_posts WHERE uid='".$who."'"));
$ppd = $pstn[0]/$rwage;
echo "• Posts Info: <b>$pstn[0]</b> posts, with average of <b>$ppd</b> posts/day<br/>";
$chpn = mysql_fetch_array(mysql_query("SELECT chmsgs FROM mx_users WHERE id='".$who."'"));
$cpd = $chpn[0]/$rwage;
echo "• Chating Info: <b>$chpn[0]</b> chat messages, with average of <b>$cpd</b> chat messages/day<br/>";
$gbsg = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_gbook WHERE gbsigner='".$who."'"));
echo "• Have Signed: <b>$gbsg[0] Testimonials</b><br/>";
$brts = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_brate WHERE uid='".$who."'"));
echo "• Have Rated: <b>$brts[0] Blogs</b><br/>";
$pvts = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_presults WHERE uid='".$who."'"));
echo "• Have Voted in <b>$pvts[0] Polls</b><br/>";
$strd = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_private WHERE touid='".$who."' AND starred='1'"));
echo "• Starred PMs: <b>$strd[0]</b><br/><hr>";
echo "• <a href=\"uinfo.php?show=fsts&hits=$hits&who=$who\">Posts In forums</a><br/>";
echo "• <a href=\"uinfo.php?show=cinf&hits=$hits&who=$who\">Contact Info</a><br/>";
echo "• <a href=\"uinfo.php?show=look&hits=$hits&who=$who\">Looking</a><br/>";
echo "• <a href=\"uinfo.php?show=pers&hits=$hits&who=$who\">Personality</a><br/>";
echo "• <a href=\"uinfo.php?show=rwidc&hits=$hits&who=$who\">User ID Card</a>";
echo "</div>";
echo "<a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a></div>";
include("wapv.php");
echo "</body>";
}
else if($show=="rwidc")
{
addonline(getuid_hits($hits),"RemiXchaT.COM ID","");
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=\"RemiXchaT.CoM ID\">";
echo "<div class=\"box_cen\" align=\"center\">"; echo "<b>User ID card</b>";
echo "<div class=\"box_sub\" align=\"center\">";
echo "<img src=\"rwidc.php?id=$who\" alt=\"ll id\"/><br/><br/>";
echo "The source for this ID card is http://RemiXchaT.com/rwidc.php?id=$who<br/><br/>";
echo "To look at your card Go to CPanel";
echo "</div>";
echo "<a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a></div>";
include("wapv.php");
echo "</body>";
}
else if($show=="fsts")
{
addonline($uid,"Viewing User Profile","");
$whonick = getnick_uid($who);
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
echo "<div class=\"box_cen\" align=\"center\">";
echo "<b>Extended Info</b>";
echo "<div class=\"box_sub\" align=\"left\">";
$pst = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_posts WHERE uid='".$who."'"));
$frms = mysql_query("SELECT id, name FROM mx_forums WHERE clubid='0' ORDER BY name");
while ($frm=mysql_fetch_array($frms))
{
$nops = mysql_fetch_array(mysql_query("SELECT COUNT(*) as nops, a.uid FROM mx_posts a INNER JOIN mx_topics b ON a.tid = b.id WHERE a.uid='".$who."' AND b.fid='".$frm[0]."' GROUP BY a.uid "));
$prc = ceil(($nops[0]/$pst[0])*100);
echo htmlspecialchars($frm[1]).": <b>$nops[0] ($prc%)</b>";
}
echo "</div><a href=\"prov.php?show=viewuser&hits=$hits&who=$who\">$whonick</a><br/>";
echo "<a href=\"uinfo.php?hits=$hits&who=$who\">Extended Info</a><br/>";
echo "<a href=\"index.php?show=main&hits=$hits\">Home</a>";
echo "</div>";
include("wapv.php");
echo "</body>";
}
else if($show=="cinf")
{
addonline($uid,"Viewing User Profile","");
$whonick = getnick_uid($who);
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
echo "<div class=\"box_cen\" align=\"center\">";
echo "<b>Extended Info</b>";
echo "<div class=\"box_sub\" align=\"left\">";
$inf1 = mysql_fetch_array(mysql_query("SELECT country, city, street, phoneno, realname, budsonly, sitedscr FROM mx_xinfo WHERE uid='".$who."'"));
$inf2 = mysql_fetch_array(mysql_query("SELECT site, email FROM mx_users WHERE id='".$who."'"));
if($inf1[5]=='1')
{
if(($uid==$who)||(arebuds($uid, $who)))
{
$rln = $inf1[4];
$str = $inf1[2];
$phn = $inf1[3];
}else{
$rln = "Can't view";
$str = "Can't view";
$phn = "Can't view";
}
}else{
$rln = $inf1[4];
$str = $inf1[2];
$phn = $inf1[3];
}
echo "Real Name: $rln<br/>";
echo "Country: $inf1[0]<br/>";
echo "City: $inf1[1]<br/>";
echo "Street: $str<br/>";
echo "Site: <a href=\"$inf2[0]\">$inf2[0]</a><br/>";
echo "Site description: $inf1[6]<br/>";
echo "Phone No.: $phn<br/>";
echo "E-Mail: $inf2[1]</div>";
echo "<a href=\"prov.php?show=viewuser&hits=$hits&who=$who\">$whonick</a><br/>";
echo "<a href=\"uinfo.php?hits=$hits&who=$who\">Extended Info</a><br/>";
echo "<a href=\"index.php?show=main&hits=$hits\">Home</a></div>";
include("wapv.php");
echo "</body>";
}
else if($show=="look")
{
addonline($uid,"Viewing User Profile","");
$whonick = getnick_uid($who);
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
echo "<div class=\"box_cen\" align=\"center\">";
echo "<b>Extended Info</b>";
echo "<div class=\"box_sub\" align=\"left\">";
$inf1 = mysql_fetch_array(mysql_query("SELECT sexpre, height, weight, racerel, hairtype, eyescolor FROM mx_xinfo WHERE uid='".$who."'"));
$inf2 = mysql_fetch_array(mysql_query("SELECT sex FROM mx_users WHERE id='".$who."'"));
if($inf1[0]=="M" && $inf2[0]=="F")
{
$sxp = "Straight";
}else if($inf1[0]=="F" && $inf2[0]=="M")
{
$sxp = "Straight";
}else if($inf1[0]=="M" && $inf2[0]=="M"){
$sxp = "Gay";
}else if($inf1[0]=="F" && $inf2[0]=="F"){
$sxp = "Lesbian";
}else if($inf1[0]=="B"){
$sxp = "Bisexual";
}else{
$sxp = "inapplicable";
}
if($inf2[0]=="M")
{
$usx = "Male";
}else if($inf2[0]=="F")
{
$usx = "Female";
}else{
$usx = "LadyGuy?";
}
echo "Sex: $usx<br/>";
echo "Orientation: $sxp<br/>";
echo "Height: $inf1[1]<br/>";
echo "Weight: $inf1[2]<br/>";
echo "Ethnic origin: $inf1[3]<br/>";
echo "Hair: $inf1[4]<br/>";
echo "Eyes: $inf1[5]</div>";
echo "<a href=\"prov.php?show=viewuser&hits=$hits&who=$who\">$whonick</a><br/>";
echo "<a href=\"uinfo.php?hits=$hits&who=$who\">Extended Info</a><br/>";
echo "<a href=\"index.php?show=main&hits=$hits\">Home</a></div>";
include("wapv.php");
echo "</body>";
}
else if($show=="pers")
{
addonline($uid,"Viewing User Profile","");
$whonick = getnick_uid($who);
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
echo "<div class=\"box_cen\" align=\"center\">";
echo "<b>Extended Info</b>";
echo "<div class=\"box_sub\" align=\"left\">";
$inf1 = mysql_fetch_array(mysql_query("SELECT likes, deslikes, habitsb, habitsg, favsport, favmusic, moretext FROM mx_xinfo WHERE uid='".$who."'"));
echo "<b>Likes:</b> ".parsemsg($inf1[0])."<br/>";
echo "<b>Dislikes:</b> ".parsemsg($inf1[1])."<br/>";
echo "<b>Bad Habits:</b> ".parsemsg($inf1[2])."<br/>";
echo "<b>Good Habits:</b> ".parsemsg($inf1[3])."<br/>";
echo "<b>Sport:</b> ".parsemsg($inf1[4])."<br/>";
echo "<b>Music:</b> ".parsemsg($inf1[5])."<br/>";
echo "<b>More text:</b> ".parsemsg($inf1[6])."</div>";
echo "<a href=\"prov.php?show=viewuser&hits=$hits&who=$who\">$whonick</a><br/>";
echo "<a href=\"uinfo.php?hits=$hits&who=$who\">Extended Info</a><br/>";
echo "<a href=\"index.php?show=main&hits=$hits\">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>