on 4/17/00 3:24 PM, Alan McCoy at [EMAIL PROTECTED] wrote:
This should come close:
function ScreenURL($screen, $secure=FALSE, $extra='')
{
global $sid;
global $UserInfo;
// If you want users to remain on the secure server once
// they are there, uncomment the next line.
//global $HTTPS; if($HTTPS=='on') $secure=TRUE;
if(USE_SSL AND $secure)
{
$URL = "https://server4000.net/tomorrowsworld";
$URL .= EXTERNAL_PATH . SCRIPT_NAME . "?SCREEN=$screen";
}
else
{
$URL = "http://tomorrowsworld.com";
$URL .= 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);
}
-- Jeremiah
> 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.
>
>
> 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]