// Add userid
$content = array(
- 'userid' => getUserId()
+ 'userid' => getMemberId()
);
// Init variable to prevent notices
switch ($mode) {
case 'show': // Show his data
// Get user data
- if (!fetchUserData(getUserId())) {
+ if (!fetchUserData(getMemberId())) {
// Something really bad happended
- debug_report_bug('No user account ' . getUserId() . ' found.');
+ debug_report_bug('No user account ' . getMemberId() . ' found.');
} // END - if
// Get line
WHERE
`userid`=%s
LIMIT 1",
- array(getUserId()), __FILE__, __LINE__);
+ array(getMemberId()), __FILE__, __LINE__);
} else {
// Old way 0 1 2 3 4 5 6 7 8 9 10 11 12 13
$result = SQL_QUERY_ESC("SELECT `surname`, `family`, `street_nr`, `country`, `zip`, `city`, `email`, `birth_day`, `birth_month`, `birth_year`, `gender`, `max_mails`, `receive_mails`, `last_update`
WHERE
`userid`=%s
LIMIT 1",
- array(getUserId()), __FILE__, __LINE__);
+ array(getMemberId()), __FILE__, __LINE__);
}
// Get line
case 'save': // Save entered data
// Load old email / password
- if (!fetchUserData(getUserId())) {
+ if (!fetchUserData(getMemberId())) {
// Something really bad happened
- debug_report_bug('No user account ' . getUserId() . ' found.');
+ debug_report_bug('No user account ' . getMemberId() . ' found.');
} // END - if
// Get line
bigintval(postRequestElement('month')),
bigintval(postRequestElement('year')),
bigintval(postRequestElement('max_mails')),
- getUserId()
+ getMemberId()
), __FILE__, __LINE__);
} else {
// Old way
bigintval(postRequestElement('month')),
bigintval(postRequestElement('year')),
bigintval(postRequestElement('max_mails')),
- getUserId()
+ getMemberId()
), __FILE__, __LINE__);
}
case 'notify': // Switch off notfication
SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `notified`='N', `last_update`=UNIX_TIMESTAMP() WHERE `userid`=%s LIMIT 1",
- array(getUserId()), __FILE__, __LINE__);
+ array(getMemberId()), __FILE__, __LINE__);
$URL = 'modules.php?module=login&what=welcome&code=' . urlencode(getMessage('PROFILE_UPDATED'));
break;
} // END - switch