X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fmodules%2Fadmin%2Fwhat-config_email.php;h=8d45685920d25a00026d85a9d7878b632a7a0196;hb=c85ddc06cc16f2cd38ddd7d4c142a3f578bbab69;hp=9d84ac91df1ff7983c76c8a9d982b08cb0bff140;hpb=d3c4fdd9bfab35389e1a5ff48f3952d527c7b4bb;p=mailer.git diff --git a/inc/modules/admin/what-config_email.php b/inc/modules/admin/what-config_email.php index 9d84ac91df..8d45685920 100644 --- a/inc/modules/admin/what-config_email.php +++ b/inc/modules/admin/what-config_email.php @@ -1,7 +1,7 @@ {--MAX_VALUE_ALREADY--}"; + $content = '{--MAX_VALUE_ALREADY--}'; } // Free memory @@ -66,20 +67,20 @@ if (isPostRequestElementSet(('add_max'))) { // Display message loadTemplate('admin_settings_saved', false, $content); -} elseif ((isFormSent()) && (isGetRequestElementSet('do'))) { +} elseif ((isFormSent()) && (isGetRequestParameterSet('do'))) { // Change or delete entries... $TEXT = ''; - foreach (postRequestElement('id') as $id => $value) { + foreach (postRequestParameter('id') as $id => $value) { // Secure id $id = bigintval($id); - switch (getRequestElement('do')) + switch (getRequestParameter('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(postRequestElement('val', $id)), - postRequestElement('comm', $id), + bigintval(postRequestParameter('val', $id)), + postRequestParameter('comm', $id), $id ),__FILE__, __LINE__); $TEXT = getMessage('MRECEIVE_SAVED'); @@ -97,10 +98,10 @@ if (isPostRequestElementSet(('add_max'))) { // Display message loadTemplate('admin_settings_saved', false, $TEXT); } // END - if -} elseif ((isPostRequestElementSet('del')) && (countPostSelection() > 0)) { +} elseif ((isPostRequestParameterSet('del')) && (countPostSelection() > 0)) { // Delete entries $OUT = ''; $SW = 2; - foreach (postRequestElement('sel') as $id => $value) { + foreach (postRequestParameter('sel') as $id => $value) { // Load data $result = SQL_QUERY_ESC("SELECT value, comment FROM `{?_MYSQL_PREFIX?}_max_receive` WHERE `id`=%s LIMIT 1", array(bigintval($id)), __FILE__, __LINE__); @@ -123,10 +124,10 @@ if (isPostRequestElementSet(('add_max'))) { // Load main template loadTemplate('admin_config_email_del', false, $content); -} elseif ((isPostRequestElementSet('edit')) && (countPostSelection() > 0)) { +} elseif ((isPostRequestParameterSet('edit')) && (countPostSelection() > 0)) { // Edit entries $OUT = ''; $SW = 2; - foreach (postRequestElement('sel') as $id => $value) { + foreach (postRequestParameter('sel') as $id => $value) { // Load data $result = SQL_QUERY_ESC("SELECT value, comment FROM `{?_MYSQL_PREFIX?}_max_receive` WHERE `id`=%s LIMIT 1", array(bigintval($id)), __FILE__, __LINE__);