PHP Web Host - Quality Web Hosting For All PHP Applications Clan Themes! We make clans look good!!
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
BobMarion
Former Admin in Good Standing


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

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

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


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

PostPosted: Fri Mar 11, 2005 10:44 pm Reply with quote Back to top

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 .
View user's profile Send private message Send e-mail Visit poster's website
jtf
New Member
New Member


Joined: Jul 26, 2005
Posts: 3

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

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
Former Admin in Good Standing


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

PostPosted: Tue Jul 26, 2005 10:11 am Reply with quote Back to top

7.6 has Patched 3.0 availible and doesn't need these changes if you have applied the patched files.
View user's profile Send private message Send e-mail Visit poster's website
jtf
New Member
New Member


Joined: Jul 26, 2005
Posts: 3

PostPosted: Tue Jul 26, 2005 12:34 pm Reply with quote Back to top

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?
View user's profile Send private message
technocrat
Life Cycles Becoming CPU Cycles


Joined: Jul 07, 2005
Posts: 511

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

Only registered users can see links on this board!
Get registered or login to the forums!

Or
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message
jtf
New Member
New Member


Joined: Jul 26, 2005
Posts: 3

PostPosted: Tue Jul 26, 2005 12:55 pm Reply with quote Back to top

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



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

Thanks
View user's profile Send private message
technocrat
Life Cycles Becoming CPU Cycles


Joined: Jul 07, 2005
Posts: 511

PostPosted: Tue Jul 26, 2005 1:07 pm Reply with quote Back to top

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 to the forums!

It will take you to PNP patch 3.0b
Plus it fixes many things that are wrong in PNP and you get Sentinel.
View user's profile Send private message
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.

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum