Forum. MyNuke.ru

Forum. MyNuke.ru (http://forum.mynuke.ru/index.php)
-   Установка Модулей (http://forum.mynuke.ru/forumdisplay.php?f=10)
-   -   NukeSentinel™ 2.4.2 (http://forum.mynuke.ru/showthread.php?t=996)

ssmol 18.12.2005 05:00

NukeSentinel™ 2.4.2
 
после установки модуля NukeSentinel™ 2.4.2 появились следующие проблемы. в блоке User online неотображаются ники пользователей которые на сайте в данный момент, также в блоке топ юзеров форума неотображуются ники...

есть ли решение у этой проблемы без удаления NukeSentinel™ 2.4.2. ибо она мне понравилась :)

Soniks 18.12.2005 05:05

ssmol верси php nuke какая?

ssmol 18.12.2005 05:07

версия 7.9, но я правил много чего поэтому точно назвать версию уже затруднительно :)

да и судя судя по коду который добавляется в mainfile.php дело не в нем а в какомто из файлов самого модуля NukeSentinel

Soniks 18.12.2005 12:36

ssmol NukeSentinel не в коем образом не влияет на описанную вами проблему, но ради эксперемента попробуйте удалить из mainfile.php добавляемый код Sentinel-я, а именно инклуд файла includes/nukesentinel.php, что будет?

ssmol 18.12.2005 15:04

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 "предлагают" удалить

вернул строку и все заработало.

з.ы. извиняюсь за такое кол-во лишних постов


Часовой пояс GMT +4, время: 10:21.

Copyright © 2005 by Soniks