Author |
Message |
redhairz
Worker


Joined: Nov 17, 2006
Posts: 222
|
Posted:
Wed Nov 29, 2006 5:00 pm |
|
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. |
|
|
 |
montego
Site Admin

Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Wed Nov 29, 2006 5:30 pm |
|
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. |
_________________ 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! |
|
|
 |
redhairz

|
Posted:
Wed Nov 29, 2006 6:23 pm |
|
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 ..... 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

|
Posted:
Wed Nov 29, 2006 6:49 pm |
|
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
|
Posted:
Wed Nov 29, 2006 11:36 pm |
|
All you need is one line added to the same block of code
Code:
@require_once(INCLUDE_PATH."includes/nukesentinel.php");
|
|
_________________ - Only registered users can see links on this board! Get registered or login! -
Need help? Only registered users can see links on this board! Get registered or login! |
|
|
 |
redhairz

|
Posted:
Wed Nov 29, 2006 11:50 pm |
|
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 . |
|
|
|
 |
evaders99

|
Posted:
Thu Nov 30, 2006 12:02 am |
|
|
|
 |
redhairz

|
Posted:
Thu Nov 30, 2006 12:25 am |
|
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

|
Posted:
Thu Nov 30, 2006 5:46 am |
|
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

|
Posted:
Thu Nov 30, 2006 11:54 am |
|
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.
(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

|
Posted:
Sat Dec 02, 2006 9:45 am |
|
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

|
Posted:
Sun Dec 03, 2006 10:11 am |
|
yes the the @require... is already found in the mainfile that i found out.
sure will let u know Asap |
|
|
|
 |
|