From aa48e1fb0c6e2d10812a2aa60ad805fecae83be7 Mon Sep 17 00:00:00 2001 From: kink Date: Sat, 4 Jan 2003 18:17:38 +0000 Subject: [PATCH] Implement sqextractGlobalVar with sqgetGlobalVar git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4383 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/global.php | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/functions/global.php b/functions/global.php index 38f3be89..b2f7d16a 100644 --- a/functions/global.php +++ b/functions/global.php @@ -229,19 +229,11 @@ function sqgetGlobalVar($name, &$value, $search = SQ_INORDER) { * (in that order) and register it as a global var. */ function sqextractGlobalVar ($name) { - if ( !check_php_version(4,1) ) { - global $_SESSION, $_GET, $_POST; - } - global $$name; - if( isset($_SESSION[$name]) ) { - $$name = $_SESSION[$name]; - } - if( isset($_POST[$name]) ) { - $$name = $_POST[$name]; - } - else if ( isset($_GET[$name]) ) { - $$name = $_GET[$name]; - } + + global $$name; + + sqgetGlobalVar($name, $$name); + } function sqsession_destroy() { -- 2.25.1