Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Find this line in event-form.php
- $this->formSpamControl();
- // Change it to the following
- if ( ! is_user_logged_in() ) {
- // add honeypot for anon submissions
- $class = " ";
- if ( ( ( isset( $_POST[ 'naes' ] ) && $_POST[ 'naes' ] != 1 ) ) || ( $_POST && !isset( $_POST[ 'naes' ] ) ) )
- $class = ' error';
- echo '<p><input type="checkbox" name="naes" value="1"> <label class="naes' . $class . '">';
- echo 'Click to verify manual submission </label></p>';
- echo '<input type="text" style="display: none;" name="aes" value="">';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement