* svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
+ * Copyright (c) 2009, 2010 by Mailer Developer Team *
* For more information visit: http://www.mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
} // END - if
$whereStatement = '';
-if (!isGetRequestElementSet('type')) setRequestGetElement('type', 'your');
+if (!isGetRequestParameterSet('type')) setGetRequestParameter('type', 'your');
-switch (getRequestElement('type')) {
+switch (getRequestParameter('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.", getRequestElement('type')));
- loadTemplate('admin_settings_saved', false, sprintf(getMessage('ADMIN_TASK_UNKNOWN_MODE'), getRequestElement('type')));
+ logDebugMessage(__FILE__, __LINE__, sprintf("Unknown task type %s detected.", getRequestParameter('type')));
+ loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_TASK_UNKNOWN_MODE', getRequestParameter('type')));
break;
} // END - switch
if (!empty($whereStatement)) {
- if ((isPostRequestElementSet('assign')) && (countPostSelection() > 0)) {
+ if ((isPostRequestParameterSet('assign')) && (countPostSelection() > 0)) {
// Assign / do tasks
loadIncludeOnce('inc/modules/admin/overview-inc.php');
if (empty($dmy)) $dmy = '';
__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__);
} // END - foreach
- } elseif (isPostRequestElementSet('del')) {
+ } 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__);
}
// 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)) {
SQL_FREERESULT($result_tasks);
// Load footer template
- if (getRequestElement('type') == 'deleted') {
+ if (getRequestParameter('type') == 'deleted') {
// Delete now button
loadTemplate('admin_overview_footer_task');
} else {