summaryrefslogtreecommitdiffstats
path: root/theme/mwvms.php
diff options
context:
space:
mode:
Diffstat (limited to 'theme/mwvms.php')
-rw-r--r--theme/mwvms.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/theme/mwvms.php b/theme/mwvms.php
new file mode 100644
index 0000000..430fa37
--- /dev/null
+++ b/theme/mwvms.php
@@ -0,0 +1,22 @@
+<?php
+require '../php/definitions.php'; # Variables and constants definition
+$mdata = 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, $mdata[1], $mdata[0]);
+
+// Set the content-type
+header('Content-Type: image/png');
+imagepng($im);
+imagedestroy($im);
+?>