// 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 />";
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
$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
$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