feha
Posts: 712
|
Posted: 03/14/2006, 7:07 AM |
|
function Secure_Connection()
{
if (isSet($_SERVER['HTTPS']))
return (0 == strcmp(strtolower($_SERVER['HTTPS']), 'on')) ? TRUE : FALSE;
else
return FALSE;
}
put this function in Common.php ...
[white space at the top]
when you open project settings there you write the ssl url
you just enter a constant ".SSL_URL."
at the top you include the function ...
you call the function:
usage:
if(Secure_Connection() )
{
define("SSL_URL", "https://www.mysite.com/");
}
else
{
define("SSL_URL", "http://www.mysite.com/");
}
enjoy
see: http://forums.yessoftware.com/posts.php?post_id=72604
_________________
Regards
feha
www.vision.to
feedpixel.com |