Вход Регистрация
Файл: l2ps_v5/exp.php
Строк: 20
<?php


include_once("files/ini.php");
include_once(
"files/data.php");
include_once(
"files/opiti.dat");


$polz=mysql_query("SELECT * FROM `users` WHERE `udata0`='$log' AND `udata1`='$pas' LIMIT 1");
if(
mysql_num_rows($polz)==0){

header ("Location: index.php?error");  
echo
'<div class="p">Ошибка! Пользователь с таким логином и паролем не зарегистрирован, или пароль/логин неверен! <a href="index.php">На главную</a><br>';exit;

}else{




$max = "100";
$now = "$exp"; 
$health = 140 / ($max / $now); 
header('Content-Type: image/gif');
$img = @imageCreateFromGIF("l2pic/logo/exp.gif");
imagecolorallocate($img, 10, 10, 10);
$red = imagecolorallocate($img, 10, 10, 10);
$white = imagecolorallocate($img, 255, 255, 255);
imagefilledpolygon($img, array(1111,0, 1000,2111, $health,10, $health,0), 4, $red);

imagepolygon($img, array(0,0, 0,10, 139,10, 139,0), 4, $white);

imagestring($img, 1, 3, 1, "EXP:   $now%", $white);
imagegif($img);


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