X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_email_max_rec.php;h=2b689d84d9f258a4c4eca1d6207c6860a6e2b3c8;hp=55d1506b241ff2f76e081c736922c41d7ea0934e;hb=2379934be6a196a54f4155bb8e24c49b20736969;hpb=b60d6755eb34f6a302b30eeb363ed0853e8d987d diff --git a/inc/modules/admin/what-list_email_max_rec.php b/inc/modules/admin/what-list_email_max_rec.php index 55d1506b24..2b689d84d9 100644 --- a/inc/modules/admin/what-list_email_max_rec.php +++ b/inc/modules/admin/what-list_email_max_rec.php @@ -44,18 +44,18 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addYouAreHereLink('admin', __FILE__); // Remove empty array index -if (!isPostRequestParameterSet('max')) { - unsetPostRequestParameter('add_max'); +if (!isPostRequestElementSet('max')) { + unsetPostRequestElement('add_max'); } // END - if -if (isPostRequestParameterSet('add_max')) { +if (isPostRequestElementSet('add_max')) { // Save all settings $result = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_max_receive` WHERE value='%s' LIMIT 1", - array(bigintval(postRequestParameter('max'))), __FILE__, __LINE__); + array(bigintval(postRequestElement('max'))), __FILE__, __LINE__); if (SQL_HASZERONUMS($result)) { // Add this value (including comment) SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`,`comment`) VALUES ('%s','%s')", - array(bigintval(postRequestParameter('max')), postRequestParameter('comment')),__FILE__, __LINE__); + array(bigintval(postRequestElement('max')), postRequestElement('comment')),__FILE__, __LINE__); $content = '{--ADMIN_MAX_VALUE_SAVED--}'; } else { // Value does alread exists! @@ -67,19 +67,19 @@ if (isPostRequestParameterSet('add_max')) { // Display message displayMessage($content); -} elseif ((isFormSent()) && (isGetRequestParameterSet('do'))) { +} elseif ((isFormSent()) && (isGetRequestElementSet('do'))) { // Change or delete entries... $TEXT = ''; - foreach (postRequestParameter('id') as $id => $value) { + foreach (postRequestElement('id') as $id => $value) { // Secure id $id = bigintval($id); - switch (postRequestParameter('do')) { + switch (postRequestElement('do')) { case 'edit': // Change entries SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_max_receive` SET value='%s', comment='%s' WHERE `id`=%s LIMIT 1", array( - bigintval(postRequestParameter('val', $id)), - postRequestParameter('comm', $id), + bigintval(postRequestElement('val', $id)), + postRequestElement('comm', $id), $id ),__FILE__, __LINE__); $TEXT = '{--ADMIN_MAX_RECEIVE_SAVED--}'; @@ -100,7 +100,7 @@ if (isPostRequestParameterSet('add_max')) { } elseif ((isFormSent('delete')) && (ifPostContainsSelections())) { // Delete entries $OUT = ''; - foreach (postRequestParameter('sel') as $id => $value) { + foreach (postRequestElement('sel') as $id => $value) { // Load data $result = SQL_QUERY_ESC("SELECT `id`,`value`,`comment` FROM `{?_MYSQL_PREFIX?}_max_receive` WHERE `id`=%s LIMIT 1", array(bigintval($id)), __FILE__, __LINE__); @@ -117,7 +117,7 @@ if (isPostRequestParameterSet('add_max')) { } elseif ((isFormSent('edit')) && (ifPostContainsSelections())) { // Edit entries $OUT = ''; - foreach (postRequestParameter('sel') as $id => $value) { + foreach (postRequestElement('sel') as $id => $value) { // Load data $result = SQL_QUERY_ESC("SELECT `id`,`value`,`comment` FROM `{?_MYSQL_PREFIX?}_max_receive` WHERE `id`=%s LIMIT 1", array(bigintval($id)), __FILE__, __LINE__);