Force SSL connections |
10/14/2011 17:03:45 | |
| PHPRunner General questions | ||
|
C
ckranich authorDevClub member
Hello all, function secure_page() { if ( !isset($_SERVER['HTTPS']) || strtolower($_SERVER['HTTPS']) !== 'on' ) { header ('Location: https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI';]); exit(); } } secure_page();
|
||