diff --git a/pmd_save_pos.php b/pmd_save_pos.php index 403cf6371d..30871cb0e7 100644 --- a/pmd_save_pos.php +++ b/pmd_save_pos.php @@ -17,6 +17,25 @@ if (! $cfgRelation['designerwork']) { PMD_err_sav(); } +/** + * Sets globals from $_POST + */ +$post_params = array( + 'IS_AJAX', + 'die_save_pos', + 'server', + 't_h', + 't_v', + 't_x', + 't_y' +); + +foreach ($post_params as $one_post_param) { + if (isset($_POST[$one_post_param])) { + $GLOBALS[$one_post_param] = $_POST[$one_post_param]; + } +} + foreach ($t_x as $key => $value) { $KEY = empty($IS_AJAX) ? urldecode($key) : $key; // table name decode (post PDF exp/imp) list($DB,$TAB) = explode(".", $KEY);