php forum
php mysql forum
php mysql smarty
 
Topic Options
#312531 - 01/06/07 06:20 AM [7.x] [Finished] Quick Update for FULL SSL support
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5133
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...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#312537 - 01/06/07 06:53 PM Re: Quick Update for FULL SSL support... [Re: Gizmo]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
Nice mod gizzy, never thought of this smile
_________________________
- Allen wavey
- What Drives You?

Top
#312544 - 01/06/07 08:06 PM Re: Quick Update for FULL SSL support... [Re: AllenAyres]
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5133
Loc: Portland, OR, USA
Yeh, it works lovely lol.. Granted my reasoning is to bypass web filters lol...

He posted toay from work without issue, so thats good; he's been so swamped at work that he hasn't been able to visit (cas they have out site blocked for some reason; yet he can get to 2600.net just fine)...

It's amazing how painless it was though lol... i haven't checked if updating the paths page on the forum clears this mod though, should be something to check out lol...

I don't see why it wouldn't work on php4 though, i checked some old code i used to do something similar and it is near identicle, so it should work fine. And I don't really see why it wouldn't work on IIS either.
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top


Moderator:  sirdude 
Who's Online
2 registered (arentzen, blaaskaak), 27 Guests and 8 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
How to hide sub forums from summary page
by blaaskaak
12/03/08 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
David DelMonte, nick1, Begbie, cenk, MATTO
13363 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks