-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathe_shortcode.php
More file actions
43 lines (33 loc) · 1.21 KB
/
e_shortcode.php
File metadata and controls
43 lines (33 loc) · 1.21 KB
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
<?php
/*
* Copyright (c) e107 Inc e107.org, Licensed under GNU GPL (http://www.gnu.org/licenses/gpl.txt)
* https://github.com/e107inc/e107/issues/3980
*/
if(!defined('e107_INIT'))
{
exit;
}
define('HIDEFROMMEMBERS', e107::pref('recaptcha', 'hidefrommembers'));
class recaptcha_shortcodes extends e_shortcode
{
/* {RECAPTCHA_IMAGE} not tested */
function sc_recaptcha_image($parm='') {
return e107::getSecureImg()->r_image();
// return "<img src='".e_IMAGE_ABS."secimg.php?id={$code}&clr={$color}' class='icon secure-image' alt='Missing Code' style='max-width:100%' />";
}
/* {RECAPTCHA_INPUT} not tested */
function sc_recaptcha_input($parm='') {
return e107::getSecureImg()->renderInput();
// return "<input class='tbox' type='text' name='code_verify' size='15' maxlength='20' />";
}
/* {RECAPTCHA} */
function sc_recaptcha($parm='') {
$hidefrommembers = defset('HIDEFROMMEMBERS', false);
if(USER && $hidefrommembers) {
return "";
}
return e107::getSecureImg()->renderImage().e107::getSecureImg()->renderInput();
// return "<input class='tbox' type='text' name='code_verify' size='15' maxlength='20' />";
}
}
?>