vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   URL variable (https://vborg.vbsupport.ru/showthread.php?t=73371)

Abe1 12-27-2004 07:14 PM

URL variable
 
In vb3 what is the valible i would use compare if a user is viewing my forum from this url or from that url.

Basicly, I want to make it that if you are useing www.abc.com view this, else view his.

Abe1 12-27-2004 08:09 PM

i found out '$_SERVER[HTTP_HOST]'

Dean C 12-27-2004 09:59 PM

The variable you're looking for is:

PHP Code:

$_SERVER['HTTP_REFFERRER'

Bare in mind it's quite easy to spoof a browsers referrer so do not rely on this variable alone :)

Abe1 12-28-2004 01:46 PM

Quote:

Originally Posted by Dean C
The variable you're looking for is:

PHP Code:

$_SERVER['HTTP_REFFERRER'

Bare in mind it's quite easy to spoof a browsers referrer so do not rely on this variable alone :)

No. The one I'm looking for is $_SERVER[HTTP_HOST]. I need to know what they are using NOW not were they came from.

Dean C 12-28-2004 01:59 PM

Well your first post implied you were looking for the referrer, ah well good luck with whatever you are coding :)!

Abe1 12-28-2004 02:00 PM

Quote:

Originally Posted by Dean C
Well your first post implied you were looking for the referrer, ah well good luck with whatever you are coding :)!

Ok. Thanks anyways for your help.


All times are GMT. The time now is 01:30 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01116 seconds
  • Memory Usage 1,708KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete