-if (isset($_POST['expungeButton'])) {
- $expungeButton = $_POST['expungeButton'];
-}
-if (isset($_POST['targetMailbox'])) {
- $targetMailbox = $_POST['targetMailbox'];
-}
-if (isset($_SESSION['lastTargetMailbox'])) {
- $lastTargetMailbox = $_SESSION['lastTargetMailbox'];
-}
-if (isset($_POST['expungeButton'])) {
- $expungeButton = $_POST['expungeButton'];
-}
-if (isset($_POST['undeleteButton'])) {
- $undeleteButton = $_POST['undeleteButton'];
-}
-if (isset($_POST['markRead'])) {
- $markRead = $_POST['markRead'];
-}
-if (isset($_POST['markUnread'])) {
- $markUnread = $_POST['markUnread'];
-}
-if (isset($_POST['attache'])) {
- $attache = $_POST['attache'];
-}
-
-if (isset($_POST['location'])) {
- $location = $_POST['location'];
-}
+sqgetGlobalVar('moveButton', $moveButton, SQ_POST);
+sqgetGlobalVar('expungeButton', $expungeButton, SQ_POST);
+sqgetGlobalVar('targetMailbox', $targetMailbox, SQ_POST);
+sqgetGlobalVar('expungeButton', $expungeButton, SQ_POST);
+sqgetGlobalVar('undeleteButton', $undeleteButton, SQ_POST);
+sqgetGlobalVar('markRead', $markRead, SQ_POST);
+sqgetGlobalVar('markUnread', $markUnread, SQ_POST);
+sqgetGlobalVar('attache', $attache, SQ_POST);
+sqgetGlobalVar('location', $location, SQ_POST);