]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_points.php
Mailer used in many places, we still need a good 'selling' title
[mailer.git] / inc / modules / admin / what-config_points.php
index b8a62ba74702ebddcd371654021f89dd444a8380..35f312eaf9c6f3b2d328159dd8d8708028054d59 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
- * MXChange v0.2.1                                    Start: 10/12/2003 *
- * ===============                              Last change: 12/12/2004 *
+ * Mailer v0.2.1-FINAL                                Start: 10/12/2003 *
+ * ===================                          Last change: 12/12/2004 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : what-config_points.php                           *
@@ -86,7 +86,7 @@ if (isFormSent()) {
 
                                case 'edit': // Change entries
                                        foreach (postRequestElement('level') as $id => $value) {
-                                               // Secure ID
+                                               // Secure id
                                                $id = bigintval($id);
 
                                                // Revert german commata
@@ -120,11 +120,11 @@ if (isFormSent()) {
                                array('allow_direct_pay', 'reg_points_mode', 'ref_payout'),
                                array(postRequestElement('allow_direct_pay'), postRequestElement('reg_points_mode'), $REF)
                        );
-                       if ((getConfig('ref_payout') == 0) && (postRequestElement('ref_payout') > 0)) {
+                       if ((getConfig('ref_payout') == '0') && (postRequestElement('ref_payout') > 0)) {
                                // Update account's ref_payout for "must-confirm"
                                addSql(sprintf("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `ref_payout`=(%s - `mails_confirmed`)
 WHERE `mails_confirmed` < %s", $REF, $REF));
-                       } elseif ((getConfig('ref_payout') > 0) && (postRequestElement('ref_payout') == 0)) {
+                       } elseif ((getConfig('ref_payout') > 0) && (postRequestElement('ref_payout') == '0')) {
                                // Update account's ref_payout for "not-must-confirm"
                                addSql("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `ref_payout`=0 WHERE `ref_payout` > 0");
                                addSql("UPDATE `{?_MYSQL_PREFIX?}_user_points` SET `points`=`points`+`locked_points` WHERE `locked_points` > 0");
@@ -135,8 +135,8 @@ WHERE `mails_confirmed` < %s", $REF, $REF));
 
        if ((isSqlsValid()) && (isSqlsValid())) {
                if (strpos($GLOBALS['sqls'][0], 'INSERT') > -1) {
-                       $result = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_refdepths` WHERE level='%s' LIMIT 1",
-                       array(bigintval(postRequestElement('level'))), __FILE__, __LINE__);
+                       $result = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_refdepths` WHERE `level`='%s' LIMIT 1",
+                               array(bigintval(postRequestElement('level'))), __FILE__, __LINE__);
                        SQL_FREERESULT($result);
                } // END - if