-
Notifications
You must be signed in to change notification settings - Fork 24
/
antispam.structure.php
executable file
·65 lines (58 loc) · 1.68 KB
/
antispam.structure.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
##################################################
#
# Copyright (c) 2004-2011 OIC Group, Inc.
# Written and Designed by James Hunt
#
# This file is part of Exponent
#
# Exponent is free software; you can redistribute
# it and/or modify it under the terms of the GNU
# General Public License as published by the Free
# Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
if (!defined('EXPONENT')) exit('');
// TYPES OF ANTISPAM CONTROLS... CURRENTLY ONLY ReCAPTCHA
$as_types = array(
'0'=>'-- Please Select an Anti-Spam Control --',
"recaptcha"=>'reCAPTCHA'
);
//THEMES FOR RECAPTCHA
$as_themes = array(
"red"=>'DEFAULT RED',
"white"=>'White',
"blackglass"=>'Black Glass',
"clean"=>'Clean (very generic)',
//"custom"=>'Custom' --> THIS MAY BE COOL TO ADD LATER...
);
$i18n = exponent_lang_loadFile('conf/extensions/antispam.structure.php');
return array(
$i18n['title'],
array(
'ANTI_SPAM_CONTROL'=>array(
'title'=>$i18n['antispam_control'],
'description'=>$i18n['antispam_control_desc'],
'control'=>new dropdowncontrol('',$as_types)
),
'RECAPTCHA_THEME'=>array(
'title'=>$i18n['recaptcha_theme'],
'description'=>$i18n['recaptcha_theme'],
'control'=>new dropdowncontrol('',$as_themes)
),
'RECAPTCHA_PUB_KEY'=>array(
'title'=>$i18n['recaptcha_pub_key'],
'description'=>$i18n['recaptcha_pub_key_desc'],
'control'=>new textcontrol()
),
'RECAPTCHA_PRIVATE_KEY'=>array(
'title'=>$i18n['recaptcha_private_key'],
'description'=>$i18n['recaptcha_private_key_desc'],
'control'=>new textcontrol()
),
)
);
?>