Implement sqextractGlobalVar with sqgetGlobalVar
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 4 Jan 2003 18:17:38 +0000 (18:17 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 4 Jan 2003 18:17:38 +0000 (18:17 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4383 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/global.php

index 38f3be89f5bf8111e0c4daeb9187157a88435a16..b2f7d16ade974f289a5f936d5af63a974d1a5486 100644 (file)
@@ -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() {