]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_points.php
Even more array-element names fixed
[mailer.git] / inc / modules / admin / what-config_points.php
index 43e15afc41f299315c47a5b01121240988ef75f3..8f6056b541beee2744218db9318b15fce5bddead 100644 (file)
@@ -53,14 +53,14 @@ if (isGetRequestParameterSet('sub')) {
        // Yes, then do some sanity-checks
        switch (getRequestParameter('sub')) {
                case 'points':
-                       if ((!isPostRequestParameterSet(('points_register'))) || (!isPostRequestParameterSet(('points_ref')))) {
+                       if ((!isPostRequestParameterSet('points_register')) || (!isPostRequestParameterSet('points_ref'))) {
                                unsetPostRequestParameter('ok');
-                       }
+                       } // END - if
                        break;
 
                case 'ref':
                        if (isGetRequestParameterSet('do')) {
-                               if (((!isPostRequestParameterSet(('level'))) || (!isPostRequestParameterSet(('percents')))) && (getRequestParameter('do') == 'add')) {
+                               if (((!isPostRequestParameterSet('level')) || (!isPostRequestParameterSet('percents'))) && (getRequestParameter('do') == 'add')) {
                                        unsetPostRequestParameter('ok');
                                }
                        }
@@ -97,7 +97,7 @@ if (isFormSent()) {
                                                SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_refdepths` SET `level`=%s, `percents`=%s WHERE `id`=%s LIMIT 1",
                                                        array(bigintval($value), convertCommaToDot(postRequestParameter('percents', $id)), $id), __FILE__, __LINE__);
                                        }
-                                       $message = '{--REF_DEPTHS_SAVED--}';
+                                       $message = '{--ADMIN_REFERAL_DEPTHS_SAVED--}';
                                        break;
 
                                case 'del':
@@ -105,7 +105,7 @@ if (isFormSent()) {
                                                SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_refdepths` WHERE `id`=%s LIMIT 1",
                                                array(bigintval($id)), __FILE__, __LINE__);
                                        }
-                                       $message = '{--REF_DEPTHS_DELETED--}';
+                                       $message = '{--ADMIN_REFERAL_DEPTHS_DELETED--}';
                                        break;
                        }
 
@@ -195,11 +195,11 @@ WHERE
                        SQL_FREERESULT($result);
 
                        // Load row template and switch color
-                       $OUT .= loadTemplate('admin_points_del_row', true, $content);
+                       $OUT .= loadTemplate('admin_del_points_row', true, $content);
                } // END - foreach
 
                // Load main template
-               loadTemplate('admin_points_del', false, $OUT);
+               loadTemplate('admin_del_points', false, $OUT);
        } elseif ((isFormSent('edit')) && (isPostRequestParameterSet('sel')) && (ifPostContainsSelections())) {
                // Edit entries
                $OUT = '';
@@ -210,11 +210,11 @@ WHERE
                        SQL_FREERESULT($result);
 
                        // Load row template and switch color
-                       $OUT .= loadTemplate('admin_points_edit_row', true, $content);
+                       $OUT .= loadTemplate('admin_edit_points_row', true, $content);
                } // END - foreach
 
                // Load main template
-               loadTemplate('admin_points_edit', false, $OUT);
+               loadTemplate('admin_edit_points', false, $OUT);
        } else {
                // Referal levels
                $result = SQL_QUERY("SELECT `id`, `level`, `percents` FROM `{?_MYSQL_PREFIX?}_refdepths` ORDER BY `level` ASC", __FILE__, __LINE__);