Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
1 registered (JPFolks), 38 Guests and 16 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 05/10/05
Posts: 1
Top Posters (30 Days)
Ruben 49
DennyP 24
Gizmo 23
Dunny 17
SteveS 14
AllenAyres 12
dbremer 10
drkknght00 9
SD 9
driv 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Topic Options
#172540 - 01/06/07 07:19 AM Quick Update for FULL SSL support...
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
I have a friend who can only access my site via SSL (hardcore security policies at his cushy govt job), and everywhere that uses the "full_url" breaks his browsing via SSL and pops him to the normal page (making a post, creating a topic, replying, pms, logging in, etc)...

So I got the bright idea tonight to hack in full SSL support via tweaking with the full url string in the array in the config.inc.php...

It's fairly easy to do, but only tested on PHP5 (though it should work on PHP4).

In includes/config.inc.php:
Find:
 Code:
//	Note: If you modify ANY code within your UBB, we at Groupee, Inc
//  cannot offer you support -- thus modify at your own peril :)


Add After:
 Code:
$ssl = $_SERVER["HTTPS"];
$url = $_SERVER["HTTP_HOST"];
if($ssl == "on") { $https = "https"; }
else { $https = "http"; }


Then Find:
 Code:
#  'FULL_URL' => 'http://www.yourdomain.tld/path',


Replace With:
 Code:
  'FULL_URL' => $https . '://' . $url . '/yourpath',


It'll take and change "http" with "https" if ssl is being used, else it'll take and use "http". Also I set $url to identify if a user is accessing my forum from another domain name (as I have several).

It should work on any Apache based UBB.threads install with PHP4/5 though...
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#172541 - 01/06/07 07:23 AM Re: Quick Update for FULL SSL support... [Re: Gizmo]
ntdoc Offline
Registered: 11/09/06
Posts: 3384
 Quote:
It should work on any Apache based UBB.threads install with PHP4/5 though...


Any reason why it wouldn't work on an IIS 6 system as well?
Top
#172543 - 01/06/07 07:26 AM Re: Quick Update for FULL SSL support... [Re: ntdoc]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
I have no idea, since it's just PHP code it SHOULD work, but you'd have to test it (and as I don't have IIS to test on I coudln't say either way)
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#172545 - 01/06/07 07:28 AM Re: Quick Update for FULL SSL support... [Re: Gizmo]
ntdoc Offline
Registered: 11/09/06
Posts: 3384
Okay, may try later on if I get time at work.
Top
#172547 - 01/06/07 07:31 AM Re: Quick Update for FULL SSL support... [Re: ntdoc]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
 Originally Posted By: ntdoc
Okay, may try later on if I get time at work.
Let me know if it fails, if so I have some tweaks to get it to work ;\)
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Custom forum permissions
by ntdoc
05/18/12 02:07 PM
Forum Stats
10489 Members
36 Forums
33841 Topics
181697 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image