-
Notifications
You must be signed in to change notification settings - Fork 5
/
qa-plugin.php
42 lines (30 loc) · 1.38 KB
/
qa-plugin.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/*
Plugin Name: Stop Spam
Plugin URI: http://www.q2apro.com/plugins/stop-spam
Plugin Description: An easy to use customizable captcha with a honeypot that keeps 99 % of the spam away
Plugin Version: 1.1
Plugin Date: 2016-05-30
Plugin Author: q2apro.com
Plugin Author URI: http://www.q2apro.com
Plugin Minimum Question2Answer Version: 1.5
Plugin Update Check URI: http://www.q2apro.com/pluginupdate?id=7
Licence: Copyright © q2apro.com - All rights reserved
*/
if (!defined('QA_VERSION')) { // don't allow this page to be requested directly from browser
header('Location: ../../');
exit;
}
// language strings
qa_register_plugin_phrases('q2apro-stopspam-lang-*.php', 'q2apro_stopspam_lang');
// captcha module
qa_register_plugin_module('captcha', 'q2apro-stopspam-captcha.php', 'q2apro_stopspam_captcha', 'Stop Spam Captcha');
// filter post module
qa_register_plugin_module('filter', 'q2apro-stopspam-filter-posts.php', 'q2apro_stopspam_filter_posts', 'q2apro Stop Spam Filter Posts');
// layer that inserts javascript alert
qa_register_plugin_layer('q2apro-prevent-spam-votes-layer.php', 'q2apro Prevent Spam Votes Layer');
// page for listing links from posts
qa_register_plugin_module('page', 'q2apro-list-all-posted-links.php', 'q2apro_list_all_posted_links', 'Q2APRO List-all-posted-links Page');
/*
Omit PHP closing tag to help avoid accidental output
*/