source: pwntcha/trunk/extras/font_linuxfr.php @ 447

Last change on this file since 447 was 419, checked in by Sam Hocevar, 18 years ago
  • linuxfr.org captchas
  • Property svn:keywords set to Id
File size: 353 bytes
Line 
1<?php
2   dl("gd.so");
3   header("Content-type: image/png");
4   $s = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
5   $im = imagecreate(strlen($s) * 9, 12);
6   $bg = imagecolorallocate($im, 255, 255, 255);
7   $fg = imagecolorallocate($im, 0, 0, 0);
8   imagestring($im, 5, 0, -3,  $s, $fg);
9   imagepng($im);
10   imagedestroy($im);
11?>
Note: See TracBrowser for help on using the repository browser.