Subversion Repositories oidplus

Compare Revisions

Regard whitespace Rev 1002 → Rev 1003

/trunk/plugins/viathinksoft/captcha/hcaptcha/OIDplusCaptchaPluginHCaptcha.class.php
63,7 → 63,7
$secret=OIDplus::baseConfig()->getValue('HCAPTCHA_SECRET', '');
 
if (!function_exists('curl_init')) {
throw new OIDplusException('hCaptcha plugin needs the PHP extension php_curl');
throw new OIDplusException(_L('hCaptcha plugin needs the PHP extension php_curl'));
}
 
// Yes, it is really "g-recaptcha-response"!
92,10 → 92,13
}
 
public static function setupHTML(): string {
$curl_status = !function_exists('curl_init') ? 1 : 0;
return '<div id="CAPTCHAPLUGIN_PARAMS_HCAPTCHA">'.
'<p>(<a href="https://www.hcaptcha.com/" target="_blank">'._L('more information and obtain key').'</a>)</p>'.
'<p>'._L('hCaptcha Site key').'<br><input id="hcaptcha_sitekey" type="text" onkeypress="rebuild()" onkeyup="rebuild()"> <span id="hcaptcha_sitekey_warn"></span></p>'.
'<p>'._L('hCaptcha Secret').'<br><input id="hcaptcha_secret" type="text" onkeypress="rebuild()" onkeyup="rebuild()"> <span id="hcaptcha_secret_warn"></span></p>'.
'<input id="hcaptcha_curl_status" value="'.$curl_status.'" type="hidden">'.
(!$curl_status ? '<p><font color="red">'._L('hCaptcha plugin needs the PHP extension php_curl').'</font></p>' : '').
'</div>';
}