Nick_W Posted April 17, 2003 Share Posted April 17, 2003 Hi, I want to display a box in the left column only if the user is using a non-SSL connection. How can I determine this (what code to I need to put in column_left.php)? TIA, Nick. Link to comment Share on other sites More sharing options...
M@rcel Posted April 17, 2003 Share Posted April 17, 2003 With latest snapshots: if ($request_type == 'NONSSL') { do your thing } hth Marcel Greetings from Marcel |Current version|Documentation|Contributions| Link to comment Share on other sites More sharing options...
Nick_W Posted April 17, 2003 Author Share Posted April 17, 2003 Next time could you answer a little bit faster please <G>! Worked first time, thanks very much. Regards, Nick. Link to comment Share on other sites More sharing options...
M@rcel Posted April 17, 2003 Share Posted April 17, 2003 Thanks for the feedback :) Glad I could help Marcel Greetings from Marcel |Current version|Documentation|Contributions| Link to comment Share on other sites More sharing options...
wizardsandwars Posted April 17, 2003 Share Posted April 17, 2003 Just curious, but with the latest snapshot, shouldn't that be.... if (getenv('HTTPS') == 'on') { do your thing } It is my understanding that we changed $request_type == 'NONSSL' to getenv('HTTPS') == 'on' in MS1. ------------------------------------------------------------------------------------------------------------------------- NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit. If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help. Link to comment Share on other sites More sharing options...
M@rcel Posted April 17, 2003 Share Posted April 17, 2003 Just curious, but with the latest snapshot, shouldn't that be.... if (getenv('HTTPS') == 'on') { do your thing } It is my understanding that we changed $request_type == 'NONSSL' to getenv('HTTPS') == 'on' in MS1. According to my code (=snapshot of last night) it's the other way around. The current code uses the $request_type which is set in application_top.php: // set the type of request (secure or not) $request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL'; I guess this is done so the getev() is only called once to get the connection-type. Greetings from Marcel |Current version|Documentation|Contributions| Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.