]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_points.php
Even more fixes, loading session was on wrong page (needs db link up)
[mailer.git] / inc / modules / admin / what-config_points.php
index ae54e81cda0a5bca0a884b12122c5d36c42856f4..69b400320f750f1e8f46b6bc9c5f39193b4bba08 100644 (file)
@@ -88,13 +88,13 @@ if (IS_FORM_SENT()) {
                                $id = bigintval($id);
 
                                // Revert german commata
-                               REQUEST_POST('perc', $id) = REVERT_COMMA(REQUEST_POST('perc', $id));
+                               REQUEST_SET_POST(array('perc', $id), REVERT_COMMA(REQUEST_POST('perc', $id)));
 
                                // Update entry
                                SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_refdepths` SET level='%s', percents='%s' WHERE id=%s LIMIT 1",
                                        array(bigintval($value), REQUEST_POST('perc', $id), $id), __FILE__, __LINE__);
                        }
-                       $message = REF_DEPTHS_SAVED;
+                       $message = getMessage('REF_DEPTHS_SAVED');
                        break;
 
                case "del":
@@ -102,7 +102,7 @@ if (IS_FORM_SENT()) {
                                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 = getMessage('REF_DEPTHS_DELETED');
                        break;
                }
 
@@ -148,7 +148,7 @@ WHERE mails_confirmed < %s", $REF, $REF));
                        runFilterChain('run_sqls');
 
                        // Entry saved...
-                       $message = SETTINGS_SAVED;
+                       $message = getMessage('SETTINGS_SAVED');
 
                        // Destroy config cache file here...
                        rebuildCacheFiles("config", "config");
@@ -193,7 +193,8 @@ WHERE mails_confirmed < %s", $REF, $REF));
        // Load template
        LOAD_TEMPLATE("admin_config_point_settings");
 } elseif (REQUEST_GET('sub') == "ref") {
-       if ((REQUEST_ISSET_POST(('del'))) && (REQUEST_ISSET_POST(('sel'))) && ((SELECTION_COUNT(REQUEST_POST('sel')) > 0) || (REQUEST_ISSET_POST(('sel', 0))))) {
+       // 12                  3     32    2                  3     32    2               3            4     43    21
+       if ((REQUEST_ISSET_POST('del')) && (REQUEST_ISSET_POST('sel')) && (SELECTION_COUNT(REQUEST_POST('sel')) > 0)) {
                // Delete entries
                $SW = 2; $OUT = "";
                foreach (REQUEST_POST('sel') as $id => $value) {
@@ -218,7 +219,7 @@ WHERE mails_confirmed < %s", $REF, $REF));
 
                // Load main template
                LOAD_TEMPLATE("admin_points_del");
-       } elseif ((REQUEST_ISSET_POST(('edit'))) && (REQUEST_ISSET_POST(('sel'))) && ((SELECTION_COUNT(REQUEST_POST('sel')) > 0) || (REQUEST_ISSET_POST(('sel', 0))))) {
+       } elseif ((REQUEST_ISSET_POST('edit')) && (REQUEST_ISSET_POST('sel')) && (SELECTION_COUNT(REQUEST_POST('sel')) > 0)) {
                // Edit entries
                $SW = 2; $OUT = "";
                foreach (REQUEST_POST('sel') as $id => $value) {