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
BobMarion
Former Admin in Good Standing


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

PostPosted: Sat Feb 11, 2006 1:19 am Reply with quote

Added for 2.4.2pl4

technocrat wrote:
Ok I got it, the force url code is only looking at $_SERVER['HTTP_HOST'] which is always going to be the Only registered users can see links on this board! Get registered or login! or domain.com depending on which you are using. But what about if the site is in a sub folder?

The nukeurl should be Only registered users can see links on this board! Get registered or login! right?
But the $_SERVER['HTTP_HOST'] isnt going to show the folder, so $_SERVER['HTTP_HOST'] != $nukeurl is always going to be true. So now you have the problem of it replacing something that it should not be. Which is in turn adding the extra folder.

So all we have to do is trim off the folder(s).

So find:
Code:
$servrqst1 = strtolower($_SERVER['HTTP_HOST']);


After add:
Code:
  if($pos = strpos($servtemp1, '/')){

     $servtemp1 = substr($servtemp1,0,$pos);
  }

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


Joined: Aug 27, 2002
Posts: 17086

PostPosted: Sat Feb 11, 2006 8:08 am Reply with quote

He's back .......
 
View user's profile Send private message
technocrat
Life Cycles Becoming CPU Cycles


Joined: Jul 07, 2005
Posts: 511

PostPosted: Sat Feb 11, 2006 9:34 am Reply with quote

Smile Glad to see you around again bob

_________________
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! / Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message
BobMarion
PostPosted: Sat Feb 11, 2006 11:29 am Reply with quote

TY
 
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Sat Feb 11, 2006 6:59 pm Reply with quote

Image
 
View user's profile Send private message
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 ©