Changeset 1936
- Timestamp:
- 09/19/2011 01:35:11 PM (8 months ago)
- Location:
- trunk
- Files:
-
- 1 added
- 2 edited
-
bookmarks/bookmarks.php (modified) (1 diff)
-
bookmarks/templates_omB/editbookmark.tpl.php (modified) (1 diff)
-
common/recaptcha.php (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bookmarks/bookmarks.php
r487 r1936 105 105 $templatename = 'bookmarks.tpl'; 106 106 if ($loggedon && isset($_POST['submitted'])) { 107 108 require_once(dirname(__file__) . "/includes/recaptchalib.php"); 109 require_once(dirname(__file__) . "../common/recaptcha.php"); 110 $privatekey = $recaptcha_private_key; 111 $resp = recaptcha_check_answer ($privatekey, 112 $_SERVER["REMOTE_ADDR"], 113 $_POST["recaptcha_challenge_field"], 114 $_POST["recaptcha_response_field"]); 115 116 if (!$resp->is_valid) { 117 $tplVars['error'] = "The reCAPTCHA wasn't entered correctly. Go back and try it again."; 118 $templatename = 'editbookmark.tpl'; 119 $saved = false; 120 } else 121 107 122 if (!$_POST['title'] || !$_POST['address']) { 108 123 $tplVars['error'] = T_('Your bookmark must have a title and an address'); -
trunk/bookmarks/templates_omB/editbookmark.tpl.php
r1932 r1936 69 69 <td></td> 70 70 <td> 71 <?php 72 require_once(dirname(__file__) . "/../includes/recaptchalib.php"); 73 require_once(dirname(__file__) . "/../../common/recaptcha.php"); 74 $publickey = $recaptcha_public_key; 75 echo recaptcha_get_html($publickey); 76 ?> 77 </td> 78 <td></td> 79 </tr> 80 <tr> 81 <td></td> 82 <td> 71 83 <input type="submit" name="submitted" value="<?php echo $btnsubmit; ?>" /> 72 84 <?php
Note: See TracChangeset
for help on using the changeset viewer.
