]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_email.php
Naming convention applied to language strings, new API function added:
[mailer.git] / inc / modules / admin / what-config_email.php
index 88c10a2e395376bc1a0e8305130f96e500ae66e5..8ebccd48bfa9894e55912dfc92e54e42603da2d2 100644 (file)
@@ -46,20 +46,20 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 addMenuDescription('admin', __FILE__);
 
 // Remove empty array index
-if (!isPostRequestParameterSet(('max'))) unsetPostRequestParameter(('add_max'));
+if (!isPostRequestParameterSet('max')) unsetPostRequestParameter('add_max');
 
-if (isPostRequestParameterSet(('add_max'))) {
+if (isPostRequestParameterSet('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__);
        if (SQL_HASZERONUMS($result)) {
                // Add this value (including comment)
-               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (value, comment) VALUES ('%s','%s')",
+               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`, `comment`) VALUES ('%s','%s')",
                array(bigintval(postRequestParameter('max')), postRequestParameter('comment')),__FILE__, __LINE__);
                $content = '{--ADMIN_MAX_VALUE_SAVED--}';
        } else {
                // Value does alread exists!
-               $content = '<span class="admin_failed">{--ADMIN_MAX_VALUE_ALREADY--}</span>';
+               $content = '<span class="notice">{--ADMIN_MAX_VALUE_ALREADY--}</span>';
        }
 
        // Free memory
@@ -83,13 +83,13 @@ if (isPostRequestParameterSet(('add_max'))) {
                                        postRequestParameter('comm', $id),
                                        $id
                                ),__FILE__, __LINE__);
-                               $TEXT = '{--MRECEIVE_SAVED--}';
+                               $TEXT = '{--ADMIN_MAX_RECEIVE_SAVED--}';
                                break;
 
                        case 'del':
                                SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_max_receive` WHERE `id`=%s LIMIT 1",
                                        array($id), __FILE__, __LINE__);
-                               $TEXT = '{--MRECEIVE_DELETED--}';
+                               $TEXT = '{--ADMIN_MAX_RECEIVE_DELETED--}';
                                break;
                }
        }