Subversion Repositories oidplus

Compare Revisions

Regard whitespace Rev 1036 → Rev 1050

/trunk/plugins/viathinksoft/captcha/hcaptcha/OIDplusCaptchaPluginHCaptcha.class.php
17,7 → 17,7
* limitations under the License.
*/
 
if (!defined('INSIDE_OIDPLUS')) die();
namespace ViaThinkSoft\OIDplus;
 
class OIDplusCaptchaPluginHCaptcha extends OIDplusCaptchaPlugin {
 
/trunk/plugins/viathinksoft/captcha/hcaptcha/manifest.xml
4,7 → 4,7
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:oid:1.3.6.1.4.1.37476.2.5.2.5.12.1 https://oidplus.viathinksoft.com/oidplus/plugins/manifest_plugin_captcha.xsd">
 
<type>OIDplusCaptchaPlugin</type>
<type>ViaThinkSoft\OIDplus\OIDplusCaptchaPlugin</type>
 
<info>
<name>hCaptcha</name>
16,7 → 16,7
</info>
 
<php>
<mainclass>OIDplusCaptchaPluginHCaptcha</mainclass>
<mainclass>ViaThinkSoft\OIDplus\OIDplusCaptchaPluginHCaptcha</mainclass>
</php>
<css>
/trunk/plugins/viathinksoft/captcha/none/OIDplusCaptchaPluginNone.class.php
17,7 → 17,7
* limitations under the License.
*/
 
if (!defined('INSIDE_OIDPLUS')) die();
namespace ViaThinkSoft\OIDplus;
 
class OIDplusCaptchaPluginNone extends OIDplusCaptchaPlugin {
 
/trunk/plugins/viathinksoft/captcha/none/manifest.xml
4,7 → 4,7
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:oid:1.3.6.1.4.1.37476.2.5.2.5.12.1 https://oidplus.viathinksoft.com/oidplus/plugins/manifest_plugin_captcha.xsd">
 
<type>OIDplusCaptchaPlugin</type>
<type>ViaThinkSoft\OIDplus\OIDplusCaptchaPlugin</type>
 
<info>
<name>No Captcha</name>
16,7 → 16,7
</info>
 
<php>
<mainclass>OIDplusCaptchaPluginNone</mainclass>
<mainclass>ViaThinkSoft\OIDplus\OIDplusCaptchaPluginNone</mainclass>
</php>
 
<css>
/trunk/plugins/viathinksoft/captcha/recaptcha/OIDplusCaptchaPluginRecaptcha.class.php
17,7 → 17,7
* limitations under the License.
*/
 
if (!defined('INSIDE_OIDPLUS')) die();
namespace ViaThinkSoft\OIDplus;
 
class OIDplusCaptchaPluginRecaptcha extends OIDplusCaptchaPlugin {
 
100,9 → 100,10
return '<div id="CAPTCHAPLUGIN_PARAMS_RECAPTCHA">'.
'<p>(<a href="https://developers.google.com/recaptcha/intro" target="_blank">'._L('more information and obtain key').'</a>)</p>'.
'<p>'._L('reCAPTCHA Version').'<br><select id="recaptcha_version">'.
' <option name="OIDplusCaptchaPluginRecaptcha::RECAPTCHA_V2_CHECKBOX">reCAPTCHA V2 Checkbox</option>'.
' <option name="OIDplusCaptchaPluginRecaptcha::RECAPTCHA_V2_INVISIBLE">reCAPTCHA V2 Invisible</option>'.
' <option name="OIDplusCaptchaPluginRecaptcha::RECAPTCHA_V3">reCAPTCHA V3</option>'.
// Note: JavaScript will add "\ViaThinkSoft\OIDplus\OIDplusCaptchaPluginRecaptcha::" in front of the name
' <option name="RECAPTCHA_V2_CHECKBOX">reCAPTCHA V2 Checkbox</option>'.
' <option name="RECAPTCHA_V2_INVISIBLE">reCAPTCHA V2 Invisible</option>'.
' <option name="RECAPTCHA_V3">reCAPTCHA V3</option>'.
'</select></p>'.
'<p>'._L('reCAPTCHA Public key').'<br><input id="recaptcha_public" type="text" onkeypress="rebuild()" onkeyup="rebuild()"> <span id="recaptcha_public_warn"></span></p>'.
'<p>'._L('reCAPTCHA Private key').'<br><input id="recaptcha_private" type="text" onkeypress="rebuild()" onkeyup="rebuild()"> <span id="recaptcha_private_warn"></span></p>'.
/trunk/plugins/viathinksoft/captcha/recaptcha/OIDplusCaptchaPluginRecaptchaSetup.js
56,7 → 56,7
var e = $("#captcha_plugin")[0];
var strPlugin = e.options[e.selectedIndex].value;
if (strPlugin.toLowerCase() != 'reCAPTCHA'.toLowerCase()) return '';
return 'OIDplus::baseConfig()->setValue(\'RECAPTCHA_VERSION\', '+$("#recaptcha_version").find('option:selected').attr("name")+');<br>' +
return 'OIDplus::baseConfig()->setValue(\'RECAPTCHA_VERSION\', \\ViaThinkSoft\\OIDplus\\OIDplusCaptchaPluginRecaptcha::'+$("#recaptcha_version").find('option:selected').attr("name")+');<br>' +
'OIDplus::baseConfig()->setValue(\'RECAPTCHA_PUBLIC\', \''+$("#recaptcha_public")[0].value+'\');<br>' +
'OIDplus::baseConfig()->setValue(\'RECAPTCHA_PRIVATE\', \''+$("#recaptcha_private")[0].value+'\');<br>';
});
/trunk/plugins/viathinksoft/captcha/recaptcha/manifest.xml
4,7 → 4,7
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:oid:1.3.6.1.4.1.37476.2.5.2.5.12.1 https://oidplus.viathinksoft.com/oidplus/plugins/manifest_plugin_captcha.xsd">
 
<type>OIDplusCaptchaPlugin</type>
<type>ViaThinkSoft\OIDplus\OIDplusCaptchaPlugin</type>
 
<info>
<name>Google Recaptcha</name>
16,7 → 16,7
</info>
 
<php>
<mainclass>OIDplusCaptchaPluginRecaptcha</mainclass>
<mainclass>ViaThinkSoft\OIDplus\OIDplusCaptchaPluginRecaptcha</mainclass>
</php>
<css>
/trunk/plugins/viathinksoft/captcha/vts_challenge/OIDplusCaptchaPluginVtsClientChallenge.class.php
17,7 → 17,7
* limitations under the License.
*/
 
if (!defined('INSIDE_OIDPLUS')) die();
namespace ViaThinkSoft\OIDplus;
 
class OIDplusCaptchaPluginVtsClientChallenge extends OIDplusCaptchaPlugin {
 
/trunk/plugins/viathinksoft/captcha/vts_challenge/manifest.xml
4,7 → 4,7
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:oid:1.3.6.1.4.1.37476.2.5.2.5.12.1 https://oidplus.viathinksoft.com/oidplus/plugins/manifest_plugin_captcha.xsd">
 
<type>OIDplusCaptchaPlugin</type>
<type>ViaThinkSoft\OIDplus\OIDplusCaptchaPlugin</type>
 
<info>
<name>ViaThinkSoft Client Challenge</name>
20,7 → 20,7
</info>
 
<php>
<mainclass>OIDplusCaptchaPluginVtsClientChallenge</mainclass>
<mainclass>ViaThinkSoft\OIDplus\OIDplusCaptchaPluginVtsClientChallenge</mainclass>
</php>
<css>