FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Dynamic WWW_ROOT
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Dynamic WWW_ROOT [message #32192] Tue, 13 June 2006 22:21 Go to previous message
blemish is currently offline  blemish   France
Messages: 13
Registered: October 2005
Location: France
Karma:
Junior Member

Hello boys,

My board is accessible either with HTTP or HTTPS.
The base href in fud templates always refer to HTTP.

What I would like : if I come with HTTPS, the base href should refer to HTTPS

Something like
$WWW_ROOT = "http".(isset($_SERVER['HTTPS'])&&$_SERVER['HTTPS']=='on' ? 's':'')."://www.mysite.com/forums/";
in GLOBALS.php don't work, since (I think) it is used at compile time ... ?

Then, do I need to modify
$cmpl['FULL_ROOT'] = ...
in compile.inc ? I mean, is it the only way to do it ?

Thank you very much.

[Updated on: Tue, 13 June 2006 22:23]

Report message to a moderator

[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Flood Control
Next Topic: Body Mangling Regex
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 07:26:53 GMT 2024

Total time taken to generate the page: 0.03981 seconds