]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_points.php
Admin menu has now a JavaScript "effect":
[mailer.git] / inc / modules / admin / what-config_points.php
index d7fff719279351cadcde82875bea698025d58137..11c547539044e670e291999fe8ed28110c8b8ba9 100644 (file)
@@ -91,10 +91,10 @@ if (isFormSent()) {
                                                setPostRequestElement('percents', array($id => convertCommaToDot(postRequestElement('percents', $id))));
 
                                                // Update entry
-                                               SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_refdepths` SET `level`=%s, `percents`=%s WHERE `id`=%s LIMIT 1",
+                                               SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_refdepths` SET `level`=%s,`percents`=%s WHERE `id`=%s LIMIT 1",
                                                        array(bigintval($value), convertCommaToDot(postRequestElement('percents', $id)), $id), __FILE__, __LINE__);
                                        } // END - foreach
-                                       $message = '{--ADMIN_REFERAL_DEPTHS_SAVED--}';
+                                       $message = '{--ADMIN_REFERRAL_DEPTHS_SAVED--}';
                                        break;
 
                                case 'delete':
@@ -102,7 +102,7 @@ if (isFormSent()) {
                                                SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_refdepths` WHERE `id`=%s LIMIT 1",
                                                array(bigintval($id)), __FILE__, __LINE__);
                                        } // END - foreach
-                                       $message = '{--ADMIN_REFERAL_DEPTHS_DELETED--}';
+                                       $message = '{--ADMIN_REFERRAL_DEPTHS_DELETED--}';
                                        break;
                        } // END - switch
 
@@ -152,7 +152,7 @@ WHERE
                        rebuildCache('config', 'config');
                } else {
                        // Prepare failed-message
-                       $message = '<span class="notice">{--SETTINGS_NOT_SAVED--}</span>';
+                       $message = '<span class="bad">{--SETTINGS_NOT_SAVED--}</span>';
                }
 
                // Remove SQL queries
@@ -166,7 +166,7 @@ WHERE
        } // END - if
 } elseif (getRequestElement('sub') == 'settings') {
        // Setup some settings like direct pay and so on
-       // Including new add-mode for one-time referal bonus
+       // Including new add-mode for one-time referral bonus
        foreach (array('allow_direct_pay') as $entry) {
                $content[$entry . '_y'] = '';
                $content[$entry . '_n'] = '';
@@ -208,10 +208,10 @@ WHERE
                // Load main template
                loadTemplate('admin_edit_reflevel', false, $OUT);
        } else {
-               // Referal levels
+               // Referral levels
                $result = SQL_QUERY("SELECT `id`,`level`,`percents` FROM `{?_MYSQL_PREFIX?}_refdepths` ORDER BY `level` ASC", __FILE__, __LINE__);
                if (!SQL_HASZERONUMS($result)) {
-                       // Make referal levels editable and deletable
+                       // Make referral levels editable and deletable
                        $OUT = '';
 
                        // List already existing categories for editing
@@ -227,7 +227,7 @@ WHERE
                        loadTemplate('admin_list_reflevel', false, $OUT);
                }
 
-               // Form for adding new referal levels
+               // Form for adding new referral levels
                loadTemplate('admin_add_reflevel');
        }
 } elseif (getRequestElement('sub') == 'points') {