phpgroupware-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Phpgroupware-developers] save redirects


From: Miles Lott
Subject: Re: [Phpgroupware-developers] save redirects
Date: Sun, 30 Dec 2001 07:36:01 -0600

Here is the diff for the check and redirect.  I do not have
that machine running right now, so this is from memory.

--- functions.inc.php   2001/12/29 18:02:51     1.118
+++ functions.inc.php   2001/12/30 13:30:41
@@ -650,6 +650,11 @@
                       
$GLOBALS['phpgw_info']['server'][$GLOBALS['phpgw']->db->f('config_name')]
= stripslashes($GLOBALS['phpgw']->db->f('config_value'));
                }

+              
if(@isset($GLOBALS['phpgw_info']['server']['enforce_ssl']) && !$HTTPS)
+               {
+                       Header('Location: https://' .
$GLOBALS['phpgw_info']['server']['hostname'] .
$GLOBALS['phpgw_info']['server']['webserver_url'] . $REQUEST_URI);
+               }
+
               
if(@isset($GLOBALS['phpgw_info']['server']['cache_phpgw_info']))
                {
                        if($server_info_cache)

Lars Kneschke wrote:
> 
> > address@hidden schrieb:
> >
> > Not exactly the same, but:
> >
> > I have a mod on one machine here to add an 'enforce_ssl'
> > config.  With this set to true, the user is always redirected
> > to https://[webserver_url][REQUEST_URI] if HTTPS is not set.
> > Seems to work pretty well for me.  I wonder if anyone would
> > want this?  It only takes a few lines of code in functions.inc.php and
> > in the config.tpl for the admin app.
> I like to see this piece of code. I find ti very usefull.
> 
> Cu
> 
> _______________________________________________
> Phpgroupware-developers mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/phpgroupware-developers

-- 

Miles Lott - http://milosch.net
phpGroupWare - http://www.phpgroupware.org




reply via email to

[Prev in Thread] Current Thread [Next in Thread]