Вход Регистрация
Файл: exp.php
Строк: 22
<? 
ob_start
();
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";
if(
$now>100){$now=100;} 
if(
$now!='0'){$health = 100 / ($max / $now);}else{$health = 100 / $max;} 

header('Content-Type: image/gif'); 

$img=imagecreatefromgif('img/exp.gif'); 
$logo=imagecreatefromgif('img/expmin.gif'); 
imagecopy($img,$logo,$health,0,0,0,100,12); 

$white = imagecolorallocate($img, 255, 255, 255); 
imagestring($img, 1, 5, 2, "       $now%", $white); 

imagegif($img); 
imagedestroy($img); 
} 
?>
Онлайн: 3
Реклама