changeset 14:37a76b225d98

Rename kuva.php -> textimg.php.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 08 Jan 2011 23:21:21 +0200
parents 8f4a011e4346
children 3a9798cc4631
files index.php kuva.php textimg.php
diffstat 3 files changed, 23 insertions(+), 23 deletions(-) [+]
line wrap: on
line diff
--- a/index.php	Fri Dec 31 05:53:48 2010 +0200
+++ b/index.php	Sat Jan 08 23:21:21 2011 +0200
@@ -200,7 +200,7 @@
 
   foreach ($data2 as $key => $val) {
     $str = is_array($val) ? $val[0]." / ".$val[1] : $val;
-    echo "  <th><img src=\"kuva.php?text=".urlencode($str)."\" alt=\"".htmlentities($str)."\" width=\"12\" height=\"80\"></th>\n";
+    echo "  <th><img src=\"textimg.php?text=".urlencode($str)."\" alt=\"".htmlentities($str)."\" width=\"12\" height=\"80\"></th>\n";
   }  
   echo " </tr>\n";
 
--- a/kuva.php	Fri Dec 31 05:53:48 2010 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,22 +0,0 @@
-<?
-if (!extension_loaded('gd')) {
-   if (!dl('gd.so')) {
-       echo "Could not load extension GD!";
-       exit;
-   }
-}
-
-$text = isset($_GET["text"]) ? $_GET["text"] : "-";
-
-$image = imagecreate(12, 80);
-$c_black = imagecolorallocate($image,   0,   0,   0);
-$c_white = imagecolorallocate($image, 255, 255, 255);
-
-imagefill($image, 0, 0, $c_black);
-imagestringup($image, 2, -2, 78, $text, $c_white);
-
-header("Content-Type: image/png");
-imagepng($image);
-
-imagedestroy($image);
-?>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/textimg.php	Sat Jan 08 23:21:21 2011 +0200
@@ -0,0 +1,22 @@
+<?
+if (!extension_loaded('gd')) {
+   if (!dl('gd.so')) {
+       echo "Could not load extension GD!";
+       exit;
+   }
+}
+
+$text = isset($_GET["text"]) ? $_GET["text"] : "-";
+
+$image = imagecreate(12, 80);
+$c_black = imagecolorallocate($image,   0,   0,   0);
+$c_white = imagecolorallocate($image, 255, 255, 255);
+
+imagefill($image, 0, 0, $c_black);
+imagestringup($image, 2, -2, 78, $text, $c_white);
+
+header("Content-Type: image/png");
+imagepng($image);
+
+imagedestroy($image);
+?>
\ No newline at end of file