Author |
Message |
FosgateElite
Regular


Joined: Mar 26, 2006
Posts: 63
|
Posted:
Thu Jul 27, 2006 5:47 pm |
|
using NukeSentinel_2500_70-79.tar.tar
The code fix for mainfile.php for 7.8 says:
Code:in function function online() {
#
#-----[ FIND ]------------------------------------------
#
function online() {
global $user, $cookie, $prefix, $db;
$ip = $_SERVER['REMOTE_ADDR'];
#
#-----[ CHANGE TO ]------------------------------------------
#
function online() {
global $nsnst_const, $user, $cookie, $prefix, $db;
if(!file_exists('includes/nukesentinel.php')) {
$ip = $_SERVER['REMOTE_ADDR'];
} else {
$ip = $nsnst_const['remote_ip'];
}
|
Here is the issue. I have different code than than in my file:
Code:function online() {
global $user, $cookie, $prefix, $db;
cookiedecode($user);
$ip = $_SERVER["REMOTE_ADDR"];
|
What should I do with "cookiedecode($user);"
Do i need to get rid of it or make it like one of the following:
ACode:function online() {
global $nsnst_const, $user, $cookie, $prefix, $db;
cookiedecode($user); //<-- Insert here?
if(!file_exists('includes/nukesentinel.php')) {
$ip = $_SERVER['REMOTE_ADDR'];
} else {
$ip = $nsnst_const['remote_ip'];
}
| BCode:function online() {
global $nsnst_const, $user, $cookie, $prefix, $db;
cookiedecode($user); //<-- Insert here?
if(!file_exists('includes/nukesentinel.php')) {
$ip = $_SERVER['REMOTE_ADDR'];
} else {
$ip = $nsnst_const['remote_ip'];
}
| CCode:function online() {
global $nsnst_const, $user, $cookie, $prefix, $db;
if(!file_exists('includes/nukesentinel.php')) {
$ip = $_SERVER['REMOTE_ADDR'];
} else {
cookiedecode($user); //<-- Insert here?
$ip = $nsnst_const['remote_ip'];
}
| DCode:function online() {
global $nsnst_const, $user, $cookie, $prefix, $db;
if(!file_exists('includes/nukesentinel.php')) {
$ip = $_SERVER['REMOTE_ADDR'];
} else {
$ip = $nsnst_const['remote_ip'];
}
cookiedecode($user); //<-- Insert here?
|
Or just delete it all together? |
|
|
|
 |
montego
Site Admin

Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Fri Jul 28, 2006 7:55 am |
|
Well, for some reason I am not seeing the difference between "A" and "B". Although I refuse to run anything over 7.6, my educated guess is for option "A".
Try it and see if it works.
If you get an "You are accessing this site from an Invalid IP Address" then it is most definitely working, but you can search the forums here for the resolution to that. |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
 |
BobMarion
Former Admin in Good Standing

Joined: Oct 30, 2002
Posts: 1037
Location: RedNeck Land (known as Kentucky)
|
Posted:
Mon Jul 31, 2006 9:41 am |
|
The code changes pertain only to the locating of the users ip address:Code:#
#-----[ FIND ]------------------------------------------
#
function online() {
global $user, $cookie, $prefix, $db;
$ip = $_SERVER['REMOTE_ADDR'];
#
#-----[ CHANGE TO ]------------------------------------------
#
function online() {
global $nsnst_const, $user, $cookie, $prefix, $db;
if(!file_exists('includes/nukesentinel.php')) {
$ip = $_SERVER['REMOTE_ADDR'];
} else {
$ip = $nsnst_const['remote_ip'];
}
|
You don't need to alter/remove the cookiedecode line. You copy may have it in there for a reason.
[posted by bob's wife for bob] |
_________________ Bob Marion
Codito Ergo Sum
Only registered users can see links on this board! Get registered or login! |
|
|
 |
leo51
Worker


Joined: Sep 09, 2004
Posts: 106
Location: Canada
|
Posted:
Mon Jul 31, 2006 11:24 am |
|
Did I miss something in the upgrade of Sentinel to 2.5 because I have seen mention of some people making editing to the manifile and I did now see this anywhere in the package or did I just ran over this section.
Thanks
OK this code is in there. |
|
|
|
 |
|