Вход Регистрация
Файл: CMS/gallery/level.php
Строк: 15
<?php
define
('CMS',TRUE);
require(
'../core/init.php');

if (isset(
$_GET['rat'])) {
    
$rat = abs(intval($_GET['rat']));
} else {
    
$rat = 0;
} 
if (isset(
$_GET['col'])) {
    
$col = abs(intval($_GET['col']));
} else {
    
$col = 0;
} 

$im = ImageCreate (202, 9);
$color = imagecolorallocate ($im, 234, 237, 237);

$colorfon = imagecolorallocate($im, 255, 102, 102);
if (
$col == 1) {
    
$colorfon = imagecolorallocate($im, 0, 232, 255);
} 
if (
$col == 2) {
    
$colorfon = imagecolorallocate($im, 153, 255, 153);
} 

$colorstr = imagecolorallocate($im, 0, 0, 0);
$colorbord = imagecolorallocate($im, 153, 153, 153);

imagefilledrectangle ($im, 1, 1, $rat * 2, 7, $colorfon);
imagerectangle ($im, 0, 0, 201, 8, $colorbord);
imageTTFtext($im, 6, 0, 180, 7, $colorstr, ROOTPATH . '/gallery/fonts/font.ttf', $rat . ' %');

header("Content-type: image/gif");
ImageGIF($im);
ImageDestroy($im);

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