Author |
Message |
cornnfedd
New Member


Joined: Oct 17, 2005
Posts: 4
|
Posted:
Mon Oct 17, 2005 5:06 am |
|
after i installed sentinal my visitor module no longer works, can anyone help me?
i posted on nukecops for a week and no help
any help appreciated.
my website is http://www.7thshadow.net/index.php
thanks cornnfedd |
|
|
|
 |
Guardian2003
Site Admin

Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Mon Oct 17, 2005 7:57 am |
|
I doubt this is a Sentinel issue.
Do you mean the Site Visitors 'block' - I am not aware of any Visitors 'module'.
Try re-uploading that block from your back-up or using an alternative block.
As most things seem to be disabled on your site it is hard to tell if there are any issues. |
|
|
|
 |
cornnfedd

|
Posted:
Mon Oct 17, 2005 6:40 pm |
|
sorry i meant block not module.
its the block on the right hand side, it does not give the info on how many visitors are on the site, who last joined etc etc.
it was working ok before i installed sentinal so it must be sentinal, or somthing i did when i installed it.
i uploaded the block again and that didnt work. |
|
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Mon Oct 17, 2005 7:22 pm |
|
Comment out the NukeSentinel include statements in your mainfile.php file. If the block works then it's somehow related. Otherwise, that's not the problem. |
|
|
|
 |
cornnfedd

|
Posted:
Wed Oct 19, 2005 4:08 am |
|
i copied back my backup file of the main.php and it works ok now so its definatly something to do with that.
i will try and upload the code again into the main.php and see if it works, maybe i made a mistake there.
ill let you know what happens. Thanks for the help so far.
** looking at it again, maybe i have updated from the wrong version as i thought i had 7.7, but maybe i dont. the contents of the file dont exactly match.**
here my file:
1st bit :
Quote: | 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);
}
|
2nd bit:
Quote: | //Union Tap
//Copyright Zhen-Xjell 2004 http://nukecops.com
//Beta 3 Code to prevent UNION SQL Injections
unset($matches);
unset($loc);
if (preg_match("/([OdWo5NIbpuU4V2iJT0n]{5}) /", rawurldecode($loc=$_SERVER["QUERY_STRING"]), $matches)) {
die();
}
|
3rd bit:
Quote: |
$queryString = strtolower($_SERVER['QUERY_STRING']);
if (stripos_clone($queryString,'%20union%20') OR stripos_clone($queryString,'/*') OR stripos_clone($queryString,'*/union/*') OR stripos_clone($queryString,'c2nyaxb0')) {
header("Location: index.php");
die();
}
|
last bit:
Quote: |
function online() {
global $user, $cookie, $prefix, $db;
cookiedecode($user);
$ip = $_SERVER["REMOTE_ADDR"];
$uname = $cookie[1];
if (!isset($uname)) {
$uname = "$ip";
$guest = 1;
}
|
I THINK I HAVE TO WRONG VERSION MAYBE? |
|
|
|
 |
Raven

|
Posted:
Wed Oct 19, 2005 9:31 am |
|
Use phpmyadmin and View the nuke_config table. At the very far right is the version number. |
|
|
|
 |
cornnfedd

|
Posted:
Thu Oct 20, 2005 5:23 am |
|
i have 7.7 version which is what i thought i had.
it does not match against what needs to be changed..  |
|
|
|
 |
Darrell3831
Worker


Joined: Feb 18, 2004
Posts: 244
|
Posted:
Sat Oct 22, 2005 8:25 am |
|
I have actually not done the upgrade from 2.2.0 to 2.4.2 because I noticed in the instructions that they don't match for mainfile7.x. (In my case mainfile7.5)
How do we intuitively make the changes when they don't match right?
mainfile7.5 says to find this:
Code:#-----[ FIND ]------------------------------------------
#
if (defined('FORUM_ADMIN')) {
@require_once("../../../config.php");
@require_once("../../../db/db.php");
@require_once("../../../includes/sql_layer.php");
@require_once("../../../includes/ipban.php");
} elseif (defined('INSIDE_MOD')) {
@require_once("../../config.php");
@require_once("../../db/db.php");
@require_once("../../includes/sql_layer.php");
@require_once("../../includes/ipban.php");
} else {
@require_once("config.php");
@require_once("db/db.php");
@require_once("includes/sql_layer.php");
@require_once("includes/ipban.php");
}
|
and to replace it with something else. However Nuke 7.5 patched 3.1 does not contain that. It contains this:
Code:if(defined('FORUM_ADMIN')) {
define('INCLUDE_PATH', '../../../');
} elseif(defined('INSIDE_MOD')) {
define('INCLUDE_PATH', '../../');
} else {
define('INCLUDE_PATH', './');
}
@require_once(INCLUDE_PATH."config.php");
@require_once(INCLUDE_PATH."db/db.php");
@require_once(INCLUDE_PATH."includes/sql_layer.php");
@require_once(INCLUDE_PATH."includes/ipban.php");
|
I can imagine your concern Cornnfed, They are significantly different. I don't know what to do..
How do we intuitively know how to install 2.4.2?
Incidentally, my visitor info module doesent work either, and I only just installed it. My Sentinel 2.2.0 has been working for several months. I don't know if Sentinel could possibly affect this, but it is an interesting thought.
Thanks,
Darrell |
_________________ http://www.psy-center.com |
|
|
 |
|