Changeset 1313 in ExiteCMS for trunk/includes/core_functions.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/includes/core_functions.php

    r1295 r1313  
    631631} 
    632632 
    633 // check captcha 
    634 function check_captcha($captchs_encode, $captcha_string) { 
    635     global $db_prefix; 
    636  
    637     if (preg_match("/^[0-9a-z]+$/", $captchs_encode) && preg_match("/^[0-9a-z]+$/", $captcha_string)) { 
    638         $result = dbquery("SELECT * FROM ".$db_prefix."captcha WHERE captcha_ip='".USER_IP."' AND captcha_encode='".$captchs_encode."' AND captcha_string='".$captcha_string."'"); 
    639         if (dbrows($result)) { 
    640             $result = dbquery("DELETE FROM ".$db_prefix."captcha WHERE captcha_ip='".USER_IP."' AND captcha_encode='".$captchs_encode."' AND captcha_string='".$captcha_string."'"); 
    641             return true; 
    642         } else { 
    643             return false; 
    644         } 
    645     } else { 
    646         return false; 
    647     } 
    648 } 
    649  
    650633// Replace offensive words with the defined replacement word 
    651634function censorwords($text) { 
Note: See TracChangeset for help on using the changeset viewer.