Вход Регистрация
Файл: user/exp.php
Строк: 24
<?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($pic999999999);
$white imagecolorallocate($pic000000888);
imagefilledpolygon($pic, array(2550,00,24$health,24$health,0), 4$black);
imagestring($pic132,  $white);
imagepolygon($pic, array(0,00,11149,11149,0), 44$white);
ob_end_clean();
imagegif($pic);

?>
Онлайн: 0
Реклама