Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel™ v2.4.x
Author Message
cornnfedd
New Member
New Member


Joined: Oct 17, 2005
Posts: 4

PostPosted: Mon Oct 17, 2005 5:06 am Reply with quote

after i installed sentinal my visitor module no longer works, can anyone help me?

i posted on nukecops for a week and no help Sad

any help appreciated.

my website is Only registered users can see links on this board! Get registered or login!

thanks cornnfedd
 
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6793
Location: Ha Noi, Viet Nam

PostPosted: Mon Oct 17, 2005 7:57 am Reply with quote

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.
 
View user's profile Send private message Send e-mail
cornnfedd
PostPosted: Mon Oct 17, 2005 6:40 pm Reply with quote

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: 17086

PostPosted: Mon Oct 17, 2005 7:22 pm Reply with quote

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.
 
View user's profile Send private message
cornnfedd
PostPosted: Wed Oct 19, 2005 4:08 am Reply with quote

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 Only registered users can see links on this board! Get registered or login!
//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
PostPosted: Wed Oct 19, 2005 9:31 am Reply with quote

Use phpmyadmin and View the nuke_config table. At the very far right is the version number.
 
cornnfedd
PostPosted: Thu Oct 20, 2005 5:23 am Reply with quote

i have 7.7 version which is what i thought i had.

it does not match against what needs to be changed.. Sad
 
Darrell3831
Worker
Worker


Joined: Feb 18, 2004
Posts: 244

PostPosted: Sat Oct 22, 2005 8:25 am Reply with quote

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

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel™ v2.4.x

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©