| Author |
Message |
BobMarion Site Admin

Joined: Oct 30, 2002 Posts: 1039 Location: RedNeck Land (known as Kentucky)
|
Posted:
Thu Mar 10, 2005 10:20 pm |
|
If for any reason you are not using Patched 2.9 and want to use NukeSentinel 2.2.0, or higher, do the following.
Find(within includes/nukesentinel.php): | Code: | // Load required scripts
if (defined('FORUM_ADMIN')) {
require_once("../../../config.php");
require_once("../../../db/db.php");
$lang_dir = "../../../";
} elseif (defined('INSIDE_MOD')) {
require_once("../../config.php");
require_once("../../db/db.php");
$lang_dir = "../../";
} else {
require_once("config.php");
require_once("db/db.php");
$lang_dir = "";
} |
ChangeTo: | Code: | // Load required scripts
if ($forum_admin == 1) {
require_once("../../../config.php");
require_once("../../../db/db.php");
$lang_dir = "../../../";
} elseif ($inside_mod == 1) {
require_once("../../config.php");
require_once("../../db/db.php");
$lang_dir = "../../";
} else {
require_once("config.php");
require_once("db/db.php");
$lang_dir = "";
} |
Find(in mainfile.php): | Code: | if (defined('FORUM_ADMIN')) {
include("../../../includes/nukesentinel.php");
} elseif (defined('INSIDE_MOD')) {
include("../../includes/nukesentinel.php");
} else {
include("includes/nukesentinel.php");
} |
Change To: | Code: | if ($forum_admin == 1) {
include_once("../../../includes/nukesentinel.php");
} elseif ($inside_mod == 1) {
include_once("../../includes/nukesentinel.php");
} else {
include_once("includes/nukesentinel.php");
} |
NukeSentinel 2.2.0 takes advatage of Patched 2.9's more secure system for telling if it's being called from forum admin, from inside a module, or from the main system. However with the above you can revert to the Patched 2.8 level and below. |
Last edited by BobMarion on Wed May 04, 2005 1:57 pm; edited 1 time in total |
|
|
 |
BobMarion Site Admin

Joined: Oct 30, 2002 Posts: 1039 Location: RedNeck Land (known as Kentucky)
|
Posted:
Fri Mar 11, 2005 10:44 pm |
|
I forgot one other change for Patched 2.8 and below. This one is in admin/modules/nukesentinel.php .
Find: | Code: | if(!defined('ADMIN_FILE')) {
header("Location: ../../admin.php");
die();
} |
Change To: | Code: | if (!stristr($_SERVER['SCRIPT_NAME'], "admin.php")) {
die ("Access Denied");
} |
For those using 7.6 replace admin.php with ".$admin_file.".php . |
|
|
|
 |
jtf New Member


Joined: Jul 26, 2005 Posts: 3
|
Posted:
Tue Jul 26, 2005 3:26 am |
|
I tried the fixed mention here and got this error after applying it.
Parse error: parse error, unexpected '}' in /home/jtftech1/public_html/jtftechworld/includes/nukesentinel.php on line 48
I could not find the last fix you mention; if(!defined('ADMIN_FILE')) {
header("Location: ../../admin.php");
die();
}
It wasnt in the file you listed.
The reason why I tried the fix was I got a blank page when trying to access the forum from the admin page.
I'm running 7.6 with sentinel 2.3.2
Thanks
Quote message below_________________________________________
| BobMarion wrote: | If for any reason you are not using Patched 2.9 and want to use NukeSentinel 2.2.0, or higher, do the following.
Find(within includes/nukesentinel.php): | Code: | // Load required scripts
if (defined('FORUM_ADMIN')) {
require_once("../../../config.php");
require_once("../../../db/db.php");
$lang_dir = "../../../";
} elseif (defined('INSIDE_MOD')) {
require_once("../../config.php");
require_once("../../db/db.php");
$lang_dir = "../../";
} else {
require_once("config.php");
require_once("db/db.php");
$lang_dir = "";
} |
ChangeTo: | Code: | // Load required scripts
if ($forum_admin == 1) {
require_once("../../../config.php");
require_once("../../../db/db.php");
$lang_dir = "../../../";
} elseif ($inside_mod == 1) {
require_once("../../config.php");
require_once("../../db/db.php");
$lang_dir = "../../";
} else {
require_once("config.php");
require_once("db/db.php");
$lang_dir = "";
} |
Find(in mainfile.php): | Code: | if (defined('FORUM_ADMIN')) {
include("../../../includes/nukesentinel.php");
} elseif (defined('INSIDE_MOD')) {
include("../../includes/nukesentinel.php");
} else {
include("includes/nukesentinel.php");
} |
Change To: | Code: | if ($forum_admin == 1) {
include_once("../../../includes/nukesentinel.php");
} elseif ($inside_mod == 1) {
include_once("../../includes/nukesentinel.php");
} else {
include_once("includes/nukesentinel.php");
} |
NukeSentinel 2.2.0 takes advatage of Patched 2.9's more secure system for telling if it's being called from forum admin, from inside a module, or from the main system. However with the above you can revert to the Patched 2.8 level and below. |
|
|
|
|
 |
BobMarion Site Admin

Joined: Oct 30, 2002 Posts: 1039 Location: RedNeck Land (known as Kentucky)
|
Posted:
Tue Jul 26, 2005 10:11 am |
|
7.6 has Patched 3.0 availible and doesn't need these changes if you have applied the patched files. |
|
|
|
 |
jtf New Member


Joined: Jul 26, 2005 Posts: 3
|
Posted:
Tue Jul 26, 2005 12:34 pm |
|
| BobMarion wrote: | | 7.6 has Patched 3.0 availible and doesn't need these changes if you have applied the patched files. |
Thanks for the reply, where can I get patch 3.0? |
|
|
|
 |
technocrat Involved


Joined: Jul 07, 2005 Posts: 492
|
Posted:
Tue Jul 26, 2005 12:50 pm |
|
|
|
 |
jtf New Member


Joined: Jul 26, 2005 Posts: 3
|
Posted:
Tue Jul 26, 2005 12:55 pm |
|
| technocrat wrote: | http://www.nukefixes.com/forum-44.html
Or
|
Will it make a difference if I'm running php-nuke platinum.
Thanks |
|
|
|
 |
technocrat Involved


Joined: Jul 07, 2005 Posts: 492
|
Posted:
Tue Jul 26, 2005 1:07 pm |
|
Yes it does.
You can use the patch packs I made up.
It will take you to PNP patch 3.0b
Plus it fixes many things that are wrong in PNP and you get Sentinel. |
|
|
|
 |
|
|
|
|