summary refs log blame commit diff stats
path: root/theme/mwvms.php
blob: a61064f84dae0134cd8127f9802d5ac4bb4a1950 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

                                                                            
                                                                











                                                     
                                                                                  





                                  
<?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[1], $wsdata[0]);

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