$tccell1s colspan=2>View private messages |". (false ? " View votes |" : "") ." Edit user";
}
}
$aim=str_replace(" ","+",$user[aim]);
$schname=mysql_fetch_array(mysql_query("SELECT name FROM schemes WHERE id=$user[scheme]"));
$schname=$schname[name];
$numdays=(ctime()-$user[regdate])/86400;
$user[signature]=doreplace($user[signature],$user[posts],$numdays,$user[name]);
// $user[signature]=doreplace2($user[signature],$user[posts],$numdays,$user[name]);
$user[postheader]=doreplace($user[postheader],$user[posts],$numdays,$user[name]);
// $user[postheader]=doreplace2($user[postheader],$user[posts],$numdays,$user[name]);
if($user[picture]) $picture="
";
$icqicon="
";
if(!$user[icq]){
$user[icq]="";
$icqicon="";
}
$tccellha="$fonthead";
$namecolor=getnamecolor($user[sex],$user[powerlevel]);
$tzoffset=$user[timezone];
$tzoffrel=$tzoffset-$loguser[timezone];
$tzdate=date($dateformat,ctime()+$tzoffset*3600);
if($user[birthday]){
$birthday=date("l, F j, Y",$user[birthday]);
$age="(".floor((ctime()-$user[birthday])/86400/365.2425)." years ". ($id == 1 && !$x_hacks['host'] ? "old ago" : "old") .")";
}
$exp=calcexp($user[posts],(ctime()-$user[regdate])/86400);
$lvl=calclvl($exp);
$expleft=calcexpleft($exp);
$expstatus="Level: $lvl EXP: $exp (for next level: $expleft)";
if($user[posts]) $expstatus.=" Gain: ".calcexpgainpost($user[posts],(ctime()-$user[regdate])/86400)." EXP per post, ".calcexpgaintime($user[posts],(ctime()-$user[regdate])/86400)." seconds to gain 1 EXP when idle";
$postavg=sprintf("%01.2f",$user[posts]/(ctime()-$user[regdate])*86400);
$totalwidth=116;
$barwidth=@floor(($user[posts]/$maxposts)*$totalwidth);
if($barwidth<0) $barwidth=0;
if($barwidth) $baron=" ";
if($barwidth<$totalwidth) $baroff=" ";
$bar=" $baron$baroff ";
if(!$topposts) $topposts=5000;
if($user[posts]) $projdate=ctime()+(ctime()-$user[regdate])*($topposts-$user[posts])/($user[posts]);
if(!$user[posts] or $user[posts]>=$topposts or $projdate>2000000000 or $projdate ";
$homepagename=$user[homepageurl];
if($user[homepagename]) $homepagename="$user[homepagename] - $user[homepageurl]";
if($user[postbg]) $postbg="";
loadtlayout();
$user[headtext]=$user[postheader];
$user[signtext]=$user[signature];
$user[text] = "Sample text. [quote=fhqwhgads]A sample quote, with a link, for testing your layout.[/quote]This is how your post will appear.";
$user[uid] = $_GET['id'];
// so that layouts show up regardless of setting (for obvious reasons)
$loguser[viewsig] = 1;
// shop/rpg such
$shops=mysql_query('SELECT * FROM itemcateg ORDER BY corder');
$eq=mysql_fetch_array(mysql_query("SELECT * FROM users_rpg WHERE uid=$id"));
$eqitems=mysql_query("SELECT * FROM items WHERE id=$eq[eq1] OR id=$eq[eq2] OR id=$eq[eq3] OR id=$eq[eq4] OR id=$eq[eq5] OR id=$eq[eq6] OR id=$eq[eq7]");
while($item=mysql_fetch_array($eqitems)) $items[$item[id]]=$item;
while($shop=mysql_fetch_array($shops))
$shoplist.="
$tccell1s>$shop[name]
$tccell2s width=100%>".$items[$eq['eq'.$shop[id]]][name]." ";
$user['date'] = ctime();
/* extra munging for whatever reason */
$user[email] = urlencode($user[email]);
print "
$header
$fonttag Profile for $minipic$user[name]
$tblstart
$tccellh colspan=2>General information
$tccell1l width=150>Total posts $tccell2l>$user[posts] ($postavg per day) $projdate $bar
$tccell1l width=150>Total threads $tccell2l>$threadsposted
$tccell1l width=150>EXP $tccell2l>$expstatus
". (false ? " $tccell1l width=150>User rating $tccell2l>$ratingstatus" : "") ."
$tccell1l width=150>Registered on $tccell2l>".@date($dateformat,$user[regdate]+$tzoff)." (".floor((ctime()-$user[regdate])/86400)." days ago)
$tccell1l width=150>Last post $tccell2l>$lastpostdate$lastpostlink
$tccell1l width=150>Last activity $tccell2l>".date($dateformat,$user[lastactivity]+$tzoff)."$lastip
$tblend
$tblstart
$tccellh colspan=2>Contact information
$tccell1l width=150>Email address $tccell2l>$user[email]
$tccell1l width=150>Homepage $tccell2l>$homepagename
$tccell1l width=150>ICQ number $tccell2l>$user[icq] $icqicon
$tccell1l width=150>AIM screen name $tccell2l>$user[aim]
$tblend
$tblstart
$tccellh colspan=2>User settings
$tccell1l width=150>Timezone offset $tccell2l>$tzoffset hours from the server, $tzoffrel hours from you (current time: $tzdate)
$tccell1l width=150>Items per page $tccell2l>". $user['threadsperpage'] ." threads, ". $user['postsperpage'] ." posts
$tccell1l width=150>Color scheme $tccell2l>".$schname."
$tblend
|
$tblstart
$tccellh>RPG status
$tccell1l>
$tblend
$tblstart
$tccellh colspan=2>Equipped Items
$shoplist
$tblend
| |
$tblstart
$tccellh colspan=2>Personal information
$tccell1l width=150>Real name $tccell2l>$user[realname]
$tccell1l width=150>Location $tccell2l>$user[location]
$tccell1l width=150>Birthday $tccell2l>$birthday $age
$tccell1l width=150>User bio $tccell2l>". dofilters(doreplace2(doreplace($user['bio'], $user['posts'], (ctime()-$user['regdate'])/86400, $user['name']))) ."
$tblend
$tblstart
$tccellh colspan=2>Sample post
". threadpost($user, 1) ."
$tblend
$tblstart
$tccellhs colspan=2>Options
$tccell2s colspan=2>
Show posts |
List posts by this user |
View threads by this user
$sendpmsg$ratelink
$tccell2s colspan=2>
Posts by time of day |
Posts by thread |
Posts by forum$sneek
$tblend$footer
";
printtimedif($startingtime);
?>
|