Файл: darkworld/mp.php
Строк: 14
<?
Error_Reporting(E_ALL & ~E_NOTICE);
include_once("files/check.php");
$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);
header('Content-Type: image/gif');
$img = imagecreatetruecolor(100, 10);
imagecolorallocate($img, 0, 0, 0);
$red = imagecolorallocate($img, 0, 0, 255);
$white = imagecolorallocate($img, 255, 255, 255);
imagefilledpolygon($img, array(0,0, 0,10, $health,10, $health,0), 4, $red);
imagestring($img, 1, 3, 1, "MP: $now/$max", $white);
imagepolygon($img, array(0,0, 0,9, 99,9, 99,0), 4, $white);
imagegif($img);
}
?>