<?php
if (!empty($_GET)) {
extract($_GET, EXTR_OVERWRITE);
} else if (!empty($HTTP_GET_VARS)) {
extract($HTTP_GET_VARS, EXTR_OVERWRITE);
} // end if
if (!empty($_POST)) {
extract($_POST, EXTR_OVERWRITE);
} else if (!empty($HTTP_POST_VARS)) {
extract($HTTP_POST_VARS, EXTR_OVERWRITE);
} // end if
if (!empty($_FILES)) {
while (list($name, $value) = each($_FILES)) {
$$name = $value['tmp_name'];
}
} else if (!empty($HTTP_POST_FILES)) {
while (list($name, $value) = each($HTTP_POST_FILES)) {
$$name = $value['tmp_name'];
}
} // end if
if (!empty($_SERVER)) {
extract($_SERVER, EXTR_OVERWRITE);
} else if (!empty($HTTP_SERVER_VARS)) {
extract($HTTP_SERVER_VARS, EXTR_OVERWRITE);
} // end if
if(!empty($_SESSION)) {
extract($_SESSION, EXTR_OVERWRITE);
}
else if(!empty($HTTP_SESSION_VARS)) {
extract($HTTP_SESSION_VARS,EXTR_OVERWRITE);
}
?>
|