]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-edit_emails.php
Extension ext-earning introduced (unfinished), renamings:
[mailer.git] / inc / modules / admin / what-edit_emails.php
index 0a18126ecd5f886e0e19f5f952ce09fcebead2f6..a3013890fec3a5354b185003282343d44c54da79 100644 (file)
@@ -43,12 +43,12 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 // Add description as navigation point
 addYouAreHereLink('admin', __FILE__);
 
-if ((isFormSent()) && (!isPostRequestParameterSet('id'))) {
-       unsetPostRequestParameter('ok');
+if ((isFormSent()) && (!isPostRequestElementSet('id'))) {
+       unsetPostRequestElement('ok');
 } // END - if
 
 // Form sent or anything else? ;-)
-if ((isFormSent()) && (isPostRequestParameterSet('mid'))) {
+if ((isFormSent()) && (isPostRequestElementSet('mid'))) {
        // Make mail editable...
        $result = SQL_QUERY_ESC("SELECT
        `id`,`sender` AS `userid`,`subject`,`text`,`url`
@@ -57,7 +57,7 @@ FROM
 WHERE
        `id`=%s
 LIMIT 1",
-               array(bigintval(postRequestParameter('mid'))), __FILE__, __LINE__);
+               array(bigintval(postRequestElement('mid'))), __FILE__, __LINE__);
 
        // Fetch row
        $content = SQL_FETCHARRAY($result);
@@ -67,7 +67,7 @@ LIMIT 1",
 
        // Load template
        loadTemplate('admin_edit_email', false, $content);
-} elseif (isGetRequestParameterSet('mid')) {
+} elseif (isGetRequestElementSet('mid')) {
        // Make also this email editable
        $result = SQL_QUERY_ESC("SELECT
        `id`,`sender` AS `userid`,`subject`,`text`,`url`
@@ -76,7 +76,7 @@ FROM
 WHERE
        `id`=%s
 LIMIT 1",
-               array(bigintval(getRequestParameter('mid'))), __FILE__, __LINE__);
+               array(bigintval(getRequestElement('mid'))), __FILE__, __LINE__);
 
        // Fetch row
        $content = SQL_FETCHARRAY($result);
@@ -86,7 +86,7 @@ LIMIT 1",
 
        // Load template
        loadTemplate('admin_edit_email', false, $content);
-} elseif (isGetRequestParameterSet('bid')) {
+} elseif (isGetRequestElementSet('bid')) {
                // Make also this email editable
                $result = SQL_QUERY_ESC("SELECT
        `id`,`subject`,`text`,`url`
@@ -95,7 +95,7 @@ FROM
 WHERE
        `id`=%s
 LIMIT 1",
-               array(bigintval(getRequestParameter('bid'))), __FILE__, __LINE__);
+               array(bigintval(getRequestElement('bid'))), __FILE__, __LINE__);
 
        // Fetch row
        $content = SQL_FETCHARRAY($result);
@@ -107,7 +107,7 @@ LIMIT 1",
        loadTemplate('admin_edit_bonus_email', false, $content);
 } elseif (isFormSent('save')) {
        // Save changes
-       if (isPostRequestParameterSet('mid')) {
+       if (isPostRequestElementSet('mid')) {
                // Update pool
                SQL_QUERY_ESC("UPDATE
        `{?_MYSQL_PREFIX?}_pool`
@@ -119,10 +119,10 @@ WHERE
        `id`=%s
 LIMIT 1",
                        array(
-                               postRequestParameter('subject'),
-                               postRequestParameter('text'),
-                               postRequestParameter('url'),
-                               bigintval(postRequestParameter('mid')),
+                               postRequestElement('subject'),
+                               postRequestElement('text'),
+                               postRequestElement('url'),
+                               bigintval(postRequestElement('mid')),
                        ), __FILE__, __LINE__);
 
                if (!SQL_HASZEROAFFECTED()) {
@@ -130,7 +130,7 @@ LIMIT 1",
                } else {
                        $content = '<span class="notice">{--ADMIN_EMAIL_CHANGES_NOT_SAVED--}</span>';
                }
-       } elseif (isPostRequestParameterSet('bid')) {
+       } elseif (isPostRequestElementSet('bid')) {
                // Update pool
                SQL_QUERY_ESC("UPDATE
        `{?_MYSQL_PREFIX?}_bonus`
@@ -142,10 +142,10 @@ WHERE
        `id`=%s
 LIMIT 1",
                        array(
-                               postRequestParameter('subject'),
-                               postRequestParameter('text'),
-                               postRequestParameter('url'),
-                               bigintval(postRequestParameter('bid')),
+                               postRequestElement('subject'),
+                               postRequestElement('text'),
+                               postRequestElement('url'),
+                               bigintval(postRequestElement('bid')),
                        ), __FILE__, __LINE__);
 
                if (!SQL_HASZEROAFFECTED()) {