nukesentinel не дает работать капче
Ситуация:
к модулю Your Account при регистрации пользователей привязана капча.По аналогии с FeedBack. При установке NukeSentinel_2500_70-79 и при исправлении mainfile.php if (defined('FORUM_ADMIN')) { @require_once("../../../config.php"); @require_once("../../../db/db.php"); @require_once("../../../includes/sql_layer.php"); if (file_exists("../../../includes/custom_files/custom_mainfile.php")) { @include_once("../../../includes/custom_files/custom_mainfile.php"); } @require_once("../../../includes/ipban.php"); if (defined('NUKE_HEADER') && file_exists("../../../includes/custom_files/custom_head.php")) { @include_once("../../../includes/custom_files/custom_head.php"); } if (defined('NUKE_HEADER') && file_exists("../../../includes/custom_files/custom_header.php")) { @include_once("../../../includes/custom_files/custom_header.php"); } } elseif (defined('INSIDE_MOD')) { @require_once("../../config.php"); @require_once("../../db/db.php"); @require_once("../../includes/sql_layer.php"); if (file_exists("../../includes/custom_files/custom_mainfile.php")) { @include_once("../../includes/custom_files/custom_mainfile.php"); } @require_once("../../includes/ipban.php"); if (defined('NUKE_HEADER') && file_exists("../../includes/custom_files/custom_head.php")) { @include_once("../../includes/custom_files/custom_head.php"); } if (defined('NUKE_HEADER') && file_exists("../../includes/custom_files/custom_header.php")) { @include_once("../../includes/custom_files/custom_header.php"); } } else { @require_once("config.php"); @require_once("db/db.php"); @require_once("includes/sql_layer.php"); if (file_exists("includes/custom_files/custom_mainfile.php")) { @include_once("includes/custom_files/custom_mainfile.php"); } @require_once("includes/ipban.php"); if (defined('NUKE_HEADER') && file_exists("includes/custom_files/custom_head.php")) { @include_once("includes/custom_files/custom_head.php"); } if (defined('NUKE_HEADER') && file_exists("includes/custom_files/custom_header.php")) { @include_once("includes/custom_files/custom_header.php"); } } # #-----[ CHANGE TO ]------------------------------------------ # if (defined('FORUM_ADMIN')) { @require_once("../../../config.php"); @require_once("../../../db/db.php"); @require_once("../../../includes/sql_layer.php"); if (file_exists("../../../includes/custom_files/custom_mainfile.php")) { @include_once("../../../includes/custom_files/custom_mainfile.php"); } //@require_once("../../../includes/ipban.php"); @include_once("../../../includes/nukesentinel.php"); if (defined('NUKE_HEADER') && file_exists("../../../includes/custom_files/custom_head.php")) { @include_once("../../../includes/custom_files/custom_head.php"); } if (defined('NUKE_HEADER') && file_exists("../../../includes/custom_files/custom_header.php")) { @include_once("../../../includes/custom_files/custom_header.php"); } } elseif (defined('INSIDE_MOD')) { @require_once("../../config.php"); @require_once("../../db/db.php"); @require_once("../../includes/sql_layer.php"); if (file_exists("../../includes/custom_files/custom_mainfile.php")) { @include_once("../../includes/custom_files/custom_mainfile.php"); } //@require_once("../../includes/ipban.php"); @include_once("../../includes/nukesentinel.php"); if (defined('NUKE_HEADER') && file_exists("../../includes/custom_files/custom_head.php")) { @include_once("../../includes/custom_files/custom_head.php"); } if (defined('NUKE_HEADER') && file_exists("../../includes/custom_files/custom_header.php")) { @include_once("../../includes/custom_files/custom_header.php"); } } else { @require_once("config.php"); @require_once("db/db.php"); @require_once("includes/sql_layer.php"); if (file_exists("includes/custom_files/custom_mainfile.php")) { @include_once("includes/custom_files/custom_mainfile.php"); } //@require_once("includes/ipban.php"); //ПРОБЛЕМНАЯ СТРОКА!!!!!!!!!!!!!!!!!!!!!!!!!! @include_once("includes/nukesentinel.php"); //ПРОБЛЕМНАЯ СТРОКА!!!!!!!!!!!!!!!!!!!!!!!!!! if (defined('NUKE_HEADER') && file_exists("includes/custom_files/custom_head.php")) { @include_once("includes/custom_files/custom_head.php"); } if (defined('NUKE_HEADER') && file_exists("includes/custom_files/custom_header.php")) { @include_once("includes/custom_files/custom_header.php"); } } перестает работать проверка капчи (сама капча видна, но при ее вводе выдается сообщение,что она введена неверно). Грешу на ПРОБЛЕМНУЮ СТРОКУ так как при ее комментировании проблема пропадает, но не работает должным образом nukesentinel. Подозрение на то , что перестает работать сессия капчи ибо функция $_SESSION['captcha_keystring'] выдает пустой результат. Как исправить nukesentinel? |
Все правильно думаете.
Откройте файл nukesentinel.php, найлите: PHP код:
и замените на: PHP код:
Или же в настройка сантинеля отключите флуд контроль. |
Часовой пояс GMT +4, время: 04:02. |
Copyright © 2005 by Soniks