Author |
Message |
mrix
Client

Joined: Dec 04, 2004
Posts: 757
|
Posted:
Mon Mar 07, 2005 2:12 pm |
|
Hello all I have just installed the sentinel 2.2 but find I have no access ti the forum admin page? I did have the same problem with the last upgrade and the problem was rectified by some code change in sentinal.php.. anyone have any idea`s with this problem??/
Cheers
all
mrix |
|
|
|
 |
chatserv
Member Emeritus

Joined: May 02, 2003
Posts: 1389
Location: Puerto Rico
|
Posted:
Mon Mar 07, 2005 2:36 pm |
|
|
|
 |
mrix

|
Posted:
Mon Mar 07, 2005 4:27 pm |
|
Hi thanks for the link but I find these topics centre around sentinel.php and the new file is called nukesetinel.php are they the same file but diff names etc?
Cheers
mrix |
|
|
|
 |
chatserv

|
Posted:
Mon Mar 07, 2005 7:24 pm |
|
Same concept but with nukesentinel.php in it, if you updated your mainfile.php code could have errors, it either is looking for the wrong file, it has $forum_id instead of the FORUM_ADMIN define or you don't have Nuke Patched 2.9 installed. |
|
|
|
 |
mrix

|
Posted:
Tue Mar 08, 2005 1:54 am |
|
Your right it was the not having the 2.9 patch I have now installed it and I finally have access to the forum admin yayyyy........one strange glitch though in normal admin panel I have 2 forum square icons???? this is not much of a problem I know as both links do the same thing. would be nice to remove one of them though ????
Many thanks for you help
mrix |
|
|
|
 |
chatserv

|
Posted:
Tue Mar 08, 2005 8:51 am |
|
Delete the forum admin files from admin/case, admin/links and admin/modules |
|
|
|
 |
speedx
Hangin' Around

Joined: May 27, 2004
Posts: 42
|
Posted:
Thu Mar 10, 2005 3:04 pm |
|
My forum admin page is blank also, i tried the fixes and it does not work, if i take the mainfile.php and at the top it has
if ($forum_admin == 1) {
include("../../../includes/nukesentinel.php");
} elseif ($inside_mod == 1) {
include("../../includes/nukesentinel.php");
} else {
include("includes/nukesentinel.php");
}
if i change all the lines that say includes/nukesentinel.php TO includes/sentinel.php everthing works ok .. any thoughts?
PS this is for the newest sentinel were the files are nukesentinel and not sentinel ... just to clear that up
Thanks |
|
|
|
 |
chatserv

|
Posted:
Thu Mar 10, 2005 3:21 pm |
|
|
|
 |
speedx

|
Posted:
Thu Mar 10, 2005 4:19 pm |
|
What if the page is customized alot .. this would take a lot of work to go though the php files and fix them |
|
|
|
 |
speedx

|
Posted:
Thu Mar 10, 2005 5:03 pm |
|
well i updated to the patched 2.9 and now i get this error ... Redirection limit for this URL exceeded .... i cant even get to the 192.168 ... www.nukenews.ca.tt also does not work .. i tried /index.php and without .. i cand find the line in the mainfile.php to change .. help  |
|
|
|
 |
speedx

|
Posted:
Thu Mar 10, 2005 5:22 pm |
|
well i put back my old db.php file and that fixed it i can now get to the webpage.. |
|
|
|
 |
BobMarion
Former Admin in Good Standing

Joined: Oct 30, 2002
Posts: 1037
Location: RedNeck Land (known as Kentucky)
|
Posted:
Thu Mar 10, 2005 6:51 pm |
|
If for any reason you are not using Patched 2.9 and want to use NukeSentinel 2.2.0 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! |
|
|
 |
BobMarion

|
Posted:
Fri Mar 11, 2005 10:37 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. |
|
|
|
 |
speedx

|
Posted:
Sat Mar 12, 2005 9:18 pm |
|
nevermind  |
|
|
|
 |
|