X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_task.php;h=2249daa7c480d87e16597516d5c30d7c67059d1b;hp=bdf63aeac40fe0b8b87c012e85301a1c1b51dcfc;hb=57227d33e870ec5cd271209c4a978a52b45c2dd6;hpb=263a089d8a499e0e26d0af9e7aa7639f88b8ca60 diff --git a/inc/modules/admin/what-list_task.php b/inc/modules/admin/what-list_task.php index bdf63aeac4..2249daa7c4 100644 --- a/inc/modules/admin/what-list_task.php +++ b/inc/modules/admin/what-list_task.php @@ -1,7 +1,7 @@ 0)) { + if ((isPostRequestParameterSet('assign')) && (countPostSelection() > 0)) { // Assign / do tasks - loadIncludeOnce("inc/modules/admin/overview-inc.php"); + loadIncludeOnce('inc/modules/admin/overview-inc.php'); if (empty($dmy)) $dmy = ''; outputSeletectedTasks(postRequestArray(), $dmy); } else { @@ -105,16 +105,16 @@ ORDER BY __FILE__, __LINE__); if ((countPostSelection() > 0) && (!isDemoModeActive())) { // Only unassign / delete tasks when there are selected tasks posted - if (isPostRequestElementSet('unassign')) { + if (isPostRequestParameterSet('unassign')) { // Unassign from tasks - foreach (postRequestElement('sel') as $id => $sel) { + foreach (postRequestParameter('sel') as $id => $sel) { SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_task_system` SET `assigned_admin`=0 WHERE `id`=%s AND `assigned_admin`=%s LIMIT 1", array(bigintval($id), getCurrentAdminId()), __FILE__, __LINE__); - } - } elseif (isPostRequestElementSet('del')) { + } // END - foreach + } elseif (isPostRequestParameterSet('del')) { // Delete tasks - foreach (postRequestElement('sel') as $id => $sel) { - if (getRequestElement('type') == 'deleted') { + foreach (postRequestParameter('sel') as $id => $sel) { + if (getRequestParameter('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__); @@ -122,7 +122,7 @@ ORDER BY // Mark task as to be deleted (purged by autopurge extension) adminDeleteTask($id); } - } + } // END - foreach } else { // Unknown action performed debug_report_bug(sprintf("Unknown task action performed. data=
%s
", print_r(postRequestArray(), true))); @@ -141,11 +141,11 @@ ORDER BY } // There are uncompleted jobs! - $type = getMessage('ADMIN_OVERVIEW_TASK_'.strtoupper(getRequestElement('type')).'_TYPE'); + $type = getMessage('ADMIN_OVERVIEW_TASK_'.strtoupper(getRequestParameter('type')).'_TYPE'); // @TODO Rewrite these templates to one and add $OUT loadTemplate('admin_overview_header_task', false, array( 'message' => $type, - 'type' => getRequestElement('type') + 'type' => getRequestParameter('type') )); $OUT = ''; $SW = 2; while ($content = SQL_FETCHARRAY($result_tasks)) { @@ -198,13 +198,13 @@ ORDER BY // Switch colors $SW = 3 - $SW; - } + } // END - while // Free memory SQL_FREERESULT($result_tasks); // Load footer template - if (getRequestElement('type') == 'deleted') { + if (getRequestParameter('type') == 'deleted') { // Delete now button loadTemplate('admin_overview_footer_task'); } else { @@ -212,7 +212,7 @@ ORDER BY loadTemplate('admin_overview_footer'); } } -} +} // END - if // [EOF] ?>