- if (preg_match('/[' . getConfig('nickname_pattern') . ']{' . getConfig('nickname_len') . ',}/', postRequestParameter('nickname'), $array)) {
+ if (preg_match('/[' . getConfig('nickname_pattern') . ']{' . getConfig('nickname_len') . ',}/', postRequestElement('nickname'), $array)) {
// Look for nickname in database (we only need just one entry so don't worry about the "LIMIT 1" !)
$result = SQL_QUERY_ESC("SELECT `userid` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE `nickname`='%s' AND `userid` != %s LIMIT 1",
// Look for nickname in database (we only need just one entry so don't worry about the "LIMIT 1" !)
$result = SQL_QUERY_ESC("SELECT `userid` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE `nickname`='%s' AND `userid` != %s LIMIT 1",
- array(postRequestParameter('nickname'), getMemberId()), __FILE__, __LINE__);
+ array(postRequestElement('nickname'), getMemberId()), __FILE__, __LINE__);
// Is it not in use?
if (SQL_HASZERONUMS($result)) {
// Nickname not in use, so set it now
SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `nickname`='%s' WHERE `userid`=%s LIMIT 1",
// Is it not in use?
if (SQL_HASZERONUMS($result)) {
// Nickname not in use, so set it now
SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `nickname`='%s' WHERE `userid`=%s LIMIT 1",
- array(postRequestParameter('nickname'), getMemberId()), __FILE__, __LINE__);
+ array(postRequestElement('nickname'), getMemberId()), __FILE__, __LINE__);
// Prepare array
$filterData = array(
'history_subject' => 'NICKNAME_CHANGED',
'history_userid' => getMemberId(),
// Prepare array
$filterData = array(
'history_subject' => 'NICKNAME_CHANGED',
'history_userid' => getMemberId(),