The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
How do i do this ?
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 !
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|