</tr> <tr> <td colspan="2"><input type="checkbox" name="loggedin_hide" value="1" <?php if (anr_get_option("loggedin_hide") == "1") { echo 'checked="checked"'; } ?> /> <?php _e("Hide Captcha for logged in users?", "anr"); ?> </td> </tr> <tr> <td colspan="2"><input type="checkbox" name="no_js" value="1" <?php if (anr_get_option("no_js") == "1") { echo 'checked="checked"'; } ?> /> <?php _e("Show captcha if javascript disabled?", "anr"); ?> <br/><small><?php _e("If JavaScript is a requirement for your site, we advise that you do NOT check this", "anr"); ?> </small></td></tr> <tr> <td colspan="2"><span><input class="btn btn-submit" type="submit" name="anr-admin-settings-submit" value="<?php echo osc_esc_html("Save changes", "anr"); ?> " /></span></td>
function anr_item_send_friend_check($item) { if ('1' != anr_get_option('send_friend')) { return; } if (!anr_verify_captcha()) { $error_message = trim(osc_get_preference('error_message', 'plugin-anr_nocaptcha')); osc_add_flash_error_message($error_message); View::newInstance()->_exportVariableToView('item', $item); osc_redirect_to(osc_item_send_friend_url()); } }