Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel(tm)
Author Message
Susann
Moderator



Joined: Dec 19, 2004
Posts: 3191
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Wed May 18, 2005 4:46 pm Reply with quote

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 ?
 
View user's profile Send private message
BobMarion
Former Admin in Good Standing



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

PostPosted: Wed May 18, 2005 7:15 pm Reply with quote

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! 
View user's profile Send private message Send e-mail Visit poster's website
BobMarion







PostPosted: Wed May 18, 2005 7:20 pm Reply with quote

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







PostPosted: Thu May 19, 2005 2:45 pm Reply with quote

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 Neutral
 
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Thu May 19, 2005 3:11 pm Reply with quote

Have you added $admin_file = "admin"; to your config.php file?
 
View user's profile Send private message
Susann







PostPosted: Thu May 19, 2005 4:49 pm Reply with quote

I don't have that line in my config.php and what about the admin.php
define('ADMIN_FILE', true) ?
 
Raven







PostPosted: Thu May 19, 2005 5:27 pm Reply with quote

You absolutely have to have that in your config Smile And, yes, on the other if you have made the 2.9 or newer patches.
 
Susann







PostPosted: Fri May 20, 2005 4:11 am Reply with quote

Thanks,
Susann is happy again.
RavensScripts

After i added the define('ADMIN_FILE', true) it´s ok.
 
Susann







PostPosted: Mon Jun 13, 2005 3:06 pm Reply with quote

Hello again.

I´m still using NukeSentinel 2.2.1.b . Can I also use
2.3.0 with nuke 6.5. ?
 
BobMarion







PostPosted: Tue Jun 14, 2005 2:07 pm Reply with quote

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

PostPosted: Tue Jun 14, 2005 2:14 pm Reply with quote

Worked great on 6.9!

_________________
Those who dream by day are cognizant of many things which escape those who dream only by night. ~Poe 
View user's profile Send private message Visit poster's website Yahoo Messenger
Susann







PostPosted: Tue Jun 14, 2005 2:40 pm Reply with quote

Oh, thanks.Then I can check the newest translation files for 2.3.0.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel(tm)

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 ©