forked from chiliec/lsplugin-recaptcha
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPluginRecaptcha.class.php
More file actions
37 lines (31 loc) · 974 Bytes
/
PluginRecaptcha.class.php
File metadata and controls
37 lines (31 loc) · 974 Bytes
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
<?php
/* ---------------------------------------------------------------------------
* @Plugin Name: reCAPTCHA
* @Description: Replaces the standard captcha for reCAPTCHA
* @Author URI: http://livestreet.net
* @LiveStreet Version: 1.0.3
* @Plugin Version: 4.0.0
* ----------------------------------------------------------------------------
*/
/**
* Запрещаем напрямую через браузер обращение к этому файлу.
*/
if (!class_exists('Plugin')) {
die('Hacking attemp!');
}
class PluginRecaptcha extends Plugin {
protected $aInherits=array(
'entity' =>array('ModuleUser_EntityUser')
);
public function Activate() {
return true;
}
public function Deactivate(){
return true;
}
public function Init() {
$this->Viewer_AppendScript(Plugin::GetTemplatePath(__CLASS__)."js/script.js");
Config::Set('module.user.captcha_use_registration', false);
}
}
?>