View Full Version : NukeSentinel™ 2.4.2
после установки модуля NukeSentinel™ 2.4.2 появились следующие проблемы. в блоке User online неотображаются ники пользователей которые на сайте в данный момент, также в блоке топ юзеров форума неотображуются ники...
есть ли решение у этой проблемы без удаления NukeSentinel™ 2.4.2. ибо она мне понравилась :)
ssmol верси php nuke какая?
версия 7.9, но я правил много чего поэтому точно назвать версию уже затруднительно :)
да и судя судя по коду который добавляется в mainfile.php дело не в нем а в какомто из файлов самого модуля NukeSentinel
ssmol NukeSentinel не в коем образом не влияет на описанную вами проблему, но ради эксперемента попробуйте удалить из mainfile.php добавляемый код Sentinel-я, а именно инклуд файла includes/nukesentinel.php, что будет?
Soniks да если только эту строку удалить то ничего не меняется но ведь код который вставляется в mainfile.php при установки nukesentinel намного больше
а проблема появляется при вставке во этого куска кода
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"); } }
в то время как исходный код в mainfile.php следуюющий
if (defined('FORUM_ADMIN')) {
require_once("../../../config.php");
require_once("../../../db/db.php");
} elseif (defined('INSIDE_MOD')) {
require_once("../../config.php");
require_once("../../db/db.php");
} else {
require_once("config.php");
require_once("db/db.php");
/* FOLLOWING TWO LINES ARE DEPRECATED BUT ARE HERE FOR OLD MODULES COMPATIBILITY */
/* PLEASE START USING THE NEW SQL ABSTRACTION LAYER. SEE MODULES DOC FOR DETAILS */
require_once("includes/sql_layer.php");
$dbi = sql_connect($dbhost, $dbuname, $dbpass, $dbname);
}
проблему решил. все дело оказалось в следующей строке
$dbi = sql_connect($dbhost, $dbuname, $dbpass, $dbname);
которую почемуто при установке nukesentinel "предлагают" удалить
вернул строку и все заработало.
з.ы. извиняюсь за такое кол-во лишних постов
MyNuke.ru