phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: phpgwapi/inc class.phpgw.inc.php,1.46,1.47


From: Ralf Becker <address@hidden>
Subject: [Phpgroupware-cvs] CVS: phpgwapi/inc class.phpgw.inc.php,1.46,1.47
Date: Mon, 31 Mar 2003 11:49:29 -0500

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

Modified Files:
        class.phpgw.inc.php 
Log Message:
added function redirect_link and added nodisplay before exit

Index: class.phpgw.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.phpgw.inc.php,v
retrieving revision 1.46
retrieving revision 1.47
diff -C2 -r1.46 -r1.47
*** class.phpgw.inc.php 31 May 2002 08:29:19 -0000      1.46
--- class.phpgw.inc.php 31 Mar 2003 16:49:27 -0000      1.47
***************
*** 104,107 ****
--- 104,112 ----
                }
  
+               function redirect_link($url = '',$extravars='')
+               {
+                       $this->redirect($this->session->link($url, $extravars));
+               }
+               
                /**
                 * Handles redirects under iis and apache
***************
*** 111,115 ****
                 * @access      public
                 *      @param  string The url ro redirect to
!                * @syntax redirect(key as string)
                 * @example None yet
                 */
--- 116,120 ----
                 * @access      public
                 *      @param  string The url ro redirect to
!                * @syntax redirect($string)
                 * @example None yet
                 */
***************
*** 141,145 ****
                                echo "<H3>Please continue to <a 
href=\"$url\">this page</a></H3>";
                                echo "\n</BODY></HTML>";
-                               exit;
                        }
                        else
--- 146,149 ----
***************
*** 147,152 ****
                                Header("Location: $url");
                                print("\n\n");
-                               exit;
                        }
                }
  
--- 151,157 ----
                                Header("Location: $url");
                                print("\n\n");
                        }
+                       $GLOBALS['phpgw_info']['flags']['nodisplay'] = True;
+                       exit;
                }
  





reply via email to

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