The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
In my PHP script, I want to change directory only when the user has referred from the root of the domain i.e. http://www.domain.com and NOT when referred from http://www.domain.com/forum
something like this:- Code:
if(referrer = "http://www.domain.com")
{
chdir('forum');
}
else
{
no chdir
}
thank you |
|
#2
|
||||
|
||||
|
A much easier way than relying on easily falsified referrers, is to just use chdir() with an absolute path. For example:
PHP Code:
|
|
#3
|
||||
|
||||
|
thank you so much. works perfect !
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|