Changeset 1313 in ExiteCMS for trunk/includes/core_functions.php
- Timestamp:
- 02/27/08 12:37:15 (4 years ago)
- File:
-
- 1 edited
-
trunk/includes/core_functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/core_functions.php
r1295 r1313 631 631 } 632 632 633 // check captcha634 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 650 633 // Replace offensive words with the defined replacement word 651 634 function censorwords($text) {
Note: See TracChangeset
for help on using the changeset viewer.
