Changeset 1313 in ExiteCMS for trunk/register.php


Ignore:
Timestamp:
02/27/08 12:37:15 (4 years ago)
Author:
root
Message:

replaced the internal captcha routine by SecureImaga

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/register.php

    r1286 r1313  
    2323 
    2424// include the DNS functions include 
    25 include PATH_INCLUDES."dns_functions.php"; 
     25require_once PATH_INCLUDES."dns_functions.php"; 
    2626 
    2727// load the locales for this module 
     
    134134 
    135135        if ($settings['display_validation'] == "1") { 
    136             if (!isset($_POST['captcha_encode']) || !isset($_POST['captcha_code']) || !check_captcha($_POST['captcha_encode'], $_POST['captcha_code'])) { 
     136            // include the secureimage class 
     137            require_once PATH_INCLUDES."secureimage-1.0.3/secureimage.php"; 
     138            $securimage = new Securimage(); 
     139            if ($securimage->check($_POST['captcha_code']) == false) { 
     140                // the code was incorrect 
    137141                $error .= $locale['410']."<br />\n"; 
    138             } 
     142            }            
    139143        } 
    140144         
Note: See TracChangeset for help on using the changeset viewer.