Changeset 1313 in ExiteCMS for trunk/contact.php
- Timestamp:
- 02/27/08 12:37:15 (4 years ago)
- File:
-
- 1 edited
-
trunk/contact.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/contact.php
r1185 r1313 15 15 require_once dirname(__FILE__)."/includes/core_functions.php"; 16 16 require_once PATH_ROOT."/includes/theme_functions.php"; 17 18 // include the secureimage class 19 require_once PATH_INCLUDES."secureimage-1.0.3/secureimage.php"; 17 20 18 21 // temp storage for template variables … … 34 37 35 38 // captcha check 36 $cic = (isset($_POST['captcha_encode']) && !check_captcha($_POST['captcha_encode'], $_POST['captcha_code'])) ? "&cic=1" : ""; 39 $cic = ""; 40 $securimage = new Securimage(); 41 if ($securimage->check($_POST['captcha_code']) == false) { 42 $cic = "&cic=1"; 43 } 37 44 $variables['cic'] = $cic; 38 45 … … 52 59 // captcha check ok and message posted? 53 60 if ($cic == "" && isset($_POST['sendmessage'])) { 54 $result = dbquery("DELETE FROM ".$db_prefix."captcha WHERE captcha_datestamp<'".(time()-900)."'");55 61 $errors = array(); 56 62 if ($mailname == "") {
Note: See TracChangeset
for help on using the changeset viewer.
