1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace jumper423\decaptcha\services; |
4
|
|
|
|
5
|
|
|
/** |
6
|
|
|
* Class Ripcaptcha. |
7
|
|
|
*/ |
8
|
|
|
class Ripcaptcha extends RuCaptcha |
9
|
|
|
{ |
10
|
|
|
protected $host = 'ripcaptcha.com'; |
11
|
|
|
|
12
|
|
|
public function init() |
13
|
|
|
{ |
14
|
|
|
parent::init(); |
15
|
|
|
|
16
|
|
|
unset( |
17
|
|
|
$this->paramsNames[static::ACTION_FIELD_LANGUAGE], |
18
|
|
|
$this->paramsNames[static::ACTION_FIELD_HEADER_ACAO], |
19
|
|
|
$this->paramsNames[static::ACTION_FIELD_CALC], |
20
|
|
|
$this->paramsNames[static::ACTION_FIELD_QUESTION], |
21
|
|
|
$this->paramsNames[static::ACTION_FIELD_INSTRUCTIONS], |
22
|
|
|
$this->paramsNames[static::ACTION_FIELD_PINGBACK], |
23
|
|
|
$this->paramsNames[static::ACTION_FIELD_LANG], |
24
|
|
|
$this->actions[static::ACTION_RECOGNIZE][static::ACTION_FIELDS][static::ACTION_FIELD_LANGUAGE], |
25
|
|
|
$this->actions[static::ACTION_RECOGNIZE][static::ACTION_FIELDS][static::ACTION_FIELD_HEADER_ACAO], |
26
|
|
|
$this->actions[static::ACTION_RECOGNIZE][static::ACTION_FIELDS][static::ACTION_FIELD_CALC], |
27
|
|
|
$this->actions[static::ACTION_RECOGNIZE][static::ACTION_FIELDS][static::ACTION_FIELD_QUESTION], |
28
|
|
|
$this->actions[static::ACTION_RECOGNIZE][static::ACTION_FIELDS][static::ACTION_FIELD_INSTRUCTIONS], |
29
|
|
|
$this->actions[static::ACTION_RECOGNIZE][static::ACTION_FIELDS][static::ACTION_FIELD_PINGBACK], |
30
|
|
|
$this->actions[static::ACTION_RECOGNIZE][static::ACTION_FIELDS][static::ACTION_FIELD_LANG] |
31
|
|
|
); |
32
|
|
|
$this->actions[static::ACTION_RECOGNIZE][static::ACTION_FIELDS][static::ACTION_FIELD_SOFT_ID][static::PARAM_SLUG_DEFAULT] = 0; |
33
|
|
|
|
34
|
|
|
$this->wiki->setText(['service', 'name'], 'R.I.P. Captcha '); |
35
|
|
|
$this->wiki->setText(['service', 'href'], [ |
36
|
|
|
'ru' => 'https://ripcaptcha.com/?loc=ru', |
37
|
|
|
'en' => 'https://ripcaptcha.com/?loc=en', |
38
|
|
|
]); |
39
|
|
|
$this->wiki->setText(['service', 'desc'], [ |
40
|
|
|
'ru' => 'Мы отлично разгадываем капчи.', |
41
|
|
|
'en' => 'We solve captchas.', |
42
|
|
|
]); |
43
|
|
|
$this->wiki->setText(['recognize', 'price'], [ |
44
|
|
|
'ru' => 'Вы платите от $0.70 за 1000 капч', |
45
|
|
|
'en' => 'You will have to pay $0.70 for 1000 captchas', |
46
|
|
|
]); |
47
|
|
|
$this->wiki->setText(['field', 'slug', static::PARAM_SLUG_ENUM, static::ACTION_FIELD_NUMERIC], [ |
48
|
|
|
'ru' => [ |
49
|
|
|
'0 - параметр не задействован', |
50
|
|
|
'1 - капча состоит только из цифр', |
51
|
|
|
], |
52
|
|
|
'en' => [ |
53
|
|
|
'0 - parameter not used', |
54
|
|
|
'1 - captcha consists only of digits', |
55
|
|
|
], |
56
|
|
|
]); |
57
|
|
|
$this->wiki->setText(['menu', 'from_service'], null); |
58
|
|
|
} |
59
|
|
|
} |
60
|
|
|
|