* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
* Copyright (c) 2009 - 2011 by Mailer Developer Team *
- * For more information visit: http://www.mxchange.org *
+ * For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
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;
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 = '';
__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__);
// 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 {