From: kink Date: Sat, 4 Jan 2003 18:17:38 +0000 (+0000) Subject: Implement sqextractGlobalVar with sqgetGlobalVar X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=aa48e1fb0c6e2d10812a2aa60ad805fecae83be7;p=squirrelmail.git Implement sqextractGlobalVar with sqgetGlobalVar git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4383 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- 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() {