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™ Bug Reports
Author Message
BobMarion
Former Admin in Good Standing


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

PostPosted: Thu Mar 10, 2005 10:20 pm Reply with quote

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.

_________________
Bob Marion
Codito Ergo Sum
Only registered users can see links on this board! Get registered or login!

Last edited by BobMarion on Wed May 04, 2005 1:57 pm; edited 1 time in total 
View user's profile Send private message Send e-mail Visit poster's website
BobMarion
PostPosted: Fri Mar 11, 2005 10:44 pm Reply with quote

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
New Member


Joined: Jul 26, 2005
Posts: 3

PostPosted: Tue Jul 26, 2005 3:26 am Reply with quote

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.
 
View user's profile Send private message
BobMarion
PostPosted: Tue Jul 26, 2005 10:11 am Reply with quote

7.6 has Patched 3.0 availible and doesn't need these changes if you have applied the patched files.
 
jtf
PostPosted: Tue Jul 26, 2005 12:34 pm Reply with quote

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
Life Cycles Becoming CPU Cycles


Joined: Jul 07, 2005
Posts: 511

PostPosted: Tue Jul 26, 2005 12:50 pm Reply with quote

Only registered users can see links on this board! Get registered or login!
Or 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!
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
jtf
PostPosted: Tue Jul 26, 2005 12:55 pm Reply with quote

technocrat wrote:
http://www.nukefixes.com/forum-44.html
Or Only registered users can see links on this board! Get registered or login!



Will it make a difference if I'm running php-nuke platinum.

Thanks
 
technocrat
PostPosted: Tue Jul 26, 2005 1:07 pm Reply with quote

Yes it does.

You can use the patch packs I made up. Only registered users can see links on this board! Get registered or login!
It will take you to PNP patch 3.0b
Plus it fixes many things that are wrong in PNP and you get Sentinel.
 
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™ Bug Reports

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 ©