Source for file captcha.php

Documentation is available at captcha.php

  1. <?php
  2. /**
  3.  * MvBlog -- An open source no-nosense blogtool
  4.  *
  5.  * Copyright (C) 2005-2007, Michiel van Baak
  6.  * Michiel van Baak <mvanbaak@users.sourceforge.net>
  7.  *
  8.  * See http://www.mvblog.org for more information on MvBlog.
  9.  * That page also provides Bugtrackers, Filereleases etc.
  10.  *
  11.  * This program is free software, distributed under the terms of
  12.  * the GNU General Public License Version 2. See the LICENSE file
  13.  * at the top of the source tree.
  14.  *
  15.  * @package MvBlog
  16.  * @author Michiel van Baak
  17.  * @version %%VERSION%%
  18.  * @copyright 2005-2007 Michiel van Baak
  19.  */
  20. $txt $_SESSION["txt"];
  21. header("Content-type: image/png");
  22. $img @imagecreatetruecolor(7020);
  23. $bg_color  imagecolorallocate($img255255255);
  24. imagefilledrectangle($img007020$bg_color);
  25. $txt_color imagecolorallocate($img000);
  26. imagestring($img582$txt$txt_color);
  27. imagepng($img);
  28. ?>

Documentation generated on Fri, 28 Dec 2007 13:17:31 +0100 by phpDocumentor 1.4.1