Changeset 1321 in ExiteCMS for trunk/register.php


Ignore:
Timestamp:
02/28/08 00:25:43 (4 years ago)
Author:
hverton
Message:

updated the Securimage code
fixed non-working text validation code
moved CMS_getOS() from dns_functions.php to core_functions.php

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/register.php

    r1315 r1321  
    2121// no point registering when you're already a member 
    2222if (iMEMBER) fallback(BASEDIR."index.php"); 
    23  
    24 // include the DNS functions include 
    25 require_once PATH_INCLUDES."dns_functions.php"; 
    2623 
    2724// load the locales for this module 
     
    222219            $theme_files = array(); 
    223220        } 
     221        if ($settings['display_validation'] == "1" && $settings['validation_method'] == "text") { 
     222            require_once PATH_INCLUDES."secureimage-1.0.3/securimage.php"; 
     223            $securimage = new Securimage(); 
     224            $securimage->createCode(); 
     225            $variables['validation_code'] = $_SESSION['securimage_code_value']; 
     226        } 
    224227        $variables['theme_files'] = $theme_files; 
    225228        // define the body panel variables 
Note: See TracChangeset for help on using the changeset viewer.