Login through HTTPS only!

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
Post Reply
Goran
Posts: 81
Joined: Thu 27. Nov 2003, 11:43
Location: Zagreb, Croatia
Contact:

Login through HTTPS only!

Post by Goran »

Open login.php and add this code right after Copyright notice text, before if (ini_get.......:

Code: Select all

if($_SERVER['HTTPS']=='on'); else {header ('Location: https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQ EST_URI']);}
Post Reply