]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_points.php
Fixes for auto-activation of extensions while registration phase
[mailer.git] / inc / modules / admin / what-config_points.php
index 365be6cc8f2cf2947c390800aea17f372ac6fdd2..ffade8cd068468c7e4254ec16cb870c55d7c5923 100644 (file)
@@ -40,7 +40,7 @@
 // Some security stuff...
 if ((!defined('__SECURITY')) || (!isAdmin())) {
        die();
-}
+} // END - if
 
 // Add description as navigation point
 addMenuDescription('admin', __FILE__);
@@ -134,7 +134,7 @@ WHERE
                                addSql("UPDATE `{?_MYSQL_PREFIX?}_user_points` SET `locked_points`=0 WHERE `locked_points` > 0");
                        }
                        break;
-       } // END - if
+       } // END - switch
 
        if ((isSqlsValid()) && (isSqlsValid())) {
                if (strpos($GLOBALS['sqls'][0], 'INSERT') > -1) {
@@ -195,11 +195,11 @@ WHERE
                        SQL_FREERESULT($result);
 
                        // Load row template and switch color
-                       $OUT .= loadTemplate('admin_del_points_row', true, $content);
+                       $OUT .= loadTemplate('admin_del_reflevel_row', true, $content);
                } // END - foreach
 
                // Load main template
-               loadTemplate('admin_del_points', false, $OUT);
+               loadTemplate('admin_del_reflevel', 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_edit_points_row', true, $content);
+                       $OUT .= loadTemplate('admin_edit_reflevel_row', true, $content);
                } // END - foreach
 
                // Load main template
-               loadTemplate('admin_edit_points', false, $OUT);
+               loadTemplate('admin_edit_reflevel', false, $OUT);
        } else {
                // Referal levels
                $result = SQL_QUERY("SELECT `id`, `level`, `percents` FROM `{?_MYSQL_PREFIX?}_refdepths` ORDER BY `level` ASC", __FILE__, __LINE__);
@@ -228,14 +228,14 @@ WHERE
                                $content['percents'] = translateComma($content['percents']);
 
                                // Load row template and switch color
-                               $OUT .= loadTemplate('admin_points_row', true, $content);
+                               $OUT .= loadTemplate('admin_list_reflevel_row', true, $content);
                        } // END - while
 
                        // Free memory
                        SQL_FREERESULT($result);
 
                        // Load main template
-                       loadTemplate('admin_points', false, $OUT);
+                       loadTemplate('admin_list_reflevel', false, $OUT);
                }
 
                // Form for adding new referal levels