[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: phpgwapi/inc common_functions.inc.php,1.4,1.5
From: |
Mark A Peters <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: phpgwapi/inc common_functions.inc.php,1.4,1.5 |
Date: |
Mon, 29 Apr 2002 23:01:03 -0400 |
Update of /cvsroot/phpgroupware/phpgwapi/inc
In directory subversions:/tmp/cvs-serv30674
Modified Files:
common_functions.inc.php
Log Message:
Added the SERVER usage for HTTP_SERVER_VARS, and added the 4.2.0 check to use
the newer [common_functions.inc.php>method>].
Index: common_functions.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/common_functions.inc.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** common_functions.inc.php 6 Apr 2002 15:13:51 -0000 1.4
--- common_functions.inc.php 30 Apr 2002 03:01:01 -0000 1.5
***************
*** 341,345 ****
/*!
@function get_var
! @abstract retrieve a value from either a POST, GET, COOKIE, or from a
class variable.
@author skeeter
@discussion This function is used to retrieve a value from a user
defined order of methods.
--- 341,345 ----
/*!
@function get_var
! @abstract retrieve a value from either a POST, GET, COOKIE, SERVER or
from a class variable.
@author skeeter
@discussion This function is used to retrieve a value from a user
defined order of methods.
***************
*** 371,377 ****
case 'GET':
case 'COOKIE':
!
if(@isset($GLOBALS['HTTP_'.strtoupper($method[$i]).'_VARS'][$variable]))
{
! $var =
$GLOBALS['HTTP_'.strtoupper($method[$i]).'_VARS'][$variable];
}
break;
--- 371,386 ----
case 'GET':
case 'COOKIE':
! case 'SERVER':
! if(phpversion() >= '4.2.0')
{
! $meth =
'_'.strtoupper($method[$i]);
! }
! else
! {
! $meth =
'HTTP_'.strtoupper($method[$i]).'_VARS';
! }
! if(@isset($GLOBALS[$meth][$variable]))
! {
! $var =
$GLOBALS[$meth][$variable];
}
break;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: phpgwapi/inc common_functions.inc.php,1.4,1.5,
Mark A Peters <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: headlines/inc hook_website_left.inc.php,1.2,1.3 hook_website_right.inc.php,1.4,1.5
- Next by Date:
[Phpgroupware-cvs] CVS: netsaint/inc class.bonetsaint.inc.php,1.23,1.24
- Previous by thread:
[Phpgroupware-cvs] CVS: headlines/inc hook_website_left.inc.php,1.2,1.3 hook_website_right.inc.php,1.4,1.5
- Next by thread:
[Phpgroupware-cvs] CVS: netsaint/inc class.bonetsaint.inc.php,1.23,1.24
- Index(es):