Вход Регистрация
Файл: DarkAge/mp.php
Строк: 14
<?
Error_Reporting
(E_ALL & ~E_NOTICE);
$log htmlspecialchars(stripslashes($log));
$pas htmlspecialchars(stripslashes($pas));
/////////////////////////////////////////////////////
$text = @file("data/reg/$log.dat");
if (
$text!=""){
$udata explode(":||:",$text[0]);
$login=trim($udata[0]);
$password=trim($udata[1]);}
////////////////////////////////////////////////////////
if (md5($pas)==$password && $log==$login && $log!=="" && md5($pas)!=="") {






$max $udata[30];
$now $udata[29];
$health 100 / ($max $now);

$img="pic/mp.gif";
$pic ImageCreateFromgif($img);
header('Content-Type: image/gif');

$black imagecolorallocate($pic000);
$white imagecolorallocate($pic000);
imagefilledpolygon($pic, array(255,00,20$health,20$health,0), 4$black);


imagestring($pic132'MP:  '.number_format($now).'/'.number_format($max).''$white);
imagepolygon($pic, array(30,00,1199,1199,0), 4$white);

imagegif($pic);

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