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.5.x
Author Message
redhairz
Worker
Worker



Joined: Nov 17, 2006
Posts: 222

PostPosted: Wed Nov 29, 2006 5:00 pm Reply with quote

hello all me just upgrade to 250 with rn20202
saw this in the upgrade (patched.txt)
which file in the forum admin to edit the change below?


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");[/code

_________________
Jesus is Alive, He is our joy, be it good times or bad time. 
View user's profile Send private message
montego
Site Admin



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

PostPosted: Wed Nov 29, 2006 5:30 pm Reply with quote

Well, I would upgrade to the latest, which is 2.5.03 and I do not believe that you really need to make any core code edits. There are probably some code blocks that could be commented out, but when rn2.10.00 comes out "soon", all this will have already been done for you in the script files.

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
redhairz







PostPosted: Wed Nov 29, 2006 6:23 pm Reply with quote

montego thanks for the answer so i guess that i will leave the patched.txt alone since it din give any problem without it. i just PatchUp again ..... killing me to 2.5.1 upgrade. i hit the upgrade [comment button] it always reture back to the same page. no upgrade was done. i decide to leave it as 250 for a while. i hope the Sentiel is working well.. hopeful.

montego is there an error table or mistake i had done? which cause the proble mention as above?
 
montego







PostPosted: Wed Nov 29, 2006 6:49 pm Reply with quote

Don't know what all you have done already, so I'd be guessing (which isn't good).
 
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Wed Nov 29, 2006 11:36 pm Reply with quote

All you need is one line added to the same block of code
Code:


@require_once(INCLUDE_PATH."includes/nukesentinel.php");

_________________
- Star Wars Rebellion Network -

Need help? Nuke Patched Core, Coding Services, Webmaster Services 
View user's profile Send private message Visit poster's website
redhairz







PostPosted: Wed Nov 29, 2006 11:50 pm Reply with quote

evaders99 thanks for helping hmmm exactly
which folder or file to add in this @require_once(INCLUDE_PATH."includes/nukesentinel.php"); sorry i wasn't sure .Very Happy
 
evaders99







PostPosted: Thu Nov 30, 2006 12:02 am Reply with quote

mainfile.php
 
redhairz







PostPosted: Thu Nov 30, 2006 12:25 am Reply with quote

ok i found this hope this is the correct correction



and....added

if (defined('FORUM_ADMIN')) {
include_once("../../../includes/nsngr_func.php");
} elseif (defined('INSIDE_MOD')) {
include_once("../../includes/nsngr_func.php");
} else {
include_once("includes/nsngr_func.php");
}
@require_once(INCLUDE_PATH."includes/nukesentinel.php");

back later thanks
 
montego







PostPosted: Thu Nov 30, 2006 5:46 am Reply with quote

redhairz, that is not be block of code in question. Look further up within mainfile.php for an include of "sql_layer.php". Post that whole block of code and we'll help you get it right.
 
redhairz







PostPosted: Thu Nov 30, 2006 11:54 am Reply with quote

montego oR evaders99 i re-install (rn20202)from the start right up to 242pl9
going over to 250upgrade in patched.txt i found this Patched.txt....... 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");


in my mainfile i had(i think the file is already there? do i still need to add
@require_once(INCLUDE_PATH."config.php");
@require_once(INCLUDE_PATH."db/db.php");
@require_once(INCLUDE_PATH."includes/sql_layer.php");[/code]

) guys sorry for posting this sencitive file if u deleted it..can u pm me for the guide to my question? thanks for the trouble. Dance-Stick

(this is the mainfile i found)
if(defined('FORUM_ADMIN')) {
define('INCLUDE_PATH', '../../../');
} elseif(defined('INSIDE_MOD')) {
define('INCLUDE_PATH', '../../');
} else {
define('INCLUDE_PATH', './');
}

// Added by Raven for my RavenNuke76(tm) installation in v2.02.02
// These 2 settings MUST be set here (right before including config.php) to avoid code injection.
$bypassInstallationFolderCheck = FALSE;
$bypassNukeSentinelInvalidIPCheck = FALSE;
@require_once(INCLUDE_PATH."config.php");
@require_once(INCLUDE_PATH."db/db.php");
@require_once(INCLUDE_PATH."includes/sql_layer.php");
@require_once(INCLUDE_PATH."includes/ipban.php");
if (file_exists(INCLUDE_PATH."includes/custom_files/custom_mainfile.php")) {
@include_once(INCLUDE_PATH."includes/custom_files/custom_mainfile.php");
}
@require_once(INCLUDE_PATH."includes/nukesentinel.php");
 
montego







PostPosted: Sat Dec 02, 2006 9:45 am Reply with quote

Quote:

@require_once(INCLUDE_PATH."includes/nukesentinel.php");


It is as I suspected since you were using RavenNuke. The mainfile.php core file edits are already in place.

Are you getting errors when you use NukeSentinel? If so, be specific as to what they are.
 
redhairz







PostPosted: Sun Dec 03, 2006 10:11 am Reply with quote

yes the the @require... is already found in the mainfile that i found out.
sure will let u know Asap
 
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.5.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 ©