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.5.x
Author Message
FosgateElite
Regular
Regular


Joined: Mar 26, 2006
Posts: 63

PostPosted: Thu Jul 27, 2006 5:47 pm Reply with quote

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:

A
Code:
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'];
  }
B
Code:
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'];
  }
C
Code:
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'];
  }
D
Code:
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?
 
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9449
Location: Arizona

PostPosted: Fri Jul 28, 2006 7:55 am Reply with quote

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! 
View user's profile Send private message Visit poster's website
BobMarion
Former Admin in Good Standing


Joined: Oct 30, 2002
Posts: 1037
Location: RedNeck Land (known as Kentucky)

PostPosted: Mon Jul 31, 2006 9:41 am Reply with quote

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! 
View user's profile Send private message Send e-mail Visit poster's website
leo51
Worker
Worker


Joined: Sep 09, 2004
Posts: 106
Location: Canada

PostPosted: Mon Jul 31, 2006 11:24 am Reply with quote

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.
 
View user's profile Send private message Visit poster's website MSN Messenger
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.5.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 ©