Skip to content

Commit

Permalink
release 2.18
Browse files Browse the repository at this point in the history
  • Loading branch information
davydovct committed Oct 31, 2017
2 parents f73b0c8 + 47bed19 commit cc56409
Show file tree
Hide file tree
Showing 13 changed files with 107 additions and 14 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Version 2.18 October 30, 2017
------------------------------
- Bug fixes and other minor improvements

Version 2.17 October 26, 2017
------------------------------
- Fix create_table for sql_lite
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SMF Antispam mod
* **Version:** 2.17
* **Version:** 2.18
* **License:** GNU General Public License
* **Compatible with:** SMF 2.0 and up
* **Languages:** English, Russian
Expand Down
2 changes: 1 addition & 1 deletion RoboFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class RoboFile extends \Robo\Tasks
{
const PACKAGE = 'antispam_cleantalk_smf';
const VERSION = '2.17';
const VERSION = '2.18';

const SMF_VERSION = '2.0.14'; // for forumPrepare

Expand Down
4 changes: 2 additions & 2 deletions cleantalkMod.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
require_once(dirname(__FILE__) . '/CleantalkSFW.php');

// Common CleanTalk options
define('CT_AGENT_VERSION', 'smf-217');
define('CT_AGENT_VERSION', 'smf-218');
define('CT_SERVER_URL', 'http://moderate.cleantalk.org');
define('CT_DEBUG', false);

Expand Down Expand Up @@ -181,7 +181,7 @@ function cleantalk_check_message(&$msgOptions, $topicOptions, $posterOptions){

if(!$modSettings['cleantalk_first_post_checking']){
return;
}elseif (isset($user_info['groups']) && $user_info['groups'][1] !== 4){
}elseif (isset($user_info['groups'][1]) && $user_info['groups'][1] !== 4){
return;
}

Expand Down
18 changes: 17 additions & 1 deletion install.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,23 @@

/* SFW data table */
$smcFunc['db_drop_table']('{db_prefix}cleantalk_sfw');
$smcFunc['db_query']('','CREATE TABLE {db_prefix}cleantalk_sfw (network INTEGER(11) UNSIGNED NOT NULL, mask INTEGER(11) UNSIGNED NOT NULL)',array());
$columns = array(
array(
'name' => 'network',
'type' => 'int',
'size' => 11,
'unsigned' => true
),
array(
'name' => 'mask',
'type' => 'int',
'size' => 11,
'unsigned' => true
),
);
$indexes = array();
$parameters = array();
$smcFunc['db_create_table']('{db_prefix}cleantalk_sfw', $columns, $indexes, $parameters, 'update_remove');

/* SFW logs table */
$smcFunc['db_drop_table']('{db_prefix}cleantalk_sfw_logs');
Expand Down
2 changes: 1 addition & 1 deletion languages/english-utf8.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ $txt['cleantalk_key_not_valid'] = 'Access key is not valid!';
$txt['cleantalk_get_statistics'] = 'Click here to get anti-spam statistics';
$txt['cleantalk_admin_email_will_be_used'] = 'Admin e-mail (%s) will be used for registration';
$txt['cleantalk_first_post_checking'] = 'Enable antispam test for Newly registered members';
$txt['cleantalk_first_post_checking_postinput'] = 'All messages from newly registered members (Newbie group only) will be checked for spam';
$txt['cleantalk_first_post_checking_postinput'] = 'All messages from newly registered members (<a href="index.php?action=moderate;area=viewgroups;sa=members;group=4">Newbie group</a> only) will be checked for spam';
$txt['cleantalk_api_key_description'] = 'Extension home page: <a target="_blank" href="https://cleantalk.org/">http://cleantalk.org</a>';
$txt['cleantalk_logging'] = 'Enable logging';
$txt['cleantalk_logging_postinput'] = 'All plugin\'s actions will be added to the forum\'s log. (<a target="_blank" href="%s/index.php?action=admin;area=logs;sa=errorlog;desc">Admin -> Error log</a>)';
Expand Down
2 changes: 1 addition & 1 deletion languages/english.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ $txt['cleantalk_key_not_valid'] = 'Access key is not valid!';
$txt['cleantalk_get_statistics'] = 'Click here to get anti-spam statistics';
$txt['cleantalk_admin_email_will_be_used'] = 'Admin e-mail (%s) will be used for registration';
$txt['cleantalk_first_post_checking'] = 'Enable antispam test for Newly registered members';
$txt['cleantalk_first_post_checking_postinput'] = 'All messages from newly registered members (Newbie group only) will be checked for spam';
$txt['cleantalk_first_post_checking_postinput'] = 'All messages from newly registered members (<a href="index.php?action=moderate;area=viewgroups;sa=members;group=4">Newbie group</a> only) will be checked for spam';
$txt['cleantalk_api_key_description'] = 'Extension home page: <a target="_blank" href="https://cleantalk.org/">http://cleantalk.org</a>';
$txt['cleantalk_logging'] = 'Enable logging';
$txt['cleantalk_logging_postinput'] = 'All plugin\'s actions will be added to the forum\'s log. (<a target="_blank" href="%s/index.php?action=admin;area=logs;sa=errorlog;desc">Admin -> Error log</a>)';
Expand Down
2 changes: 1 addition & 1 deletion languages/russian-utf8.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ $txt['cleantalk_key_not_valid'] = 'Ключ неверен!';
$txt['cleantalk_get_statistics'] = 'Просмотр статистики работы антиспама';
$txt['cleantalk_admin_email_will_be_used'] = 'Для регистрации будет использован E-mail администратора (%s)';
$txt['cleantalk_first_post_checking'] = 'Включить проверку новых пользователей на спам';
$txt['cleantalk_first_post_checking_postinput'] = 'Все сообщения от пользователей группы Новичек будут проверены на спам';
$txt['cleantalk_first_post_checking_postinput'] = 'Все сообщения от пользователей группы <a href="index.php?action=moderate;area=viewgroups;sa=members;group=4">Новичек</a> будут проверены на спам';
$txt['cleantalk_api_key_description'] = 'Домашняя страница расширения: <a target="_blank" href="https://cleantalk.org/">http://cleantalk.org</a>';
$txt['cleantalk_logging'] = 'Включить логирование ответов сервиса';
$txt['cleantalk_logging_postinput'] = 'Все действия плагина будут записываться в лог форума (<a target="_blank" href="%s/index.php?action=admin;area=logs;sa=errorlog;desc">Админка -> Логи ошибок</a>)';
Expand Down
2 changes: 1 addition & 1 deletion languages/russian.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ $txt['cleantalk_key_not_valid'] = '
$txt['cleantalk_get_statistics'] = 'Просмотр статистики работы антиспама';
$txt['cleantalk_admin_email_will_be_used'] = 'Для регистрации будет использован E-mail администратора (%s)';
$txt['cleantalk_first_post_checking'] = 'Включить проверку новых пользователей на спам';
$txt['cleantalk_first_post_checking_postinput'] = 'Все сообщения от пользователей группы Новичек будут проверены на спам';
$txt['cleantalk_first_post_checking_postinput'] = 'Все сообщения от пользователей группы <a href="index.php?action=moderate;area=viewgroups;sa=members;group=4">Новичек</a> будут проверены на спам';
$txt['cleantalk_api_key_description'] = 'Домашняя страница расширения: <a target="_blank" href="https://cleantalk.org/">http://cleantalk.org</a>';
$txt['cleantalk_logging'] = 'Включить логирование ответов сервиса';
$txt['cleantalk_logging_postinput'] = 'Все действия плаигна будут записываться в лог форума (<a target="_blank" href="%s/index.php?action=admin;area=logs;sa=errorlog;desc">Админка -> Логи ошибок</a>)';
Expand Down
2 changes: 1 addition & 1 deletion modification.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification">
<modification xmlns="www.simplemachines.org/xml/modification">
<id>cleantalk:antispam</id>
<version>2.17</version>
<version>2.18</version>
<file name="$sourcedir/Post.php">
<operation error="fatal">
<search position="after"><![CDATA[createPost($msgOptions, $topicOptions, $posterOptions);]]></search>
Expand Down
45 changes: 42 additions & 3 deletions package-info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
<id>cleantalk:antispam</id>
<name>Anti-spam by CleanTalk</name>
<type>modification</type>
<version>2.17</version>
<version>2.18</version>
<install for="2.0 - 2.1.99">
<readme type="file" parsebbc="true">readme.txt</readme>
<readme type="file" parsebbc="true" lang="russian-utf8">readme_russian.txt</readme>
<create-dir name="cleantalk" destination="$sourcedir"/>
<require-file name="cleantalkMod.php" destination="$sourcedir/cleantalk">Mod main file</require-file>
<require-file name="lib/Cleantalk.php" destination="$sourcedir/cleantalk">Base class</require-file>
Expand Down Expand Up @@ -42,7 +43,7 @@
</readme>
</upgrade>
<upgrade from="2.12 - 2.15">
<readme type="inline" parsebbc="true">This upgrade for Antispam by Cleantalk to 2.17 version:
<readme type="inline" parsebbc="true">This upgrade for Antispam by Cleantalk to 2.18 version:
- Fix SFW update on save settings
- Change SFW template
- Remove plugin settings on uninstall
Expand All @@ -51,6 +52,18 @@
- IPv6 support
- Update sfw_networks on plugin install
- First post checking now checking all messages from users with newbie group
- Bug fixes and other minor improvements
</readme>
<readme type="inline" parsebbc="true" lang="russian-utf8">Обновление Анти-спама от Cleantalk до версии 2.18:
- Исправлено обновление базы SpamFireWall при сохранении настроек
- Изменен шаблон для SpamFireWall
- Удаление настроек из БД при удалении плагина
- Исправлен скрипт создания таблиц для SpamFireWall
- Исправлен скрипт создания таблиц для sql_lite
- Поддержка IPV6
- Обновление баз SpamFireWall при установке плагина
- Опция "Проверки первого сообщения" изменена на проверку всех сообщений от новых пользователей
- Устранение багов и остальные незначительные улучшения
</readme>
<create-dir name="cleantalk" destination="$sourcedir"/>
<require-file name="cleantalkMod.php" destination="$sourcedir/cleantalk">Mod main file</require-file>
Expand All @@ -73,13 +86,20 @@
</redirect>
</upgrade>
<upgrade from="2.16">
<readme type="inline" parsebbc="true">This upgrade for Antispam by Cleantalk from 2.16 to 2.17 version:
<readme type="inline" parsebbc="true">This upgrade for Antispam by Cleantalk from 2.16 to 2.18 version:
- Fix create_table for sql_lite
- IPv6 support
- Update sfw_networks on plugin install
- First post checking now checking all messages from users with newbie group
- Bug fixes and other minor improvements
</readme>
<readme type="inline" parsebbc="true" lang="russian-utf8">Обновление Анти-спама от Cleantalk с версии 2.16 до 2.18:
- Исправлен скрипт создания таблиц для sql_lite
- Поддержка IPV6
- Обновление баз SpamFireWall при установке плагина
- Опция "Проверки первого сообщения" изменена на проверку всех сообщений от новых пользователей
- Устранение багов и остальные незначительные улучшения
</readme>
<create-dir name="cleantalk" destination="$sourcedir"/>
<require-file name="cleantalkMod.php" destination="$sourcedir/cleantalk">Mod main file</require-file>
<require-file name="lib/Cleantalk.php" destination="$sourcedir/cleantalk">Base class</require-file>
Expand All @@ -93,4 +113,23 @@
you are being redirected to this mod configuration settings.
</redirect>
</upgrade>
<upgrade from="2.17">
<readme type="inline" parsebbc="true">This upgrade for Antispam by Cleantalk from 2.17 to 2.18 version:
- Bug fixes and other minor improvements
</readme>
<readme type="inline" parsebbc="true" lang="russian-utf8">Обновление Анти-спама от Cleantalk с версии 2.17 до 2.18:
- Устранение багов и остальные незначительные улучшения
</readme>
<create-dir name="cleantalk" destination="$sourcedir"/>
<require-file name="cleantalkMod.php" destination="$sourcedir/cleantalk">Mod main file</require-file>
<modification format="xml" type="file">modification.xml</modification>
<modification format="xml" type="file">languages/english.xml</modification>
<modification format="xml" type="file">languages/english-utf8.xml</modification>
<modification format="xml" type="file">languages/russian.xml</modification>
<modification format="xml" type="file">languages/russian-utf8.xml</modification>
<database>install.php</database>
<redirect url="$boardurl/index.php?action=admin;area=modsettings" type="inline">Please stand by while
you are being redirected to this mod configuration settings.
</redirect>
</upgrade>
</package-info>
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
MOD [b]Anti-spam by CleanTalk[/b]
Version: 2.17
Version: 2.18

Anti-spam by CleanTalk mod with protection against spam bots and manual spam.
No Captcha, no questions, no counting animals, no puzzles, no math.
Expand Down
34 changes: 34 additions & 0 deletions readme_russian.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
MOD [b]Анти-спам от Cleantalk[/b]
Версия: 2.18

Анти-спам от Cleantalk с защитой против автоматического и ручного спама.
Без капчи, без вопросов, без подсчета животных, без паззлов и т.д

[b]Возможности[/b]
[list]
[li]Защита от спам-регистраций[/li]
[li]Возможность подтверждения регистраций для новых пользователей[/li]
[li]Анти-спам тест для только что зарегистрированных пользователей[/li]
[/list]

Мод является клиентским приложением для облачного анти-спам сервиса [url=http://cleantalk.org/]CleanTalk.org[/url], который ежедневно защищает более 215 тысяч вебсайтов.
Также, вы можете использовать наше приложение для iPhone/Android для управления сервисом на вашем вебсайте или для управления регистраций, сообщений и т.д

[b]Настройки[/b]
Мод имеет настройки на вкладке Админка - Свойства и параметры - Конфигурация - Настройки модов

[b]Совместимость[/b]
SMF 2.0 и выше

[b]ЛИцензия[/b]
[url=http://www.gnu.org/copyleft/gpl.html]GNU General Public License[/url]

[b]Изменения[/b]
Смотрите на [url=https://github.com/CleanTalk/smf-antispam/blob/master/CHANGELOG]Github[/url]


[url=http://cleantalk.org/]CleanTalk сайт[/url]

[url=https://github.com/CleanTalk/smf-antispam]Github репозиторий[/url]


0 comments on commit cc56409

Please sign in to comment.