[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: admin/inc class.uiconfig.inc.php,1.8,1.9
From: |
Miles Lott <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: admin/inc class.uiconfig.inc.php,1.8,1.9 |
Date: |
Thu, 21 Feb 2002 07:27:58 -0500 |
Update of /cvsroot/phpgroupware/admin/inc
In directory subversions:/tmp/cvs-serv24918
Modified Files:
class.uiconfig.inc.php
Log Message:
Add referer capability - arrives via HTTP_GET_VARS, saved in appsession
Index: class.uiconfig.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/admin/inc/class.uiconfig.inc.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** class.uiconfig.inc.php 2 Feb 2002 19:01:17 -0000 1.8
--- class.uiconfig.inc.php 21 Feb 2002 12:27:56 -0000 1.9
***************
*** 19,22 ****
--- 19,39 ----
function index()
{
+ $referer =
urldecode($GLOBALS['HTTP_GET_VARS']['referer']);
+
+ if($referer)
+ {
+ $_redir = $referer;
+
$GLOBALS['phpgw']->session->appsession('session_data','admin_config',$referer);
+ }
+ else
+ {
+ $referer =
$GLOBALS['phpgw']->session->appsession('session_data','admin_config');
+ if($referer == '-1')
+ {
+ $referer = '';
+ }
+ $_redir = $referer ? $referer :
$GLOBALS['phpgw']->link('/admin/index.php');
+ }
+
switch($GLOBALS['HTTP_GET_VARS']['appname'])
{
***************
*** 40,44 ****
case '':
/* This keeps the admin from getting
into what is a setup-only config */
! Header('Location:
'.$GLOBALS['phpgw']->link('/admin/index.php'));
break;
default:
--- 57,61 ----
case '':
/* This keeps the admin from getting
into what is a setup-only config */
! Header('Location: ' . $_redir);
break;
default:
***************
*** 65,69 ****
if ($GLOBALS['HTTP_POST_VARS']['cancel'])
{
! Header('Location:
'.$GLOBALS['phpgw']->link('/admin/index.php'));
}
--- 82,86 ----
if ($GLOBALS['HTTP_POST_VARS']['cancel'])
{
! Header('Location: ' . $_redir);
}
***************
*** 119,123 ****
if(!$errors)
{
! Header('Location:
'.$GLOBALS['phpgw']->link('/admin/index.php'));
$GLOBALS['phpgw']->common->phpgw_exit();
}
--- 136,141 ----
if(!$errors)
{
!
$GLOBALS['phpgw']->session->appsession('session_data','admin_config',-1);
! Header('Location: ' . $_redir);
$GLOBALS['phpgw']->common->phpgw_exit();
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: admin/inc class.uiconfig.inc.php,1.8,1.9,
Miles Lott <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: wcm/inc hook_config.inc.php,NONE,1.1 class.uielement.inc.php,1.11,1.12 class.uipage.inc.php,1.13,1.14 class.uisite.inc.php,1.7,1.8 class.uiwcm.inc.php,1.1.1.1,1.2
- Next by Date:
[Phpgroupware-cvs] CVS: cdb/setup tables_current.inc.php,1.2,1.3
- Previous by thread:
[Phpgroupware-cvs] CVS: wcm/inc hook_config.inc.php,NONE,1.1 class.uielement.inc.php,1.11,1.12 class.uipage.inc.php,1.13,1.14 class.uisite.inc.php,1.7,1.8 class.uiwcm.inc.php,1.1.1.1,1.2
- Next by thread:
[Phpgroupware-cvs] CVS: cdb/setup tables_current.inc.php,1.2,1.3
- Index(es):