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(tm) v2.4.x
Author Message
posword
Hangin' Around



Joined: May 21, 2006
Posts: 38
Location: Adelaide, Australia

PostPosted: Sun May 21, 2006 8:30 pm Reply with quote

The readme file for NukeSentinel_242pl6_70-79 says that if not using Patched 2.9+ "you can still use it, but you will need to make several modifications."

It does not tell me where to find these modifications. Can someone please tell me?

Thanks,
Peter
 
View user's profile Send private message
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6437

PostPosted: Mon May 22, 2006 7:39 pm Reply with quote

It's mostly at the beginning of the index file, I think, to determine whether or not you are accessing the script directly. The point the documentation was trying to make, I think, is that it isn't an easy task to make it work with Nuke implementations that weren't patched to 2.9 or later. It was even more fun when the 3.1 patch had different versions that caused some confusion since other modules were based on the first 3.1 patch... Is your head spinning yet? If so, that's a good reason to patch your files first.

_________________
I search, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
BobMarion
Former Admin in Good Standing



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

PostPosted: Mon May 22, 2006 9:53 pm Reply with quote

Patched 2.7 and below uses checks as follows:
Code:
if ($forum_admin == 1) {

    require_once("../../../config.php");
    require_once("../../../db/db.php");
} elseif ($inside_mod == 1) {
    require_once("../../config.php");
    require_once("../../db/db.php");
} else {
    require_once("config.php");
    require_once("db/db.php");
}


Patched 2.8 uses checks as follows:
Code:
if (defined('FORUM_ADMIN')) {

    require_once("../../../config.php");
    require_once("../../../db/db.php");
} elseif ($inside_mod == 1) {
    require_once("../../config.php");
    require_once("../../db/db.php");
} else {
    require_once("config.php");
    require_once("db/db.php");
}


Patched 2.9/3.0/early 3.1 uses checks as follows:
Code:
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");
}


Patched later 3.1 and up uses checks as follows:
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");


As you can see we have coded NukeSentinel to use the checks system of 2.9 because it the one that is still in use(modified for 3.2 but functionally the same). So in other words if you want to use NS with earlier patched versions or unpatched nuke then you search and replace:
Code:
if (defined('FORUM_ADMIN')) { --> if ($forum_admin == 1) {

and
Code:
if (defined('INSIDE_MOD')) { --> if ($inside_mod == 1) {


These downgrades are functionally the same but less secure.

_________________
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
BobMarion







PostPosted: Mon May 22, 2006 9:55 pm Reply with quote

May I also add that you can find the progression od patches at http://www.nukescripts.net/backups/patched/ . This is my personal archive of ChatServ's fine work.
 
kguske







PostPosted: Mon May 22, 2006 10:03 pm Reply with quote

And Bob announces his presence with AUTHORITY! Hi Bob! Glad to see you! Thanks for the definitive answer.
 
montego
Site Admin



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

PostPosted: Tue May 23, 2006 5:35 am Reply with quote

Yes, very glad to see you back! That "personal archive" must be a godsend! Thank you for sharing with us all.

_________________
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







PostPosted: Mon May 29, 2006 9:21 am Reply with quote

The archive is how I was able to make such a detailed listing Wink I'll include this listing in future versions of NukeSentinel as well.
 
manunkind
Client



Joined: Apr 26, 2004
Posts: 368
Location: Albuquerque, NM

PostPosted: Mon May 29, 2006 6:32 pm Reply with quote

BobMarion wrote:
May I also add that you can find the progression od patches at http://www.nukescripts.net/backups/patched/ . This is my personal archive of ChatServ's fine work.


Very nice. Thanks Bob!
 
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(tm) 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 ©