Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion cleantalk.antispam/lang/en/options.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,6 @@
$MESS['CLEANTALK_RESET_OPTIONS_FAILED'] = 'Can not reset options to defaults.';
$MESS['CLEANTALK_MULTISITE_LABEL_KEY'] = 'If you want to use specific Access Key for this website paste it here. Otherwise, leave it empty.';
$MESS['CLEANTALK_USE_CUSTOM_SERVER'] = 'Use custom server';
$MESS['CLEANTALK_USE_CUSTOM_SERVER_DESCRIPTION'] = 'Use custom server for spam checking. You can enter cleantalk.ru and the plugin will use only ru servers. This option is for critical situations when it is impossible to choose the server automatically.';
$MESS['CLEANTALK_USE_CUSTOM_SERVER_DESCRIPTION'] = 'Use custom server for spam checking. You can enter cleantalk.ru and the plugin will use only ru servers. This option is for critical situations when it is impossible to choose the server automatically.';
$MESS['CLEANTALK_CURL_NOT_AVAILABLE'] = 'cURL is not available.';
$MESS['CLEANTALK_CURL_NOT_AVAILABLE_DETAILS'] = 'cURL support is required';
4 changes: 3 additions & 1 deletion cleantalk.antispam/lang/ru/options.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,6 @@
$MESS['CLEANTALK_MULTISITE_LABEL_KEY'] = 'Если вы хотите использовать отдельный ключ доступа для этого сайта, вставьте его здесь. В противном случае оставьте поле пустым.';
$MESS['CLEANTALK_USE_CUSTOM_SERVER'] = 'Использовать кастомный сервер';
$MESS['CLEANTALK_USE_CUSTOM_SERVER_DESCRIPTION'] = 'Использовать кастомный сервер для проверки спама. Можете ввести cleantalk.ru и плагин будет использовать только ru сервера. Опция для критических ситуаций, когда невозможен выбор сервера автоматически.';
$MESS['CLEANTALK_SERVER_NOT_AVAILABLE'] = 'Указанные сервера не доступны, обратитесь в тех поддержку https://cleantalk.org/my/support/open';
$MESS['CLEANTALK_SERVER_NOT_AVAILABLE'] = 'Указанные сервера не доступны, обратитесь в тех поддержку https://cleantalk.org/my/support/open';
$MESS['CLEANTALK_CURL_NOT_AVAILABLE'] = 'cURL не установлен.';
$MESS['CLEANTALK_CURL_NOT_AVAILABLE_DETAILS'] = 'cURL необходим для работы модуля';
13 changes: 13 additions & 0 deletions cleantalk.antispam/options.php
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,19 @@ function ct_get_options($sModuleId){
return $result;
}

// Check CURL available
$curl_available = !function_exists('curl_init');
if ( ! $curl_available ) {
$messageData = [
"MESSAGE" => GetMessage('CLEANTALK_CURL_NOT_AVAILABLE'),
"TYPE" => "ERROR",
"DETAILS" => GetMessage('CLEANTALK_CURL_NOT_AVAILABLE_DETAILS'),
"HTML" => false
];
$adminMessage = new \CAdminMessage($messageData);
echo $adminMessage->Show();
}

/**
* Describe tabs
*/
Expand Down
Loading