summary refs log tree commit diff stats
path: root/theme/mwvms.php
blob: d00c824d36362469e0074f30ad30084000ec91b8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
require '../php/definitions.php';	# Variables and constants definition
$wsdata = file('../'.$dpath.'/'.$common, FILE_IGNORE_NEW_LINES);

$fontsize = 25;
$angle = 0;
$x = 25;
$y = 41;

// Create the image
$im = imagecreate(266, 66);
// Create colors
$background = imagecolorallocate($im, 0, 0, 0);
$text_color = imagecolorallocate($im, 255, 255, 255);
// Add the text
imagettftext($im, $fontsize, $angle, $x, $y, $text_color, $wsdata[2], $wsdata[0]);

// Set the content-type
header('Content-Type: image/png');
imagepng($im);
imagedestroy($im);
?>