UTChat UTChat

Powered by Global Gamers

Account Login

You may login with your GG
Services account and password


Community Events



June
 1 2 3 4 5 6
 7 8 910111213
14151617181920
21222324252627
282930
Submit an event

Current Events

  • No active clan challenges

(Learn more)

$clanname"; } else { return ""; } } function getteam($id){ if ($id != ""){ $query = "SELECT * FROM teams where id='$id' limit 1"; $result = mysql_query($query); $row = mysql_fetch_assoc($result); $teamid = $row['id']; $teamname = $row['name']; return "$teamname"; } else { return ""; } } function getplayer($player){ if ($player != ""){ $query = "SELECT * FROM users where id='$player' limit 1"; $result = mysql_query($query); $row = mysql_fetch_assoc($result); $playerid = $row['id']; $playername = ($row['alias'] != "" ? $row['alias'] : $row['username']); return "$playername"; } else { return ""; } } function getplayername($player){ if ($player != ""){ $query = "SELECT * FROM users where id='$player' limit 1"; $result = mysql_query($query); $row = mysql_fetch_assoc($result); $playername = $row['alias']; return "$playername"; } else { return ""; } } function getplayerusername($player){ if ($player != ""){ $query = "SELECT * FROM users where id='$player' limit 1"; $result = mysql_query($query); $row = mysql_fetch_assoc($result); $playername = $row['username']; return "$playername"; } else { return ""; } } function getteamname($player){ if ($player != ""){ $query = "SELECT * FROM teams where id='$player' limit 1"; $result = mysql_query($query); $row = mysql_fetch_assoc($result); $playername = $row['name']; return "$playername"; } else { return ""; } } function getclanname($player){ if ($player != ""){ $query = "SELECT * FROM clans where id='$player' limit 1"; $result = mysql_query($query); $row = mysql_fetch_assoc($result); $playername = $row['name']; return "$playername"; } else { return ""; } } function getimg($player){ if ($player != ""){ $query = "SELECT * FROM users where id='$player' limit 1"; $result = mysql_query($query); $row = mysql_fetch_assoc($result); $playerid = $row['id']; if ($row['picture'] == "") { return "/img/na.png"; } return $row['picture']; } else { return "/img/spacer.gif"; } } function getteamimg($player){ if ($player != ""){ $query = "SELECT * FROM teams where id='$player' limit 1"; $result = mysql_query($query); $row = mysql_fetch_assoc($result); $playerid = $row['id']; if ($row['picture'] == "") { return "/img/na.png"; } return $row['picture']; } else { return "/img/spacer.gif"; } } function getclanimg($player){ if ($player != ""){ $query = "SELECT * FROM clans where id='$player' limit 1"; $result = mysql_query($query); $row = mysql_fetch_assoc($result); $playerid = $row['id']; if ($row['picture'] == "") { return "/img/na.png"; } return $row['picture']; } else { return "/img/spacer.gif"; } } function getmatch($tid,$mid){ if (($mid != "") && ($tid != "")){ $query = "SELECT * FROM matches where matchid='$mid' and tournamentid='$tid' limit 1;"; $result = mysql_query($query); $row = mysql_fetch_assoc($result); $id = $row['id']; return "View Match"; } else { return ""; } } function age ($birthday){ list($month,$day,$year) = explode("/",$birthday); $year_diff = date("Y") - $year; $month_diff = date("m") - $month; $day_diff = date("d") - $day; if ($month_diff < 0) $year_diff--; elseif (($month_diff==0) && ($day_diff < 0)) $year_diff--; return $year_diff; } function createthumb($name,$filename,$new_w,$new_h){ $system=explode(".",$name); if (preg_match("/jpg|jpeg|JPG|JPEG/",$system[1])){$src_img=imagecreatefromjpeg($name);} if (preg_match("/png|PNG/",$system[1])){$src_img=imagecreatefrompng($name);} $old_x=imageSX($src_img); $old_y=imageSY($src_img); if ($old_x > $old_y){ $thumb_w=$new_w; $thumb_h=$old_y*($new_h/$old_x); } if ($old_x < $old_y){ $thumb_w=$old_x*($new_w/$old_y); $thumb_h=$new_h; } if ($old_x == $old_y) { $thumb_w=$new_w; $thumb_h=$new_h; } $dst_img=ImageCreateTrueColor($thumb_w,$thumb_h); imagecopyresampled($dst_img,$src_img,0,0,0,0,$thumb_w,$thumb_h,$old_x,$old_y); if (preg_match("/png/",$system[1])){ imagepng($dst_img,$filename); } else { imagejpeg($dst_img,$filename); } imagedestroy($dst_img); imagedestroy($src_img); } function returnNumber($val){ $key = "QzWpMalNqEmB1k2RVowsTC9Ox8YXcidZUjeI3An4hSruPfDvL7gFKyt5GbJ6H"; for($y = 0; $y < strlen($val); ++$y){ for($z = 0; $z < strlen($key); ++$z){ if(substr($val,$y,1) == substr($key,$z,1)){ $index = strlen($val) - $y -1; $num = $num + (int)(($z+1) * pow(strlen($key),$index)); } } } return $num; } function returnConverted($num){ $key = "QzWpMalNqEmB1k2RVowsTC9Ox8YXcidZUjeI3An4hSruPfDvL7gFKyt5GbJ6H"; $y = 0; while($num > 0){ $y = ($num % strlen($key)); if ($y < 1) { $y = strlen($key) - 1; $num = ($num / strlen($key)) - 1; } elseif ($y > 0) { $y = $y - 1; $num = $num / strlen($key); } $temp = substr($key,$y,1) . $temp; } return substr($temp,1); } ?>

Welcome to UTChat!

We have added a UT Files section to the UTChat website with the major patches, and more files will be added in the coming days. In addition, the website will be updated soon with some UT help guides and other useful goodies. Join the #UT channel to get the latest information.

Spanish UT Guides (Guias de UT)

rector has created some guides to help Spanish-speaking players! These can be found under the UT Help menu.

UTCup / Tournament News

selectDB('tourney'); $query = "select * from news ORDER BY id DESC limit 1"; $result = $site->execute($query); while($row = mysql_fetch_assoc($result)){ $name = $row['name']; $id = $row['id']; $caption = $row['caption']; $user = $row['user']; $date = $row['date']; $time = $row['time']; $content = $row['content']; $mdate =$row['mdate']; $mtime = $row['mtime']; $views = $row['views'] + 1; $query = "update news set views='" . $views . "'where id= '" . $id . "'"; mysql_query($query); $postedby = getplayer($user); echo "

$caption

$time | $date | $postedby
\n"; if (($mdate != "") && ($mtime != "")){ // echo "
\n
\nLast Modified on $mtime | $mdate \n"; } echo "

$content

"; } ?>

Master Servers

If you are having any trouble with the UT or UT2004 master server, here are some helpful links: