]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_task.php
Extension ext-earning introduced (unfinished), renamings:
[mailer.git] / inc / modules / admin / what-list_task.php
index 3a5138c64ce3f6338273c4796a2e463dc31a8c3e..c8dfba95932d3841d4bfa859c24774e8cd9fe7ee 100644 (file)
@@ -44,11 +44,11 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 addYouAreHereLink('admin', __FILE__);
 
 $whereStatement = '';
-if (!isGetRequestParameterSet('type')) {
-       setGetRequestParameter('type', 'your');
+if (!isGetRequestElementSet('type')) {
+       setGetRequestElement('type', 'your');
 } // END - if
 
-switch (getRequestParameter('type')) {
+switch (getRequestElement('type')) {
        case 'your': // List only your own open (new) tasks
                $whereStatement = "`assigned_admin`=".getCurrentAdminId()." AND `status`='NEW' AND `task_type` != 'EXTENSION_UPDATE'";
                break;
@@ -74,13 +74,13 @@ switch (getRequestParameter('type')) {
                break;
 
        default: // Unknown type
-               logDebugMessage(__FILE__, __LINE__, sprintf("Unknown task type %s detected.", getRequestParameter('type')));
-               displayMessage('{%message,ADMIN_TASK_UNKNOWN_MODE' . getRequestParameter('type') . '%}');
+               logDebugMessage(__FILE__, __LINE__, sprintf("Unknown task type %s detected.", getRequestElement('type')));
+               displayMessage('{%message,ADMIN_TASK_UNKNOWN_MODE' . getRequestElement('type') . '%}');
                break;
 } // END - switch
 
 if (!empty($whereStatement)) {
-       if ((isPostRequestParameterSet('assign')) && (ifPostContainsSelections())) {
+       if ((isPostRequestElementSet('assign')) && (ifPostContainsSelections())) {
                // Assign / do tasks
                loadIncludeOnce('inc/modules/admin/overview-inc.php');
                if (empty($dmy)) $dmy = '';
@@ -101,16 +101,16 @@ ORDER BY
                        __FILE__, __LINE__);
                if ((ifPostContainsSelections()) && (!isDemoModeActive())) {
                        // Only unassign / delete tasks when there are selected tasks posted
-                       if (isPostRequestParameterSet('unassign')) {
+                       if (isPostRequestElementSet('unassign')) {
                                // Unassign from tasks
-                               foreach (postRequestParameter('sel') as $id => $sel) {
+                               foreach (postRequestElement('sel') as $id => $sel) {
                                        SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_task_system` SET `assigned_admin`=NULL WHERE `id`=%s AND `assigned_admin`=%s LIMIT 1",
                                                array(bigintval($id), getCurrentAdminId()), __FILE__, __LINE__);
                                } // END - foreach
                        } elseif (isFormSent('delete')) {
                                // Delete tasks
-                               foreach (postRequestParameter('sel') as $id => $sel) {
-                                       if (getRequestParameter('type') == 'deleted') {
+                               foreach (postRequestElement('sel') as $id => $sel) {
+                                       if (getRequestElement('type') == 'deleted') {
                                                // Delete task immediately
                                                SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_task_system` WHERE `id`=%s LIMIT 1",
                                                        array(bigintval($id)),__FILE__, __LINE__);
@@ -179,13 +179,13 @@ ORDER BY
 
                // Prepare content
                $content = array(
-                       'message' => '{--ADMIN_OVERVIEW_TASK_' . strtoupper(getRequestParameter('type')) . '_TYPE--}',
-                       'type'    => getRequestParameter('type'),
+                       'message' => '{--ADMIN_OVERVIEW_TASK_' . strtoupper(getRequestElement('type')) . '_TYPE--}',
+                       'type'    => getRequestElement('type'),
                        'rows'    => $OUT
                );
 
                // Load footer template
-               if (getRequestParameter('type') == 'deleted') {
+               if (getRequestElement('type') == 'deleted') {
                        // Delete now button
                        loadTemplate('admin_list_task_delete', false, $content);
                } else {