Author |
Message |
posword
Hangin' Around

Joined: May 21, 2006
Posts: 38
Location: Adelaide, Australia
|
Posted:
Sun May 21, 2006 8:30 pm |
|
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 |
|
|
|
 |
kguske
Site Admin

Joined: Jun 04, 2004
Posts: 6437
|
Posted:
Mon May 22, 2006 7:39 pm |
|
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! |
|
|
 |
BobMarion
Former Admin in Good Standing

Joined: Oct 30, 2002
Posts: 1037
Location: RedNeck Land (known as Kentucky)
|
Posted:
Mon May 22, 2006 9:53 pm |
|
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! |
|
|
 |
BobMarion

|
Posted:
Mon May 22, 2006 9:55 pm |
|
|
|
 |
kguske

|
Posted:
Mon May 22, 2006 10:03 pm |
|
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
|
Posted:
Tue May 23, 2006 5:35 am |
|
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! |
|
|
 |
BobMarion

|
Posted:
Mon May 29, 2006 9:21 am |
|
The archive is how I was able to make such a detailed listing I'll include this listing in future versions of NukeSentinel as well. |
|
|
|
 |
manunkind
Client

Joined: Apr 26, 2004
Posts: 368
Location: Albuquerque, NM
|
Posted:
Mon May 29, 2006 6:32 pm |
|
|
|
 |
|