Вход Регистрация
Файл: darkworld/exp.php
Строк: 13
<?
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)!=="") {

include(
"files/opit.php");

$max = "100";
$now = "$exp"; 
$health = 100 / ($max / $now); 

header('Content-Type: image/gif');
$img = imagecreatetruecolor(100, 10);

imagecolorallocate($img, 0, 0, 0);
$red = imagecolorallocate($img, 224, 223, 227);
$white = imagecolorallocate($img, 255, 255, 255);
imagefilledpolygon($img, array(0,0, 0,10, $health,10, $health,0), 4, $red);

imagestring($img, 1, 3, 1, "       $now%", $white);
imagepolygon($img, array(0,0, 0,9, 99,9, 99,0), 4, $white);

imagegif($img);

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