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

$p 
abs((int)$_GET['p']);

$image imagecreatetruecolor(100,20);
$fiol  imagecolorallocate($image85,  51,  213);
$white imagecolorallocate($image255255255);
$blue  imagecolorallocate($image200210255);
$gold  imagecolorallocate($image253211122);
$red  imagecolorallocate($image24812684);
$orange imagecolorallocate($image2552300);
$green imagecolorallocate($image02550);
$black imagecolorallocate($image000);

imagefill($image00$fiol);
imagefilledrectangle($image00,  10020$white);

# 200     400      600       800    1000
# blue -> green -> orange -> red -> gold


if ( $p <= 200 && $p ) {

$blue  imagecolorallocate($image200210255);
$p round( ($p) / 100 100 );
imagefilledrectangle($image00$p,  20$blue);

}

else if ( 
$p <= 400 && $p 200 ) {

$z 100;
imagefilledrectangle($image11$z19$blue);
$p round( ( $p 200 ) / 200 100 );
imagefilledrectangle($image00$p20$green);

}

else if ( 
$p <= 600 && $p 400 ) {

$z 100;
imagefilledrectangle($image11$z19$blue);
$p round( ( $p 400 ) / 400 100 );
imagefilledrectangle($image00$p20$orange);

}

else if ( 
$p <= 800 && $p 600 ) {

$z 100;
imagefilledrectangle($image11$z19$blue);
$p round( ( $p 400 ) / 400 100 );
imagefilledrectangle($image00$p20$red);

}

else if ( 
$p 800 ) {

$z 100;
imagefilledrectangle($image11$z19$blue);
$p round( ( $p 400 ) / 400 100 );
imagefilledrectangle($image00$p20$gold);

}
$p ='';
imagestring($image352$p.' '$black);

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

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