engine= new bbcode_engine; $this->engine->cust_tag("/engine->cust_tag("/>/",">"); //Since \n and
screw up preg, convert them out. $this->engine->cust_tag("/\n/","&nbrlb;"); $this->engine->simple_bbcode_tag("b"); $this->engine->simple_bbcode_tag("i"); $this->engine->simple_bbcode_tag("u"); $this->engine->simple_bbcode_tag("s"); $this->engine->simple_bbcode_tag("sub"); $this->engine->simple_bbcode_tag("sup"); $this->engine->simple_bbcode_tag("big"); $this->engine->simple_bbcode_tag("small"); $this->engine->adv_bbcode_tag("list","ul"); $this->engine->adv_bbcode_tag("olist","ol"); $this->engine->adv_bbcode_tag("item","li"); $this->engine->adv_option_tag("font","font","family"); $this->engine->adv_option_tag("size","font","size"); $this->engine->adv_option_tag("url","a","href"); $this->engine->adv_option_tag("color","font","color"); $this->engine->adv_option_tag("style","span","style"); $this->engine->simp_option_notext("img","src"); $this->engine->simp_bbcode_att("img","src"); $this->engine->cust_tag("/\(c\)/","©"); $this->engine->cust_tag("/\(tm\)/","™"); $this->engine->cust_tag("/\(r\)/","®"); $this->engine->adv_option_tag_em("email","a","href"); $this->engine->adv_bbcode_att_em("email","a","href"); $this->engine->cust_tag("/\[left\](.+?)\[\/left\]/","
\\1
"); $this->engine->cust_tag("/\[center\](.+?)\[\/center\]/","
\\1
"); $this->engine->cust_tag("/\[right\](.+?)\[\/right\]/","
\\1
"); $this->engine->cust_tag("/\[quote=(.+?)\](.+?)\[\/quote\]/","
QUOTE(\\1)
\\2
"); $this->engine->cust_tag("/\[quote\](.+?)\[\/quote\]/","
QUOTE
\\1
"); $this->engine->cust_tag("/\[code\](.+?)\[\/code\]/","
CODE
\\1
"); $this->engine->cust_tag("/\[codebox\](.+?)\[\/codebox\]/","
CODE
\\1
"); $this->engine->cust_tag("/&nbrlb;/","
\n"); } function bbcode_parse($html) { return $this->engine->parse_bbcode($html); } } function strip_html_tags($text) { return preg_replace("/<(.+?)>/is","", $text); } function forums_rank($tp) { if ( $tp < 3 ) { return "#1 Absolute Newbie"; } else if ( $tp < 7 ) { return "#2 Newbie"; } else if ( $tp < 12 ) { return "#3 Beginner"; } else if ( $tp < 18 ) { return "#4 Not Experienced"; } else if ( $tp < 25 ) { return "#5 Rookie"; } else if ( $tp < 50 ) { return "#6 Average"; } else if ( $tp < 100 ) { return "#7 Good"; } else if ( $tp< 200 ) { return "#8 Very Good"; } else if ( $tp < 350 ) { return "#9 Greater Than Average"; } else if ( $tp < 500 ) { return "#10 Experienced"; } else if ( $tp < 750 ) { return "#11 Highly Experienced"; } else if ( $tp < 1200 ) { return "#12 Honoured"; } else if ( $tp < 1800 ) { return "#13 Highly Hounoured"; } else if ( $tp < 2500 ) { return "#14 Respect King"; } else if ( $tp < 5000) { return "#15 True Champion"; } } require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); $_GET['u'] = abs((int) $_GET['u']); $bbc = new bbcode(); if(!$_GET['u']) { print "Invalid use of file"; } else { $q=mysql_query("SELECT u.*,us.*,c.*,h.*,g.*,f.*,ul.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN cities c ON u.location=c.cityid LEFT JOIN houses h ON u.maxwill=h.hWILL LEFT JOIN gangs g ON g.gangID=u.gang LEFT JOIN fedjail f ON f.fed_userid=u.userid LEFT JOIN users_levels ul ON u.user_level=ul.ul_id WHERE u.userid={$_GET['u']}",$c); if(mysql_num_rows($q) == 0) { print "Sorry, we could not find a user with that ID, check your source."; } else { $r=mysql_fetch_array($q); if ( !$r['married'] ) { $marital="No"; $partner=""; } else { $k=mysql_query("SELECT username FROM users WHERE userid={$r['married']}", $c); $mrname=mysql_result($k,0,0); $marital="".$mrname.""; $partner=" [With ".$mrname."]"; } $userl=$r['ul_name']; $lon=date('F j, Y g:i:s a',$r['laston']); $sup=date('F j, Y g:i:s a',$r['signedup']); $ts=$r['strength']+$r['agility']+$r['guard']+$r['labour']+$r['IQ']; $d=""; $la=time()-$r['laston']; $unit="seconds"; if($la >= 60) { $la=(int) ($la/60); $unit="minutes"; } if($la >= 60) { $la=(int) ($la/60); $unit="hours"; if($la >= 24) { $la=(int) ($la/24); $unit="days"; } } if($r['ul_color']) { $uname=""; if($r['ul_isbold']) { $uname.=""; } $uname.=$r['username']; if($r['ul_isbold']) { $uname.=""; } $uname.=""; $r['username']=$uname; } else if($r['donatordays']) { $r['username'] = "{$r['username']}"; } if($r['donatordays']) {$d="Donator: {$r["; } if($r['laston'] >= time()-15*60) { $on="Online"; } else { $on="Offline"; } if($r['cityminlevel'] <= $ir['level'] && $r['location'] != $ir['location']) { $travel="[Travel]"; } else { $travel=""; } if(!$r['gender']) { $r['gender']="Shemale"; } print "

Profile for {$r['username']}

General InfoFinancial Info Display Pic
Name: {$r['username']} [{$r['userid']}] $d
User Level: $userl
"; $total=$r['crimes_1']+$r['crimes_2']+$r['crimes_3']+$r['crimes_4']+$r['crimes_11']; if($r['ul_isstaff']) { print "\nDuties: {$r['duties']}
"; } print "\nGender: {$r['gender']}
Signed Up: $sup
Last Active: $lon
Last Action: $la $unit ago
Online: $on
Days Old: {$r['daysold']}
Location: {$r['cityname']} $travel
Posts: {$r['posts']}
Married: $marital
Money: \${$r['money']}
Crystals: {$r['crystals']}
Property: {$r['hNAME']}{$partner}
Crimes Comitted: {$total}
Referals: "; $rr=mysql_query("SELECT * FROM referals WHERE refREFER={$r['userid']}",$c); print mysql_num_rows($rr); $q_y=mysql_query("SELECT * FROM friendslist WHERE fl_ADDED={$r['userid']}",$c); $q_z=mysql_query("SELECT * FROM blacklist WHERE bl_ADDED={$r['userid']}",$c); $q_x=mysql_query("SELECT * FROM cars_playercars WHERE cpcPLAYER={$r['userid']}",$c); print "
Friends: ".mysql_num_rows($q_y)."
Enemies: ".mysql_num_rows($q_z)."
Cars: ".mysql_num_rows($q_x)."
"; if($r['display_pic']) { print "User Display Pic"; } else { print "This user has no display pic!"; } print "
Physical InfoContactLinks
Level: {$r['level']}
Game Rank: ".get_gamerank($r['level'],$r['hPRICE'],$r)."
Health: {$r['hp']}/{$r['maxhp']}
Gang: "; if($r['gang']) { print "{$r['gangNAME']}"; } else { print "N/A"; } if($r['fedjail']) { print "
In federal jail for {$r['fed_days']} day(s).
{$r['fed_reason']}
"; } if($r['hospital']) { print "
In hospital for {$r['hospital']} minutes.
{$r['hospreason']}
"; } if($r['travelling']) { print "
Currently travelling"; } if($ir['user_level'] > 1) { print "
IP Address: {$r['lastip']}"; print "
Staff Notes:

"; } print "
Email Address: ".(($r['public_email']) ? $r['public_email'] : "Undisclosed") . "
MSN: ".(($r['public_msn']) ? $r['public_msn'] : "Undisclosed") . "
YIM: ".(($r['public_yim']) ? $r['public_yim'] : "Undisclosed") . "
AIM: ".(($r['public_aim']) ? $r['public_aim'] : "Undisclosed") . "
ICQ: ".(($r['public_icq']) ? $r['public_icq'] : "Undisclosed") . "
[Send Mail]

[Send Cash]

[Attack]

[Hack Users PC]

[Hire Spy]"; if ( $ir['user_level'] == 2) { print "

[Staff Log]"; } if($ir['donatordays'] > 0) { print "

[Add Friends]

[Add Enemies]
"; } $rank=forums_rank($r['posts']); if($r['forums_avatar']) { $av=""; } else { $av=""; } if(!$r['forums_signature']) { $r['forums_signature']="No Signature"; } else {$r['forums_signature']=$bbc->bbcode_parse($r['forums_signature']); } print "
Signature
{$r['forums_signature']}
"; } } $h->endpage(); ?>