View file clock v2.0/index.php

File size: 772B
<?php
$timeh=date("H");
      $timeh=$timeh+7;
      if ($timeh>23)
      {if ($timeh==24)
      $timeh=0;
      	  if ($timeh==25)
      $timeh=1;
      	  if ($timeh==26)
      $timeh=2;
      	  if ($timeh==27)
      $timeh=3;
      	  if ($timeh==28)
      $timeh=4;
      	  if ($timeh==29)
      $timeh=5;
      	  if ($timeh==30)
      $timeh=6;
      	        }
      	        $min=date("i");
header("Content-type: image/gif");

$im = @imagecreate(50, 22)
    or die("Cannot Initialize new GD image stream");
$background_color = imagecolorallocate($im, 0, 0, 0);
$text_color = imagecolorallocate($im, 123, 250, 0);
imagettftext($im, 13, 0, 7, 17,  $text_color, "LCDNOVA.ttf","$timeh : $min");
imagegif($im);
imagedestroy($im);

?>