Author |
Message |
Susann
Moderator

Joined: Dec 19, 2004
Posts: 3191
Location: Germany:Moderator German NukeSentinel Support
|
Posted:
Wed May 18, 2005 4:46 pm |
|
Nuke 6.5. works with 2.2.0 and I thought also with 2.2.1.
But after I upgraded I can´t open admin.php anymore.Time out till the the page loaded.
The code in the mainfile.php is still the same. Works with 2.2.0.pl4.
I know there was another topic about this problem and also the solution, (mainfile.php) but I can´t find it again. Any ideas ? What can I add to the mainfile.php ? |
|
|
|
 |
BobMarion
Former Admin in Good Standing

Joined: Oct 30, 2002
Posts: 1037
Location: RedNeck Land (known as Kentucky)
|
Posted:
Wed May 18, 2005 7:15 pm |
|
Is it just admin.php or admin.php?op=ABxxxxx that isn't loading? |
_________________ Bob Marion
Codito Ergo Sum
Only registered users can see links on this board! Get registered or login! |
|
|
 |
BobMarion

|
Posted:
Wed May 18, 2005 7:20 pm |
|
Also check the following files for the following code:
admin/case/case.nukesentinel.php
Code:global $admin_file;
if(!isset($admin_file)) { $admin_file = "admin"; }
if(!defined('ADMIN_FILE')) {
header("Location: ../../".$admin_file.".php");
die();
}
|
admin/links/links.nukesentinel.php
Code:global $admin_file;
if(!isset($admin_file)) { $admin_file = "admin"; }
if(!defined('ADMIN_FILE')) {
header("Location: ../../".$admin_file.".php");
die();
}
|
admin/modules/nukesentinel.php
Code:global $admin_file;
if(!isset($admin_file)) { $admin_file = "admin"; }
if(!defined('ADMIN_FILE')) {
header("Location: ../../".$admin_file.".php");
die();
}
|
Since we know that 6.5 does NOT have a 2.9 patch then the if(!defined('ADMIN_FILE')) { has to be changed to the less secure if(!stristr($_SERVER['PHP_SELF'], $admin_file.".php")) { otherwise your admin will loop endlessly. |
|
|
|
 |
Susann

|
Posted:
Thu May 19, 2005 2:45 pm |
|
Thanks for your reply.
I changed the code but still can´t login in the Administration System, because the loop is endless. Also strange, I can logout admin.php?op=logout.I redirect my site, but after your replay I know that´s not the reason for this problem.
Quote: |
if(!defined('ADMIN_FILE')) { has to be changed to the less secure if(!stristr($_SERVER['PHP_SELF'], $admin_file.".php")) |
admin/links/linksnukesentinel.php
Code:
global $admin_file;
if(!isset($admin_file)) { $admin_file = "admin"; }
if(!stristr($_SERVER['PHP_SELF'], $admin_file.".php")) {
header("Location: ../../".$admin_file.".php");
die();
}
if ($radminsuper==1) {
adminmenu("".$admin_file.".php?op=ABMain", _AB_NUKESENTINEL, "nukesentinel.png");
}
|
admin/modules/nukesentinel.php
Code:
global $admin_file;
if(!isset($admin_file)) { $admin_file = "admin"; }
if(!stristr($_SERVER['PHP_SELF'], $admin_file.".php")) {
header("Location: ../../".$admin_file.".php");
die();
}
|
admin/case/casenukesentinel.php
Code:
global $admin_file;
if(!isset($admin_file)) { $admin_file = "admin"; }
if(!stristr($_SERVER['PHP_SELF'], $admin_file.".php")) {
header("Location: ../../".$admin_file.".php");
die();
}
|
Is this code correct ? It seems to be a continuous problem with my nuke 6.5. configuration and nukesentinel 2.2.1  |
|
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Thu May 19, 2005 3:11 pm |
|
Have you added $admin_file = "admin"; to your config.php file? |
|
|
|
 |
Susann

|
Posted:
Thu May 19, 2005 4:49 pm |
|
I don't have that line in my config.php and what about the admin.php
define('ADMIN_FILE', true) ? |
|
|
|
 |
Raven

|
Posted:
Thu May 19, 2005 5:27 pm |
|
You absolutely have to have that in your config And, yes, on the other if you have made the 2.9 or newer patches. |
|
|
|
 |
Susann

|
Posted:
Fri May 20, 2005 4:11 am |
|
Thanks,
Susann is happy again.
After i added the define('ADMIN_FILE', true) it´s ok. |
|
|
|
 |
Susann

|
Posted:
Mon Jun 13, 2005 3:06 pm |
|
Hello again.
I´m still using NukeSentinel 2.2.1.b . Can I also use
2.3.0 with nuke 6.5. ? |
|
|
|
 |
BobMarion

|
Posted:
Tue Jun 14, 2005 2:07 pm |
|
Here's what I suggest you try. Keep copies of your current nukesentinel files and upgrade to the 2.3.0 version. Since you have made the changes to have 2.2.x work 2.3.0 should run without any problems but in case you do run into a problem you can always revert to yoru saved copies. |
|
|
|
 |
CurtisH
Life Cycles Becoming CPU Cycles

Joined: Mar 15, 2004
Posts: 638
Location: West Branch, MI
|
Posted:
Tue Jun 14, 2005 2:14 pm |
|
Worked great on 6.9! |
_________________ Those who dream by day are cognizant of many things which escape those who dream only by night. ~Poe |
|
|
 |
Susann

|
Posted:
Tue Jun 14, 2005 2:40 pm |
|
Oh, thanks.Then I can check the newest translation files for 2.3.0. |
|
|
|
 |
|