mod_captcha: adds a captcha image to the user registration process
             more info about captchas: http://en.wikipedia.org/wiki/Captcha

M. Kolar (http://mkolar.org) has added automatic deletion of unused
captcha images after a number of minutes that can be specified in admin
(and also increased the font size in the captcha images)
into this
Phorum 5 module by Arthur Louie (arthur.louie@gmail.com), based on
Arnab Nandi's captcha drupal module (http://drupal.org/project/captcha).

This modification of the captcha module is in captchaMK.tar.gz

Requirements:
------------

- the GD library, which is usually pre-installed on Linux systems
  http://www.php.net/manual/en/ref.image.php 

- Phorum 5.0.10 or higher. mod_captcha uses module localization.


Installation:
------------

In addition to placing the captcha directory inside mods and turning the
captcha module on, you need to do the following:


1. Go to the captcha module settings in the admin and enter the two
   paths, and the number of minutes after which the deletion of the unused
   captcha images is allowed.
     These three are required (if they're left blank, you'll get an error
   message on the registration page).

   Temporary image file path: this is the complete path to a world-writable
       directory on your server. mod_captcha will store its PNG files here.
       We recommend that you create a captcha_tmp directory inside phorum/cache.
       Example: /home/site/www/phorum/cache/captcha_tmp
       The commands to create this directory would be:
           cd /home/site/www/phorum/cache
           mkdir captcha_tmp
           chmod a+w captcha_tmp
       On this directory you should add an .htaccess file with the following content:
<Files ~ "^captcha.*\.png">
    <Limit GET POST>
        Order allow,deny
        Allow from all
    </Limit>
</Files>

      This will make sure that the images are readable from the webserver

   Temporary image web path relative to phorum: in the example above, the
       path to type in would be:  cache/captcha_tmp 

   Number of minutes after which unused images can be deleted:
      If you only use this module for registration, just a few minutes
      is sufficient because the registration process is fast.
      However, if you also use the related captchaP module that adds
      captcha verification to the post forms, and you set the same
      temporary image directory for both modules, you must allow
      enough time for the user to compose their posts (maybe 30 minutes,
      depending on how slow you expect your posters to be,
      how long posts they will compose on average).


2. Add a line to the register.tpl template

   Near the bottom of register.tpl, immediately before the </table>, add the line:

   {IF MOD_CAPTCHA_HTML}{MOD_CAPTCHA_HTML}{/IF}


3. You're done. When a new user attempts to register, he/she will need to
   identify the captcha image to proceed.
   Before a new captcha image is created in the temporary image directory,
   the module automatically deletes from it all the files that are older
   than the number of minutes specified above.


