My web host uses a different URL for its SSL connections like so:
SSL: https://server4000.net/mysite/index.php3
non-SSL: http://www.mysite.com/index.php3
I thought I had things set correctly in my standard_library ScreenURL
setting, but whenever the SERVER_NAME switches over to the SSL server, it
retains the "http://" instead of "https://"
If anyone else out there has had this problem switching back and forth
between two servers, please let me know how you worked around it. I am truly
at my wits end.
Just for reference, this is what I have so far:
function ScreenURL($screen, $secure=FALSE, $extra='')
{
global $sid;
global $UserInfo;
if(USE_SSL AND $secure)
{
$URL = "https://server4000.net/mysite";
$URL .= EXTERNAL_PATH . SCRIPT_NAME . "?SCREEN=$screen";
}
else
{
$URL = "http://";
$URL .= SERVER_NAME . EXTERNAL_PATH . SCRIPT_NAME . "?SCREEN=$screen";
}
if((!USE_COOKIES) OR (!COOKIE_FOUND))
{
$URL .= "&sid=$sid";
}
if(is_array($extra))
{
for(reset($extra); $key=key($extra); next($extra))
{
$URL .= "&$key=" . prepareText($extra[$key]);
}
}
return($URL);
}
Thanks in advance for any assistance with this!!
________________________________________
Alan McCoy
[EMAIL PROTECTED]
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Site: http://www.working-dogs.com/freetrade/
Problems?: [EMAIL PROTECTED]