]> git.mxchange.org Git - mailer.git/blobdiff - inc/mysql-manager.php
Some fixes for surfbar extension (#123), double->single, misc cleanups/fixes
[mailer.git] / inc / mysql-manager.php
index 302e9d2091f5477de43a17fa60ebe0bedd383968..2d5d26fa9af300d84339cf283937fcf42e9b7e2e 100644 (file)
@@ -627,7 +627,7 @@ function IS_ADMIN ($admin = '') {
                // Check if password is valid
                //* DEBUG: */ print __FUNCTION__."*".$valPass.'/'.$passCookie."*<br />\n";
                $ret = (($valPass == $passCookie) || ((strlen($valPass) == 32) && ($valPass == md5($passCookie))) || (($valPass == "*FAILED*") && (!EXT_IS_ACTIVE('cache'))));
-       }
+       } // END - if
 
        // Return result of comparision
        //* DEBUG: */ if (!$ret) echo __LINE__."OK!<br />";
@@ -670,10 +670,10 @@ function addMaxReceiveList ($mode, $default = '', $return = false) {
                define('__MAX_RECEIVE_OPTIONS', $OUT);
 
                // Load template
-               $OUT = LOAD_TEMPLATE($mode."_receive_table", true);
+               $OUT = LOAD_TEMPLATE($mode . '_receive_table', true);
        } else {
                // Maybe the admin has to setup some maximum values?
-               debug_report_bug("Nothing is being done here?");
+               debug_report_bug('Nothing is being done here?');
        }
 
        // Free result
@@ -819,12 +819,15 @@ function sendModeMails ($mod, $modes) {
                                                        $DATA[4] = COUNTRY_GENERATE_INFO(REQUEST_POST('country_code'));
                                                } // END - if
 
+                                               // Merge content with data from POST
+                                               $content = merge_array($content, REQUEST_POST_ARRAY());
+
                                                // Load template
-                                               $msg = LOAD_EMAIL_TEMPLATE("member_mydata_notify", $content, getUserId());
+                                               $msg = LOAD_EMAIL_TEMPLATE('member_mydata_notify', $content, getUserId());
 
                                                if (getConfig('admin_notify') == 'Y') {
                                                        // The admin needs to be notified about a profile change
-                                                       $msg_admin = "admin_mydata_notify";
+                                                       $msg_admin = 'admin_mydata_notify';
                                                        $sub_adm   = getMessage('ADMIN_CHANGED_DATA');
                                                } else {
                                                        // No mail to admin
@@ -839,10 +842,10 @@ function sendModeMails ($mod, $modes) {
                                                $content = "<span class=\"member_done\">{--MYDATA_MAIL_SENT--}</span>";
                                                break;
 
-                                                               default:
-                                                                       DEBUG_LOG(__FUNCTION__, __LINE__, sprintf("Unsupported module %s detected.", $mod));
-                                                                       $content = "<span class=\"member_failed\">{--UNKNOWN_MODULE--}</span>";
-                                                                       break;
+                                       default: // Unsupported module!
+                                               DEBUG_LOG(__FUNCTION__, __LINE__, sprintf("Unsupported module %s detected.", $mod));
+                                               $content = "<span class=\"member_failed\">{--UNKNOWN_MODULE--}</span>";
+                                               break;
                                } // END - switch
                        } else {
                                // Could not load profile data