diff options
author | Marc Delisle <marc@infomarc.info> | 2012-03-15 20:38:28 +0400 |
---|---|---|
committer | Marc Delisle <marc@infomarc.info> | 2012-03-15 20:38:28 +0400 |
commit | 1215f3ac8870f39020e52016986544294acdd66e (patch) | |
tree | deb69e215787c567433c75c3765010c625478153 /transformation_wrapper.php | |
parent | 3c5df2f578fc14ad60b8d3771af00b22575be857 (diff) |
No longer depend on grab_globals
Diffstat (limited to 'transformation_wrapper.php')
-rw-r--r-- | transformation_wrapper.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/transformation_wrapper.php b/transformation_wrapper.php index 0b87b43c25..138235f135 100644 --- a/transformation_wrapper.php +++ b/transformation_wrapper.php @@ -24,6 +24,26 @@ require_once './libraries/db_table_exists.lib.php'; /** + * Sets globals from $_REQUEST + */ +$request_params = array( + 'cn', + 'ct', + 'newHeight', + 'newWidth', + 'resize', + 'sql_query', + 'transform_key', + 'where_clause' +); +foreach ($request_params as $one_request_param) { + if (isset($_REQUEST[$one_request_param])) { + $GLOBALS[$one_request_param] = $_REQUEST[$one_request_param]; + } +} + + +/** * Get the list of the fields of the current table */ PMA_DBI_select_db($db); |