Главная Форум Поиск Пользователи Регистрация Доброй ночи, Гость Вход


Главная


Форум torrenpier который уже живет
это сообщество владельцев форумов на phphBB2, торрент-трекеров на движках torrentpier и SVN всех версий.
Здесь можно найти решение своих проблем на своем сайта.
Здесь можно скачать полезные и нужные моды torrenpier, phpBB2 и svn.
Наш форум - это место для общения и обмена опытом между любителей движков, создателей модов на заказ и владельцев сайтов!
[FULL] Textual Confirmation 1.0.7 (Защита от спамботов)  
Начать новую тему   Ответить на тему    Главная -> Модификация (mod's) -> Моды (full)
Автор Сообщение
Andrey
Зарегистрирован: 2010-08-28
Сообщ.: 100
Сообщение 03-Авг-11 12:06 #1  
##############################################################
## MOD Title: Textual Confirmation
## MOD Author: olpa < olpa@bbantispam.com > (Oleg Parashchenko) http://bbantispam.com/tc/
## MOD Description: While registering, the user must answer a question to prove the user isn't a spambot.
## MOD Version: 1.0.7
##
## Installation Level: Easy
## Installation Time: 3 Minute
## Files To Edit: includes/constants.php
## includes/usercp_register.php
## templates/subSilver/profile_add_body.tpl
## Included Files: includes/functions_tc.php
## admin/admin_tc.php
## templates/subSilver/admin/textual_confirmation.tpl
## language/lang_russian/lang_tc.php
## language/lang_russian/email/textual_confirmation.tpl
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
## There are two editions of Textual Confirmation:
##
## * community edition and
## * business edition.
##
## In the community edition, each time spam registration is rejected,
## Textual Confirmation sends a notification to the forum administrator
## and TO THE COMMUNITY SPAM DATABASE. Visit the home page for details:
##
## http://bbantispam.com/tc/
##
## If you don't want to send us copies of the notifications,
## you must buy a business license. For details, visit
##
## http://bbantispam.com/tc/?mode=register
##
## Privacy Policy: We do not disclose your individual information
## to any other company. We collect aggregate statistics on spam
## texts and spammers' IPs. We may publish or share this aggregate
## information with other companies. This aggregate data, by its
## nature, will not reveal your identity.
##
##############################################################
## MOD History:
##
## 2007-05-05 - Version 1.0.7
## - Portuguese translation by Julio Sousa <jspt clix pt>
## 2007-04-08 - Version 1.0.6
## - Chinese translation is updated
## - No more '\n' after '?>', to avoid being blamed for the
## "Cannot modify header information" error
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
Копируем файлы на сервер:
Код:
copy includes/functions_tc.php to includes/functions_tc.php
copy admin/admin_tc.php to admin/admin_tc.php
copy language/lang_russian/lang_tc.php to language/lang_russian/lang_tc.php
copy language/lang_russian/email/textual_confirmation.tpl to language/lang_russian/email/textual_confirmation.tpl
copy templates/subSilver/admin/textual_confirmation.tpl to templates/subSilver/admin/textual_confirmation.tpl


Делаем SQL запрос:
Код:
CREATE TABLE phpbb_textual_confirmation (
 id       INTEGER NOT NULL AUTO_INCREMENT,
 question TEXT    NOT NULL,
 answers  TEXT    NOT NULL,
 PRIMARY KEY (id)
);
INSERT INTO phpbb_textual_confirmation(question,answers) VALUES ('Are you human?', 'yes\nja\noui');
INSERT INTO phpbb_textual_confirmation(question,answers) VALUES ('Say hello', 'hello\nhi\nhallo');


Открыть:
includes/constants.php

Найти:
Код:
define('SMILIES_TABLE', $table_prefix.'smilies');


Добавить после:
Код:
define('TEXTUAL_CONFIRMATION_TABLE', $table_prefix.'textual_confirmation');


Открыть:
includes/usercp_register.php

Найти:
Код:
$unhtml_specialchars_match = array('#&gt;#', '#&lt;#', '#&quot;#', '#&amp;#');


Перед добавить:
Код:
include($phpbb_root_path . 'includes/functions_tc.'.$phpEx);


Найти:
Код:
      $error = TRUE;
      $error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Fields_empty'];
    }
  }


Добавить после:
Код:
  tc_hook_register();


Найти:
Код:
  $template->assign_vars(array(
    'USERNAME' => @$username,
    'CUR_PASSWORD' => @$cur_password,


Заменить на:
Код:
        tc_hook_template($mode, $template, $s_hidden_fields, $tc_question);
  $template->assign_vars(array(
    'TEXTUAL_CONFIRMATION_QUESTION' => isset($tc_question) ? $tc_question : '',
    'L_TEXTUAL_CONFIRMATION_EXPLAIN' => isset($lang['tc_explain']) ? $lang['tc_explain'] : '',
    'USERNAME' => @$username,
    'CUR_PASSWORD' => @$cur_password,


Открыть:
templates/subSilver/profile_add_body.tpl

Найти:
Код:
<!-- END switch_confirm -->


Добавить после:
Код:
  <!-- BEGIN switch_textual_confirm -->
  <tr>
    <td class="row1"><span class="gen">{TEXTUAL_CONFIRMATION_QUESTION} * </span><br /><span class="gensmall">{L_TEXTUAL_CONFIRMATION_EXPLAIN}</td>
    <td class="row2"><input type="text" class="post" style="width: 200px" name="tc_answer" size="25" value="" /></td>
  </tr>
  <!-- END switch_textual_confirm -->
pic
pic
pic


Textual Confirmation 1.0.7.rar
 Описание файла:  
Скачать файл
 Имя файла:  Textual Confirmation 1.0.7.rar
 Размер файла:  9.7 KB
 Скачан:  326 раз(а)


Последний раз редактировалось: Andrey (03-Авг-11 12:14), всего редактировалось 1 раз
Вернуться к началу
    
Admin
Администратор
Зарегистрирован: 2010-07-27
Сообщ.: 777
russia.gif
Сообщение 03-Авг-11 12:09 #2  
как проявляется эта защита?интересно! скриншот можно?
Вернуться к началу
    
Andrey
Зарегистрирован: 2010-08-28
Сообщ.: 100
Сообщение 03-Авг-11 12:17 #3  
Можно смотри!!! Сами вопросы писать нужно из админки!
Вернуться к началу
    
Заголовок новой темы
Форум для новой темы
 
Страница 1 из 1
Показать сообщения:   
Начать новую тему   Ответить на тему    Главная -> Модификация (mod's) -> Моды (full) Часовой пояс: GMT + 4

 

Перейти:  
Вы не можете начинать темы
Вы не можете отвечать на сообщения
Вы не можете редактировать свои сообщения
Вы не можете удалять свои сообщения
Вы не можете голосовать в опросах
Вы не можете прикреплять файлы к сообщениям
Вы можете скачивать файлы
Все материалы сайта представлены только для ознакомления. При копировании материала ссылка на torrentpier-download.ru обязательна!

sitemap     карта форума | Статистика визитов поисковых ботов | Выдача в поисковиках



Powered by phpBB © 2001, 2011 phpBB Group
| ©2011-2024 - Воронеж |


Нравится