phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] phpgwapi/inc class.phpgw.inc.php, 1.42.4.2, 1.42.4.3


From: Dave Hall <address@hidden>
Subject: [Phpgroupware-cvs] phpgwapi/inc class.phpgw.inc.php, 1.42.4.2, 1.42.4.3
Date: Sun, 28 Sep 2003 04:50:24 +0000

Update of /cvsroot/phpgroupware/phpgwapi/inc
In directory subversions:/tmp/cvs-serv12503

Modified Files:
      Tag: Version-0_9_16-branch
        class.phpgw.inc.php 
Log Message:
fixes, formatting, respecting config

Index: class.phpgw.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.phpgw.inc.php,v
retrieving revision 1.42.4.2
retrieving revision 1.42.4.3
diff -C2 -d -r1.42.4.2 -r1.42.4.3
*** class.phpgw.inc.php 21 Jun 2003 23:46:11 -0000      1.42.4.2
--- class.phpgw.inc.php 28 Sep 2003 04:50:21 -0000      1.42.4.3
***************
*** 90,94 ****
                 * Link url generator
                 *
!                * Used for backwards compatibility and as a shortcut. If no 
url is passed, it will use PHP_SELF. Wrapper to session->link()
                 *
                 * @access      public
--- 90,95 ----
                 * Link url generator
                 *
!                * Used for backwards compatibility and as a shortcut. If no 
url is passed, it 
!                * will use PHP_SELF. Wrapper to session->link()
                 *
                 * @access      public
***************
*** 107,126 ****
                function redirect_link($url = '',$extravars='')
                {
                        $this->redirect($this->session->link($url, $extravars));
                }
                
                /**
!        * Repsost Prevention Detection
!        *
!        * Used as a shortcut. Wrapper to session->is_repost()
!        *
!        * @access      public
!        * @param       bool    $display_error  Use common error handler? - not 
yet implemented
!        * @return bool True if called previously, else False - call ok
!        * @see session->is_repost()
!        * @syntax is_post()
!        * @example $repost = $GLOBALS['phpgwapi']->is_repost();
                * @author       Dave Hall
!        */
                function is_repost($display_error = False)
                {
--- 108,147 ----
                function redirect_link($url = '',$extravars='')
                {
+                       if(@defined('PHPGW_PHPSESSID') && @defined('SID'))//add 
support for non cookie based php4 sessions
+                       {
+                               if(is_array($extravars))
+                               {
+                                       list($ignore, $id) = explode('=',SID);
+                                       $extravars[PHPGW_PHPSESSID] = $id;
+                               }
+                               else
+                               {
+                                       if($extravars)
+                                       {
+                                               $extravars .= SID; 
+                                       }
+                                       else
+                                       {
+                                               $extravars = SID;
+                                       }
+                               }
+                       }
+ 
                        $this->redirect($this->session->link($url, $extravars));
                }
                
                /**
!               * Repsost Prevention Detection
!               *
!               * Used as a shortcut. Wrapper to session->is_repost()
!               *
!               * @access       public
!               * @param        bool    $display_error  Use common error 
handler? - not yet implemented
!               * @return bool  True if called previously, else False - call ok
!               * @see  session->is_repost()
!               * @syntax is_post()
!               * @example $repost = $GLOBALS['phpgwapi']->is_repost();
                * @author       Dave Hall
!               */
                function is_repost($display_error = False)
                {





reply via email to

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