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™ v2.4.x
Author Message
brewski
New Member
New Member


Joined: Jan 20, 2007
Posts: 3

PostPosted: Sat Jan 20, 2007 4:05 am Reply with quote

Hi there, yep my first post.

I just upgraded our fairly-new site from PHPNuke 6.5 to PHPNuke 7.6, then to PHPNuke 7.6 Patched 3.3. That went sorta well... still have to work on updating my mods from 6.5.

I then fresh-installed NukeSentinel 2.5.0.4 over top of PHPNuke 7.6 patched 3.3. I kept getting an error every time I try to uncomment this function in admin.php:

Code:
//Uncomment the following lines after setting the site url in the Administration

//global $nukeurl;
//if (!stripos_clone($_SERVER['HTTP_HOST'], $nukeurl)) {
//  die("Access denied");
//}


If I uncomment the above, I immediately get "Access Denied" when I try to access admin.php. We already have set the Site URL line in the Site Administration menu set to http://yoursite.com ... which is the correct full URL for our index page.

I looked at several pieces of code, including (relevant files shown only):

MySQL:

nuke_config table (verified $nukeurl = Site URL in Admin Menu)

PHP files:

admin.php
mainfile.php
--------------------------------------------------------------------------------------

The Fix:

Yeah, this is going to sound dumb, but PHPNuke 6.5 (our version at least) did not use the $nukeURL for much. http://yoursite.com is actually wrong. The script in mainfile.php adds Only registered users can see links on this board! Get registered or login! in front of the Site URL, so be sure that in the site administrator menu, the Site URL is only yoursite.com.

I'm leaving this here because I'm sure someone else ran into this problem. Laughing


Last edited by brewski on Sat Jan 20, 2007 4:30 am; edited 1 time in total 
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Sat Jan 20, 2007 4:15 am Reply with quote

wow...6.5 ...that was long ago...
thats a museum piece. Laughing
 
View user's profile Send private message
brewski
PostPosted: Sat Jan 20, 2007 4:31 am Reply with quote

Not if that's the most updated version your host gives you...

Note my surprise when I found out just how much of an update this was!
 
hitwalker
PostPosted: Sat Jan 20, 2007 5:10 am Reply with quote

well i used 6.5 for a long time...and upgraded to the 7.6 long ago so its basically the same story...
and i even know 2 sites that even run on a lower version then 6.5 ... Laughing
 
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™ v2.4.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 ©