PHP Web Host - Quality Web Hosting For All PHP Applications Clan Themes! We make clans look good!!
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
BobMarion
Former Admin in Good Standing


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

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

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 to the forums!
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 to the forums!
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);
  }
View user's profile Send private message Send e-mail Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

He's back .......
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
technocrat
Life Cycles Becoming CPU Cycles


Joined: Jul 07, 2005
Posts: 511

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

Smile Glad to see you around again bob
View user's profile Send private message
BobMarion
Former Admin in Good Standing


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

PostPosted: Sat Feb 11, 2006 11:29 am Reply with quote Back to top

TY
View user's profile Send private message Send e-mail Visit poster's website
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

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

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.

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum