diff options
author | Marc Delisle <marc@infomarc.info> | 2012-03-11 16:25:34 +0400 |
---|---|---|
committer | Marc Delisle <marc@infomarc.info> | 2012-03-11 16:25:34 +0400 |
commit | ed8a498bde05ae712374021d4ad65ddf6af48304 (patch) | |
tree | dc7bdd47863b392c305e43ae59f918e5b82263ab /import.php | |
parent | 0de997c26857d5511bac81aeb085bace0fad7f79 (diff) |
$_POST and bookmark actions
Diffstat (limited to 'import.php')
-rw-r--r-- | import.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/import.php b/import.php index dfdfdc6dc1..2ecd6a4a63 100644 --- a/import.php +++ b/import.php @@ -16,6 +16,23 @@ if (isset($_REQUEST['show_as_php'])) { $GLOBALS['show_as_php'] = $_REQUEST['show_as_php']; } +/** + * Sets globals from $_POST + */ +$post_params = array( + 'action_bookmark', + 'bkm_label', + 'bookmark_variable', + 'id_bookmark', + 'is_js_confirmed', + 'message_to_show' +); +foreach ($post_params as $one_post_param) { + if (isset($_POST[$one_post_param])) { + $GLOBALS[$one_post_param] = $_POST[$one_post_param]; + } +} + // reset import messages for ajax request $_SESSION['Import_message']['message'] = null; $_SESSION['Import_message']['go_back_url'] = null; |