<?php
require_once '../core/system.php';
require_once '../core/head.php';
$ank = mysql_fetch_assoc(mysql_query("SELECT * FROM `user` WHERE `id` = '".intval($_GET['id'])."'"));
$exp2 = trim($level[$ank['level']+1]);
$nlvl = $exp2 - $ank['exp'];
if($nlvl == 0){
$nlvl = 1;
}
$proc = round(($ank['exp']/$exp)*100,2);
$max = $exp;
$now = $ank['exp'];
if($now == 0){
$now = 1;
}
$health = 150 / ($max / $now);
$img="../images/exp.gif";
$pic = ImageCreateFromgif($img);
header('Content-Type: image/gif');
$black = imagecolorallocate($pic, 999, 999, 999);
$white = imagecolorallocate($pic, 000, 000, 888);
imagefilledpolygon($pic, array(2550,0, 0,24, $health,24, $health,0), 4, $black);
imagestring($pic, 1, 3, 2, $white);
imagepolygon($pic, array(0,0, 0,11, 149,11, 149,0), 44, $white);
ob_end_clean();
imagegif($pic);
?>